cancel
Showing results for 
Search instead for 
Did you mean: 

Long running processes under deployment

sazzadul
Champ in-the-making
Champ in-the-making
I was just wondering what happens to long running process under upgrade (upgrade of javaservice tasks, process definition etc) which results in restart of servlet container.

If the shutdown occurs in the middle of a service task then is there any way to re run it when the servlet container comes to live again ?

Is there any way to track the processes which got affected of this scenario so that the processed don't get lost ?

I am just keen to find out what the best practices are to talke this kind of issue.

Thanks.
Sazzadul
2 REPLIES 2

trademak
Star Contributor
Star Contributor
With long running processes deploying a new process definition will not change anything.
The long running process will just keep running in the old process definition.
When you deploy a new version of a service task class, then that's effective immediately.
When the server crashes during the execution of a service task, the process engine will execute that service task again when the process engine comes up again.

Best regards,

sazzadul
Champ in-the-making
Champ in-the-making
When the server crashes during the execution of a service task, the process engine will execute that service task again when the process engine comes up again.
This does not happen automatically upon startup of the server right ?

I have to query the db([ACT_RU_EXECUTION]) and find out which service task didn't get completed and hence continue that service task by calling
runtimeService.signal(id);

One problem with this approch is that there could be many web application(each containing a set of process definitions) using the same database thus upon startup querying ACT_RU_EXECUTION wont solve the problem since other web apps will have long running processes which reside in the same table. You get my point.

Wouldn't that have been just gorgeous if all these steps happened automatically or if there existed any api function which could be called upon startup of the server that took care of this for me ????

Please verify if this is a real world problem scenrio and if so then suggest me of a solution.