Package org.jbpm.process.instance

Examples of org.jbpm.process.instance.InternalProcessRuntime


    super.setState(state);
    // TODO move most of this to ProcessInstanceImpl
    if (state == ProcessInstance.STATE_COMPLETED
        || state == ProcessInstance.STATE_ABORTED) {
      InternalKnowledgeRuntime kruntime = getKnowledgeRuntime();
      InternalProcessRuntime processRuntime = (InternalProcessRuntime) kruntime.getProcessRuntime();
      processRuntime.getProcessEventSupport().fireBeforeProcessCompleted(this, kruntime);
      // deactivate all node instances of this process instance
      while (!nodeInstances.isEmpty()) {
        NodeInstance nodeInstance = nodeInstances.get(0);
        ((org.jbpm.workflow.instance.NodeInstance) nodeInstance)
            .cancel();
      }
      removeEventListeners();
      processRuntime.getProcessInstanceManager().removeProcessInstance(this);
      processRuntime.getProcessEventSupport().fireAfterProcessCompleted(this, kruntime);

      processRuntime.getSignalManager().signalEvent("processInstanceCompleted:" + getId(), this);
    }
  }
View Full Code Here

TOP

Related Classes of org.jbpm.process.instance.InternalProcessRuntime

Copyright © 2018 www.massapicom. 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.