Examples of fireBeforeNodeTriggered()


Examples of org.drools.event.ProcessEventSupport.fireBeforeNodeTriggered()

    workItemNodeInstance.setProcessInstance(processInstance);
    workItemNodeInstance.internalSetWorkItem(workItem);
      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(
View Full Code Here

Examples of org.drools.event.ProcessEventSupport.fireBeforeNodeTriggered()

          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();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.