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.