Package org.apache.airavata.workflow.model.graph.system

Examples of org.apache.airavata.workflow.model.graph.system.EndDoWhileNode


    } else if (GraphSchema.NODE_TYPE_ENDIF.equals(type)) {
      node = new EndifNode(nodeElement);
    } else if (GraphSchema.NODE_TYPE_DOWHILE.equals(type)) {
      node = new DoWhileNode(nodeElement);
    } else if (GraphSchema.NODE_TYPE_ENDDOWHILE.equals(type)) {
      node = new EndDoWhileNode(nodeElement);
    } else if (GraphSchema.NODE_TYPE_MEMO.equals(type)) {
      node = new MemoNode(nodeElement);
    } else if (GraphSchema.NODE_TYPE_RECEIVE.equals(type)) {
      node = new ReceiveNode(nodeElement);
    } else if (GraphSchema.NODE_TYPE_BLOCK.equals(type)) {
View Full Code Here


    /**
     * @see org.apache.airavata.workflow.model.component.Component#createNode(org.apache.airavata.workflow.model.graph.Graph)
     */
    @Override
    public Node createNode(Graph graph) {
        EndDoWhileNode node = new EndDoWhileNode(graph);

        node.setName(NAME);
        node.setComponent(this);

        // Creates a unique ID for the node. This has to be after setName().
        node.createID();

        createPorts(node);

        return node;
    }
View Full Code Here

        this.interpreter.handleWSComponent(whileNode);
      }
    }
    // WS node should be done
    NodeController.getGUI(dowhilenode).setBodyColor(NodeState.FINISHED.color);
    EndDoWhileNode endDoWhileNode = this.dowhilenode.getEndDoWhileNode();

    // /////////////////////////////////////////////////////////
    // // Do WHile finished execution thus we can set the //////
    // //inputs to the EndDOWHile and resume the executions/////
    SystemComponentInvoker invoker = new SystemComponentInvoker();

    List<DataPort> inputports = endDoWhileNode.getInputPorts();

    for (int inputPortIndex = 0; inputPortIndex < inputports.size(); inputPortIndex++) {
      Object inputVal = dowhileinvoker.getOutput(inputports.get(inputPortIndex).getFromPort().getID());
      invoker.addOutput(endDoWhileNode.getOutputPort(inputPortIndex).getID(), inputVal);
    }

    this.invokerMap.put(endDoWhileNode, invoker);
    // TODO send mail once the iterations have converged
View Full Code Here

//        this.interpreter.handleWSComponent(whileNode);
      }
    }
    // WS node should be done
    dowhilenode.setState(NodeExecutionState.FINISHED);
    EndDoWhileNode endDoWhileNode = this.dowhilenode.getEndDoWhileNode();

    // /////////////////////////////////////////////////////////
    // // Do WHile finished execution thus we can set the //////
    // //inputs to the EndDOWHile and resume the executions/////
    SystemComponentInvoker invoker = new SystemComponentInvoker();

    List<DataPort> inputports = endDoWhileNode.getInputPorts();

    for (int inputPortIndex = 0; inputPortIndex < inputports.size(); inputPortIndex++) {
      Object inputVal = dowhileinvoker.getOutput(inputports.get(inputPortIndex).getFromPort().getID());
      invoker.addOutput(endDoWhileNode.getOutputPort(inputPortIndex).getID(), inputVal);
    }

    this.invokerMap.put(endDoWhileNode, invoker);
    // TODO send mail once the iterations have converged

    endDoWhileNode.setState(NodeExecutionState.FINISHED);
    this.threadExecutor.shutdown();
    return true;
  }
View Full Code Here

        this.interpreter.handleWSComponent(whileNode);
      }
    }
    // WS node should be done
    dowhilenode.setState(NodeExecutionState.FINISHED);
    EndDoWhileNode endDoWhileNode = this.dowhilenode.getEndDoWhileNode();

    // /////////////////////////////////////////////////////////
    // // Do WHile finished execution thus we can set the //////
    // //inputs to the EndDOWHile and resume the executions/////
    SystemComponentInvoker invoker = new SystemComponentInvoker();

    List<DataPort> inputports = endDoWhileNode.getInputPorts();

    for (int inputPortIndex = 0; inputPortIndex < inputports.size(); inputPortIndex++) {
      Object inputVal = dowhileinvoker.getOutput(inputports.get(inputPortIndex).getFromPort().getID());
      invoker.addOutput(endDoWhileNode.getOutputPort(inputPortIndex).getID(), inputVal);
    }

    this.invokerMap.put(endDoWhileNode, invoker);
    // TODO send mail once the iterations have converged

    endDoWhileNode.setState(NodeExecutionState.FINISHED);
    this.threadExecutor.shutdown();
    return true;
  }
View Full Code Here

TOP

Related Classes of org.apache.airavata.workflow.model.graph.system.EndDoWhileNode

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.