So in our case, we just have java service tasks which are executed synchronously one after another.
All these things take 1-2 hours to finish.So during this time I would like to see how my process is progressing in admin ui.
So I understand if I was to see the current process progress I need to add some dummy wait states at few points in my flow.Was would be best way to achieve this?
when the process execution takes +/- 30 mins without commit you will get transaction timeout exception.
I would say that the best way is to make some steps asynchronous. Async execution creates wait state too. Async executor tries to execute job 3 times by default. (It can be changed by config).
We dont need to run async job multiple times for both timeouts and exception conditions.(I am assuming async jobs are retied only in 2 cases, when lock timeout exceeds or uncaught exception happens)
Basically we want retries=0 for all scenarios