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

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


      }

      if (node instanceof DecisionNode)
      {
        // Decision node: if-then-else statement
        DecisionNode decisionNode = (DecisionNode) node;

        // Determine the outgoing sockets of the decision node
        // and advance to the entry socket of the next nodes.
        NodeSocket yesSocket = getNamedSocket(node, CoreConstants.SOCKET_YES);
        yesSocket = ((ControlLink) yesSocket.getControlLinks().next()).getTargetSocket();
View Full Code Here


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

    boolean result = false;

    String expression = node.getExpression();
    if (expression != null)
    {
      // Evaluate a script expression
      ScriptEngine scriptEngine = getEngine().getScriptEngineFactory().obtainScriptEngine(context);
      try
View Full Code Here

TOP

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

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.