Examples of addNode()


Examples of org.jbpm.workflow.core.node.CompositeNode.addNode()

        );
       
        MilestoneNode milestoneNode = new MilestoneNode();
        milestoneNode.setName("Milestone");
        milestoneNode.setConstraint("eval(false)");
        compositeNode.addNode(milestoneNode);
        compositeNode.linkIncomingConnections(Node.CONNECTION_DEFAULT_TYPE, milestoneNode.getId(), Node.CONNECTION_DEFAULT_TYPE);
       
        EventNode eventNode = new EventNode();
        EventTypeFilter eventFilter = new EventTypeFilter();
        eventFilter.setType("myEvent");
View Full Code Here

Examples of org.jbpm.workflow.core.node.ForEachNode.addNode()

              System.out.println("Executed action for child " + ((Person) context.getVariable("child")).getName());
                myList.add("Executed action");
            }
        });
        actionNode.setAction(action);
        forEachNode.addNode(actionNode);
        forEachNode.linkIncomingConnections(
            Node.CONNECTION_DEFAULT_TYPE,
            actionNode.getId(), Node.CONNECTION_DEFAULT_TYPE);
        forEachNode.linkOutgoingConnections(
            actionNode.getId(), Node.CONNECTION_DEFAULT_TYPE,
View Full Code Here

Examples of org.jfree.report.structure.Section.addNode()

        groupBody.setType("group-body");
        groupInstanceSection.addNode(groupBody);
        // XOR: Either the detail or the group section can be set ..
        if (detailSection != null)
        {
            groupBody.addNode(detailSection.getElement());
        }
        else if (childGroup != null)
        {
            groupBody.addNode(childGroup.getElement());
        }
View Full Code Here

Examples of org.jhotdraw.draw.BezierFigure.addNode()

    Double topArmEndPosition = new Double();

    topArmEndPosition.x = arrowPointPosition.x + (direction * -SVGConstants.DEFAULT_ARROW_LENGTH);
    topArmEndPosition.y = arrowPointPosition.y - SVGConstants.DEFAULT_ARROW_HEIGHT;

    arrow.addNode(new BezierPath.Node(arrowPointPosition));
    arrow.addNode(new BezierPath.Node(topArmEndPosition));

   
    Double bottomArmEndPosition = new Double();
    bottomArmEndPosition.x = arrowPointPosition.x + (direction * -SVGConstants.DEFAULT_ARROW_LENGTH);
 
View Full Code Here

Examples of org.jredis.cluster.ClusterSpec.addNode()

  @Override
  protected ClusterSpec newClusterSpec () {
    ClusterSpec spec = new DefaultClusterSpec();
    for(int i=0; i<100; i++){
      ClusterNodeSpec node = new DefaultClusterNodeSpec(DefaultConnectionSpec.newSpec("localhost", 6379+i, 0, null));
      spec.addNode(node);
    }
    return spec;
  }

//  /* (non-Javadoc) @see org.jredis.cluster.ClusterModelProviderTestBase#getSupportedClusterType() */
 
View Full Code Here

Examples of org.jredis.ri.cluster.DefaultClusterSpec.addNode()

  @Override
  protected ClusterSpec newClusterSpec () {
    ClusterSpec spec = new DefaultClusterSpec();
    for(int i=0; i<100; i++){
      ClusterNodeSpec node = new DefaultClusterNodeSpec(DefaultConnectionSpec.newSpec("localhost", 6379+i, 0, null));
      spec.addNode(node);
    }
    return spec;
  }

//  /* (non-Javadoc) @see org.jredis.cluster.ClusterModelProviderTestBase#getSupportedClusterType() */
 
View Full Code Here

Examples of org.nanograph.model.DefaultGraphModel.addNode()

      //
      StringTokenizer st = new StringTokenizer(
          this.getParameter("nodes"), ",");

      while (st.hasMoreElements())
        g.addNode(st.nextToken());

      st = new StringTokenizer(this.getParameter("edges"), ",-");

      while (st.hasMoreElements())
        g.addEdge("edge", st.nextToken(), st.nextToken());
View Full Code Here

Examples of org.openbel.framework.common.protonetwork.model.ProtoNodeTable.addNode()

        final TermTable tt = pn.getTermTable();
        final ProtoNodeTable pnt = pn.getProtoNodeTable();

        int subIndex = pnb.buildProtoNetwork(pn, term);
        String subLbl = tt.getTermValues().get(subIndex);
        return pnt.addNode(subIndex, subLbl);
    }

    /**
     * Creates a proto edge for the {@link Statement statement} while
     * preserving the original, supporting {@link Statement statement}.
View Full Code Here

Examples of org.openbp.core.model.item.process.ProcessItem.addNode()

          // Remember that we have copied this one
          copiedSourceNodes.add(node);

          // Clone the node and add it to the process
          node = (Node) node.clone();
          process.addNode(node);

          copyFlavor = ClientFlavors.PROCESS_ITEM;
        }

        else if (next instanceof TextElementFigure)
View Full Code Here

Examples of org.openbp.core.model.item.process.ProcessItemImpl.addNode()

          // Remember that we have copied this one
          copiedSourceNodes.add(node);

          // Clone the node and add it to the process
          node = (Node) node.clone();
          process.addNode(node);

          copyFlavor = ClientFlavors.PROCESS_ITEM;
        }

        else if (next instanceof TextElementFigure)
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.