This content has been marked as final.
Show 1 reply
-
1. Re: Another abort process instance issue or what do I do wrong?
vinniman Jun 15, 2015 8:16 AM (in response to vinniman)Found the solution.
Using this guide Chapter 22. Exception Management I created an error event inside my process definitions and in request processor I fire this event to the process and then terminate it.
Process terminates and no additional workitems execute.
((org.drools.core.process.instance.WorkItemManager) ksession.getWorkItemManager()).signalEvent(ERROR_EVENT, workItem, gateActionResponseMessage.getProcessId()); ksession.abortProcessInstance(message.getProcessId());
If only fire an event without manual process termination - process flow continues.