Package org.drools.definition.process

Examples of org.drools.definition.process.NodeContainer


              y = y + offsetY;
              height = 48;
        }
        int parentOffsetX = 0;
        int parentOffsetY = 0;
        NodeContainer nodeContainer = node.getNodeContainer();
        while (nodeContainer instanceof CompositeNode) {
          CompositeNode parent = (CompositeNode) nodeContainer;
          Integer parentX = (Integer) parent.getMetaData().get("x");
          if (parentX != null) {
            parentOffsetX += parentX;
View Full Code Here


      String result = (String) node.getMetaData().get("UniqueId");
      if (result != null) {
        return result;
      }
      result = node.getId() + "";
      NodeContainer nodeContainer = node.getNodeContainer();
      while (nodeContainer instanceof CompositeNode) {
        CompositeNode composite = (CompositeNode) nodeContainer;
        result = composite.getId() + "-" + result;
        nodeContainer = composite.getNodeContainer();
      }
View Full Code Here

            }
        }
    }
   
    private boolean acceptsNoIncomingConnections(Node node) {
      NodeContainer nodeContainer = node.getNodeContainer();
      return nodeContainer instanceof DynamicNode ||
        (nodeContainer instanceof WorkflowProcess && ((WorkflowProcess) nodeContainer).isDynamic());
    }
View Full Code Here

      return nodeContainer instanceof DynamicNode ||
        (nodeContainer instanceof WorkflowProcess && ((WorkflowProcess) nodeContainer).isDynamic());
    }

    private boolean acceptsNoOutgoingConnections(Node node) {
      NodeContainer nodeContainer = node.getNodeContainer();
      return nodeContainer instanceof DynamicNode ||
        (nodeContainer instanceof WorkflowProcess && ((WorkflowProcess) nodeContainer).isDynamic());
    }
View Full Code Here

        return this.id;
    }
   
    public String getUniqueId() {
      String result = id + "";
      NodeContainer nodeContainer = getNodeContainer();
      while (nodeContainer instanceof CompositeNode) {
        CompositeNode composite = (CompositeNode) nodeContainer;
        result = composite.getId() + ":" + result;
        nodeContainer = composite.getNodeContainer();
      }
View Full Code Here

    }
   
    private String createNodeId(NodeInstance nodeInstance) {
      Node node = ((org.drools.workflow.instance.NodeInstance) nodeInstance).getNode();
      String nodeId = "" + node.getId();
      NodeContainer nodeContainer = node.getNodeContainer();
      while (nodeContainer != null) {
        if (nodeContainer instanceof CompositeNode) {
          node = (CompositeNode) nodeContainer;
          nodeId = node.getId() + ":" + nodeId;
          nodeContainer = node.getNodeContainer();
View Full Code Here

        Node node = nodeInstance.getNode();
        if (node == null) {
            return "";
        }
        String nodeId = "" + node.getId();
        NodeContainer nodeContainer = node.getNodeContainer();
        while (nodeContainer != null) {
            if (nodeContainer instanceof Node) {
                node = (Node) nodeContainer;
                nodeContainer = node.getNodeContainer();
                // TODO fix this filter out hidden compositeNode inside ForEach node
                if (!(nodeContainer.getClass().getName().endsWith("ForEachNode"))) {
                    nodeId = node.getId() + ":" + nodeId;
                }
            } else {
                break;
            }
View Full Code Here

      Node node = nodeInstance.getNode();
      if (node == null) {
        return "";
      }
      String nodeId = "" + node.getId();
      NodeContainer nodeContainer = node.getNodeContainer();
      while (nodeContainer != null) {
        if (nodeContainer instanceof Node) {
          node = (Node) nodeContainer;
          nodeContainer = node.getNodeContainer();
          // TODO fix this filter out hidden compositeNode inside ForEach node
          if (!(nodeContainer.getClass().getName().endsWith("ForEachNode"))) {
              nodeId = node.getId() + ":" + nodeId;
          }
        } else {
          break;
        }
View Full Code Here

    }
   
    private String createNodeId(NodeInstance nodeInstance) {
      Node node = ((org.drools.workflow.instance.NodeInstance) nodeInstance).getNode();
      String nodeId = "" + node.getId();
      NodeContainer nodeContainer = node.getNodeContainer();
      while (nodeContainer != null) {
        if (nodeContainer instanceof CompositeNode) {
          node = (CompositeNode) nodeContainer;
          nodeId = node.getId() + ":" + nodeId;
          nodeContainer = node.getNodeContainer();
View Full Code Here

      Node node = ((org.drools.workflow.instance.NodeInstance) nodeInstance).getNode();
      if (node == null) {
        return "";
      }
      String nodeId = "" + node.getId();
      NodeContainer nodeContainer = node.getNodeContainer();
      while (nodeContainer != null) {
        if (nodeContainer instanceof CompositeNode) {
          node = (CompositeNode) nodeContainer;
          nodeContainer = node.getNodeContainer();
          // filter out hidden compositeNode inside ForEach node
View Full Code Here

TOP

Related Classes of org.drools.definition.process.NodeContainer

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.