How do I get the control back to my J2EE app after performing a process definition in Camunda?


#1

I am trying to evaluate and integrate Camunda into my J2EE custom application for managing approval cycles. I have explored the Camunda REST Api and the Java delegate which could be used in Service Task. My query is as follows :-

From my J2ee app, if I start the process definition …process-definition/key/{id}/start, the bpm starts its execution. Once the process definition instance is asynchronously executed in Camunda server, how do I get the control back in my application? I wish to get a status of the instance and also want the rest of my code in the webapp to execute.

About the instance status, do I need to poll the workflow engine continuously to get it’s status? Any other better approach or recommendations?

Thank you in advance!