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

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


    throws Exception
  {
    currentInitialNode = initialNode;

    // Determine corresponding exit socket and print return type by its param type or void if none
    FinalNode finalNode = initialNode.getWSCorrespondingFinalNode();

    // Print the method comment
    String comment = createComment(initialNode);
    w.printComment(comment, JavaTemplateWriter.COMMENT_MULTI);
View Full Code Here


      Node node = (Node) itNodes.next();

      if (!(node instanceof FinalNode))
        continue;

      FinalNode finalNode = (FinalNode) node;
      if (finalNode.getJumpTarget() != null)
      {
        // We skip exit-continue nodes
        continue;
      }
View Full Code Here

   * @return The new node figure
   */
  public static NodeFigure createFinalNodeFromSocket(SocketFigure patternSocketFigure)
  {
    // Create a new node
    FinalNode node = ProcessElementFactory.getInstance().createStandardFinalNode();

    // Create the corresponding figure, add it to the process and return it
    return createNodeFromSocket(node, patternSocketFigure, 200);
  }
View Full Code Here

   */
  public void executeModelObject(ModelObject mo, EngineExecutor ee)
  {
    TokenContext context = ee.getTokenContext();
    NodeSocket entrySocket = context.getCurrentSocket();
    FinalNode node = (FinalNode) entrySocket.getNode();

    NodeSocket nextSocket = null;

    String jumpTarget = (String) TokenContextUtil.getParamValue(context, entrySocket, CoreConstants.DYNAMIC_JUMPTARGET_PARAM_NAME);
    if (jumpTarget == null)
      jumpTarget = node.getJumpTarget();

    if (jumpTarget != null)
    {
      // Execute a jump target final node
      nextSocket = executeJumpTargetFinalNode(entrySocket, context, jumpTarget);
View Full Code Here

TOP

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

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.