Calling a service which takes long time to finish from camunda java delegate

Viewed 1251

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 Answers
Related