Package org.openbp.core.model.item.process

Examples of org.openbp.core.model.item.process.DecisionNodeImpl


   *
   * @return The new node
   */
  public DecisionNodeImpl createStandardDecisionNode()
  {
    DecisionNodeImpl node = new DecisionNodeImpl();
    createStandardName(node);

    NodeSocket inSocket = createEntrySocket(CoreConstants.DEFAULT_INITIAL_NODE_NAME, true);
    NodeSocket yesSocket = createExitSocket(CoreConstants.SOCKET_YES, true);
    NodeSocket noSocket = createExitSocket(CoreConstants.SOCKET_NO, false);

    inSocket.setGeometry(ProcessUtil.createSocketGeometry("n"));
    yesSocket.setGeometry(ProcessUtil.createSocketGeometry("s"));
    noSocket.setGeometry(ProcessUtil.createSocketGeometry("e"));

    node.addSocket(inSocket);
    node.addSocket(yesSocket);
    node.addSocket(noSocket);

    return node;
  }
View Full Code Here

TOP

Related Classes of org.openbp.core.model.item.process.DecisionNodeImpl

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.