System.err.println("Aborting process");
processInstance.setState(ProcessInstance.STATE_ABORTED);
} else {
((EventSupport) workingMemory).getRuleFlowEventSupport().fireBeforeRuleFlowNodeTriggered(subProcessNodeInstance, workingMemory);
ProcessInstance subProcessInstance = (ProcessInstance)
workingMemory.startProcess(processId, parameters);
((EventSupport) workingMemory).getRuleFlowEventSupport().fireAfterRuleFlowNodeTriggered(subProcessNodeInstance, (InternalWorkingMemory) workingMemory);
if (subProcessInstance.getState() == ProcessInstance.STATE_COMPLETED) {
subProcessNodeInstance.triggerCompleted();
} else {
subProcessNodeInstance.internalSetProcessInstanceId(subProcessInstance.getId());