Can anyone please advice how to wait for a service task execution to get complete.
The service task which I trigger is complex and would take several seconds to complete and give me a response which is to be forwarded to the next service task.
The microservice itself has some complex scenarios (and connections to other services) is in itself has wait methods written.
So I was wondering whether I need to write delay time in the bpmn so the execution waits for the response to be fetched.
Bascially your call is going to wait for as long as it takes to get a response from the rest call or it times out.
If youâre doing something that requires a longer waiting time then i would suggest that you donât use a connector at all. I would suggest an External Task pattern. That way you donât need to worry about upstream services taking too long.
Would it be possible to create an external service task which is a microservice.
How would i call the microservice in bpmn without the connector?
please advice.
External tasks are primarily used for microservice architecture. So it would suit you much better.
It might be useful to watch this tutorial to see how its intended to work.
Yes - when an external task uses the fetch and lock method it can ask for the process variables of the process. These variables could have been produced by another task.