I need to implement camunda bpmn where 1 of my task is a java delegate task which calls an api. now the api what it calls is an async api, because of which the bpmn flow moves to next task after calling the async api but i want is that after calling the api the flow shud stop and then some call back happens through some api to camunda server(hosted as spring boot app). what would be the best way to achieve the above scenario.
2
votes
2 Answers
0
votes
Options for asynchronous communication are
- A send task/event follow by receive task/event
https://docs.camunda.org/manual/latest/reference/bpmn20/tasks/send-task/ https://docs.camunda.org/manual/latest/reference/bpmn20/tasks/receive-task/ https://docs.camunda.org/manual/latest/reference/bpmn20/events/message-events/
https://docs.camunda.org/manual/latest/user-guide/process-engine/external-tasks/
- Advanced: Implement asynchronous service invocation using a Signallable Activity Behavior
From this blog post, whcih provides a detailed explanation: https://blog.camunda.com/post/2013/11/bpmn-service-synchronous-asynchronous/