Examples of NodeInstance


Examples of com.exedosoft.wf.wfi.NodeInstance

        if(instanceUid!=null){
          data.put("busiBOName", pi.getProcessTemplate().getDoBO().getName());
          data.put("instance_uid", instanceUid);
        }
      }
      NodeInstance ni = NodeInstance.getNodeInstanceByID(bi.getValue("contextNiUid"));
      if(ni!=null && ni.getNode().getPane()!=null){
        data.put("paneModel", ni.getNode().getPane());
      }
    } else if (aFm.getLinkPaneModel() != null) {
      data.put("paneModel", aFm.getLinkPaneModel());
    }
    return data;
View Full Code Here

Examples of org.apache.slider.server.appmaster.state.NodeInstance

            nodeEntry.setLastUsed(saved);
          }

          String hostname =
            SliderUtils.sequenceToString(nodeEntryRecord.getHost());
          NodeInstance instance = history.getOrCreateNodeInstance(hostname);
          instance.set(roleId, nodeEntry);
        }
      } catch (EOFException e) {
        EOFException ex = new EOFException(
          "End of file reached after " + records + " records");
        ex.initCause(e);
View Full Code Here

Examples of org.drools.runtime.process.NodeInstance

            ExclusiveGroupInstance exclusiveGroupInstance = new ExclusiveGroupInstance();
            processInstance.addContextInstance(ExclusiveGroup.EXCLUSIVE_GROUP, exclusiveGroupInstance);
            int nodeInstances = stream.readInt();
            for (int j = 0; j < nodeInstances; j++) {
                long nodeInstanceId = stream.readLong();
                NodeInstance nodeInstance = processInstance.getNodeInstance(nodeInstanceId);
                if (nodeInstance == null) {
                  throw new IllegalArgumentException("Could not find node instance when deserializing exclusive group instance: " + nodeInstanceId);
                }
                exclusiveGroupInstance.addNodeInstance(nodeInstance);
            }
View Full Code Here

Examples of org.drools.runtime.process.NodeInstance

                    ExclusiveGroupInstance exclusiveGroupInstance = new ExclusiveGroupInstance();
                    ((org.jbpm.process.instance.ProcessInstance) processInstance).addContextInstance(ExclusiveGroup.EXCLUSIVE_GROUP, exclusiveGroupInstance);
                    int nodeInstances = stream.readInt();
                    for (int j = 0; j < nodeInstances; j++) {
                        long nodeInstanceId = stream.readLong();
                        NodeInstance groupNodeInstance = processInstance.getNodeInstance(nodeInstanceId);
                        if (groupNodeInstance == null) {
                          throw new IllegalArgumentException("Could not find node instance when deserializing exclusive group instance: " + nodeInstanceId);
                        }
                        exclusiveGroupInstance.addNodeInstance(groupNodeInstance);
                    }
View Full Code Here

Examples of org.drools.runtime.process.NodeInstance

    public ReuseNodeFactory(Class<? extends NodeInstance> cls){
        this.cls = cls;
    }

  public NodeInstance getNodeInstance(Node node, WorkflowProcessInstance processInstance, NodeInstanceContainer nodeInstanceContainer) {     
        NodeInstance result = ((org.jbpm.workflow.instance.NodeInstanceContainer)
        nodeInstanceContainer).getFirstNodeInstance( node.getId() );
        if (result != null) {
            return result;
        }
        try {
View Full Code Here

Examples of org.drools.runtime.process.NodeInstance

  public void signalEvent(String type, Object event) {
    super.signalEvent(type, event);
    for (Node node: getCompositeNode().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

Examples of org.drools.runtime.process.NodeInstance

    public ReuseNodeFactory(Class<? extends NodeInstance> cls){
        this.cls = cls;
    }

  public NodeInstance getNodeInstance(Node node, WorkflowProcessInstance processInstance, NodeInstanceContainer nodeInstanceContainer) {     
        NodeInstance result = ((org.drools.workflow.instance.NodeInstanceContainer)
        nodeInstanceContainer).getFirstNodeInstance( node.getId() );
        if (result != null) {
            return result;
        }
        try {
View Full Code Here

Examples of org.drools.runtime.process.NodeInstance

            ExclusiveGroupInstance exclusiveGroupInstance = new ExclusiveGroupInstance();
            processInstance.addContextInstance(ExclusiveGroup.EXCLUSIVE_GROUP, exclusiveGroupInstance);
            int nodeInstances = stream.readInt();
            for (int j = 0; j < nodeInstances; j++) {
                long nodeInstanceId = stream.readLong();
                NodeInstance nodeInstance = processInstance.getNodeInstance(nodeInstanceId);
                if (nodeInstance == null) {
                  throw new IllegalArgumentException("Could not find node instance when deserializing exclusive group instance: " + nodeInstanceId);
                }
                exclusiveGroupInstance.addNodeInstance(nodeInstance);
            }
View Full Code Here

Examples of org.drools.runtime.process.NodeInstance

                    ExclusiveGroupInstance exclusiveGroupInstance = new ExclusiveGroupInstance();
                    processInstance.addContextInstance(ExclusiveGroup.EXCLUSIVE_GROUP, exclusiveGroupInstance);
                    int nodeInstances = stream.readInt();
                    for (int j = 0; j < nodeInstances; j++) {
                        long nodeInstanceId = stream.readLong();
                        NodeInstance groupNodeInstance = processInstance.getNodeInstance(nodeInstanceId);
                        if (groupNodeInstance == null) {
                          throw new IllegalArgumentException("Could not find node instance when deserializing exclusive group instance: " + nodeInstanceId);
                        }
                        exclusiveGroupInstance.addNodeInstance(groupNodeInstance);
                    }
View Full Code Here

Examples of org.drools.runtime.process.NodeInstance

    public ReuseNodeFactory(Class<? extends NodeInstance> cls){
        this.cls = cls;
    }

  public NodeInstance getNodeInstance(Node node, WorkflowProcessInstance processInstance, NodeInstanceContainer nodeInstanceContainer) {     
        NodeInstance result = ((org.drools.workflow.instance.NodeInstanceContainer)
        nodeInstanceContainer).getFirstNodeInstance( node.getId() );
        if (result != null) {
            return result;
        }
        try {
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.