AnsweredAssumed Answered

Suspending a process

Question asked by afshad on Oct 31, 2012
Latest reply on Nov 2, 2012 by jbarrez
I have a process definition that contains only a sequence of serviceTask 's (no user taks or timers or anything else)
I would like to implement suspending and activating activiti so that when Activiti is resumed it continues with the next service task or last one where it left off.
I have tried both approaches shown below but neither work. When I try to activate activiti, nothing happens.

To suspend ive tried using both:
_runtimeService.suspendProcessInstanceById(processInstanceId);
_repositoryService.suspendProcessDefinitionById(_processDefinitionId);

To activate:
_runtimeService.activateProcessInstanceById(_processId);
_repositoryService.activateProcessDefinitionById(_processDefinitionId);

but neither of the above work.

Does anyone have any ideas on how to make this work.
Thank you.

Outcomes