workItemNodeInstance.addEventListeners();
ProcessEventSupport eventSupport = ((InternalProcessRuntime)
((InternalKnowledgeRuntime) ksession).getProcessRuntime()).getProcessEventSupport();
eventSupport.fireBeforeNodeTriggered(workItemNodeInstance, ksession);
((WorkItemManager) ksession.getWorkItemManager()).internalExecuteWorkItem(workItem);
eventSupport.fireAfterNodeTriggered(workItemNodeInstance, ksession);
}
public static void addDynamicSubProcess(
DynamicNodeInstance dynamicContext, KnowledgeRuntime ksession,
String processId, Map<String, Object> parameters) {