AnsweredAssumed Answered

Suspending activiti process and continuing from task which throw exception

Question asked by divya1 on Nov 20, 2013
Latest reply on Nov 21, 2013 by divya1
I have a requirement where if an exception occures during workflow, process will suspend and I need to start the process from where exception occurred.

What I did was I suspended process repositoryService.suspendProcessDefinitionByKey("orderWF"); changed the state of variable and re-activated the process with repositoryService.activateProcessDefinitionByKey("orderWF"); runtimeService.startProcessInstanceByKey("orderWF",processVariables);. But the problem is it starts from first but I want it to start from where task throw the exception.

Hope some one could guide me on this.