System.err.println("Aborting process");
processInstance.setState(ProcessInstance.STATE_ABORTED);
} else {
ProcessEventSupport eventSupport = ((InternalProcessRuntime)
((InternalKnowledgeRuntime) ksession).getProcessRuntime()).getProcessEventSupport();
eventSupport.fireBeforeNodeTriggered(subProcessNodeInstance, ksession);
ProcessInstance subProcessInstance = (ProcessInstance)
ksession.startProcess(processId, parameters);
eventSupport.fireAfterNodeTriggered(subProcessNodeInstance, ksession);
if (subProcessInstance.getState() == ProcessInstance.STATE_COMPLETED) {
subProcessNodeInstance.triggerCompleted();