Hi,
I have a use case where I want to insert a BPMN-based element using Camunda Model API, which will, in turn, call a notification service in our application. I’m using Camunda external task client for java and can not use java delegates.
Is there any other way I can achieve this behavior. Any help will really be appreiciated.
Does your notification service expose REST endpoint? If you are able to enable Camunda Connect on the engine, maybe http connector could come in handy?
Take a look: HTTP Connector | docs.camunda.org
As far as I am aware there is no REST API for the Camunda Model API. This said using it in an External Worker won’t work.
I think if you want an External Worker to add a symbol to the BPMN diagram you need to find a work around. Maybe something that could work: Get the BPMN diagram from the engine, add a symbol to the diagram in your external task worker (change the XML, maybe embed the engine in your worker to use the Model API in your worker), deploy the diagram from your worker and complete the task.
On a side note: Generally I would not recommend using Connectors if you can use External Tasks. According to performance, maintaining code and accessing variables External Tasks are the better approach.
Hi @Nele
Thanks for the response.
I am using Camunda Model API internally to generate the diagram.
Also, I don’t want external worker to insert the BPMN symbol but during diagram generation I want to use some BPMN component which will can be plugged in wherever I want to support notification.
You can get an idea what my use case is by looking at below diagram.