Package org.jbpm.workflow.instance

Examples of org.jbpm.workflow.instance.NodeInstance


      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);
View Full Code Here


        }
      }
      if (((org.jbpm.workflow.core.WorkflowProcess) getWorkflowProcess()).isDynamic()) {
        for (Node node : getWorkflowProcess().getNodes()) {
          if (type.equals(node.getName()) && node.getIncomingConnections().isEmpty()) {
              NodeInstance nodeInstance = getNodeInstance(node);
                    ((org.jbpm.workflow.instance.NodeInstance) nodeInstance)
                      .trigger(null, NodeImpl.CONNECTION_DEFAULT_TYPE);
            }
        }
      }
View Full Code Here

TOP

Related Classes of org.jbpm.workflow.instance.NodeInstance

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.