AnsweredAssumed Answered

Recommended approach for long running tasks

Question asked by lofi on May 12, 2016
Latest reply on May 24, 2016 by martin.grofcik
What is the recommended approach to run a long running task? Currently I'm using a java service task which starts the external processes via ProcessBuilder. In extreme cases these processes can run for hours and days.

From what I found on this forum regarding the same question it may be that some activiti connections remain open which will cause a timeout. In order to prevent this, the task is flagged with async=true. However that means that the task is flagged as "finished" and activiti continues the workflow while the process is actually still running, but it should wait until the external process is finished.

Is there a mechanism to run long running tasks without system resources being occupied and with activiti waiting for the task to finish?

Thank you very much for the feedback!

Outcomes