AnsweredAssumed Answered

Process suspension and reactivation in activiti 5.9

Question asked by tushard on Apr 19, 2012
Latest reply on Oct 10, 2012 by ptripathi

Activiti 5.9 now supports suspending and resuming process definition and instances.  (Ref:  I wanted to test this functionality, so I constructed following workflow. 

start –> service_task_1 –> service_task_2 –> end

Both service tasks are marked async = true.  Service_task_1 runs for 100 sec and service_task_2 runs for 10 sec.  Using a standalone process engine, I deployed and started the workflow.  Immediately after starting the workflow, I suspended it by calling RepositoryService.suspendProcessDefinitionByKey(String processDefinitionKey).  This suspended the process by changing the suspendStatus field of the ACT_RE_PROCDEF table. 

I expected the service_task_2 to execute only after reactivating the process.  But, I observed that although the process was suspended, service_task_2 executed immediately after service_task_1 finished.  I wonder if I have correctly understood the concept of process suspension.  Would someone please help me?

Best Regards,

Tushar Deshpande