Package org.jbpm.pvm

Examples of org.jbpm.pvm.Node


  /** @see Execution#execute(String) */
  public void execute(String nodeName) {
    if (node==null) {
      throw new PvmException("node is null");
    }
    Node nestedNode = node.getNode(nodeName);
    if (nestedNode==null) {
      throw new PvmException("node "+nodeName+" doesn't exist in "+node);
    }
    execute(nestedNode);
  }
View Full Code Here


  }

  public Node findNode(String nodeName) {
    if (nodes!=null) {
      for(NodeImpl n : nodes) {
        Node node = n.findNode(nodeName);
        if (node!=null) {
          return node;
        }
      }
    }
View Full Code Here

    List<Node> nodes = execution.getNode().getNodes();
    execution.execute(nodes.get(0));
  }

  public void signal(Execution execution, String signal, Map<String, Object> parameters) {
    Node previous = execution.getPreviousNode();
    List<Node> nodes = execution.getNode().getNodes();
    int previousIndex = nodes.indexOf(previous);
    int nextIndex = previousIndex+1;
    if (nextIndex < nodes.size()) {
      Node next = nodes.get(nextIndex);
      execution.execute(next);
    }
  }
View Full Code Here

TOP

Related Classes of org.jbpm.pvm.Node

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.