Hi,
I am following this article Saga Orchestration Pattern for microservices with Camunda | Medium
We are starting the camunda process instance as shown in the below image.
The problem I face now is that the variable proceStartResult doesn’t wait till the process completes, it start and returns the processInstance. I have to provide the user feedback if the processStart Ended successfully or not.
Is there a way that we can wait till the process completes?
Currently, I am able to fetch the processInstance from History with ProcessID once the process gets completed (by making the main thread wait/sleep till the process completes) and I am adding a variable (Success or Failure) in the service task and reading VariableInstances in History after the process is completed.
Is there any other better way of doing the same ?