How to add delay or Thread.sleep() in script task or how to delay the http task?

I am running flowable maven dependency as a spring boot project (This project has flowable maven dependency and the bpmn model alone).

There is another micro-service (wrapper service) to access the flowable REST APIs to initiate the process and updating the tasks.

I am running a http task and make it as a loop, and keep on checking the count. if the count satisfies, I will end the process. Else, it will loop around the http task. The use case is, I cannot determine when the count will be met.(It might even take days).

Here I cannot have the provision to use Java Service Task.

How can I handle this scenario in bpmn model? or is there any other approach to follow? Please advice.


try to put intermediate timer event between 2 http calls.


1 Like