JBoss Community

What happens if the TaskServer is shutdown between Created and Complete states?

created by bpmn2user in jBPM - View the full discussion

There was discussion (

http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Flow-5-1-0-M1-Human-Task-How-to-get-the-WorkItem-change-state-after-restart-of-MinaTaskServer-td62057.html

) about a scenario where Taskserver is shutdown before reaching the Completed state.

 

what if the Minaservice has to be stopped in between (taskhas been created but not yet reached the completed status) – then we lose all the registeredevents (as these are not persistent events) in the following thread.

– now when we restart theMina service we query the task – and let’s say we changed the statethrough “Reservedà InProgressàCompleted”.  Now since the registered events are lost, how doesthe work item will be marked as “completed” (as the associated WSHTtask has completed) so that the drools process can move forward –basically end in this case?

 

 

There was a JIRA created for this issue https://jira.jboss.org/jira/browse/JBRULES-2002.

 

I am wondering if the fix has made it to JBPM5.0.

 

Kris or Mauricio: Any comments are appreciated

Reply to this message by going to Community

Start a new discussion in jBPM at Community