Package edu.indiana.extreme.xbaya.wf

Examples of edu.indiana.extreme.xbaya.wf.Workflow


     * @throws IOException
     * @throws ComponentRegistryException
     */
    public void testArray() throws ComponentException, GraphException,
            IOException, ComponentRegistryException {
        Workflow workflow = this.workflowCreator.createArrayWorkflow();
        testWrokflow(workflow, "array-test");
    }
View Full Code Here


     * @throws IOException
     * @throws ComponentRegistryException
     */
    public void testForEach() throws ComponentException, GraphException,
            IOException, ComponentRegistryException {
        Workflow workflow = this.workflowCreator.createForEachWorkflow();
        testWrokflow(workflow, "foreach-test");
    }
View Full Code Here

     * @throws IOException
     * @throws ComponentRegistryException
     */
    public void testIf() throws ComponentException, GraphException,
            IOException, ComponentRegistryException {
        Workflow workflow = this.workflowCreator.createIfWorkflow();
        testWrokflow(workflow, "if-test");
    }
View Full Code Here

     * @throws IOException
     * @throws ComponentRegistryException
     */
    public void testReceive() throws GraphException, ComponentException,
            IOException, ComponentRegistryException {
        Workflow workflow = this.workflowCreator.createReceiveWorkflow();
        testWrokflow(workflow, "receive-test");
    }
View Full Code Here

     * @throws IOException
     * @throws ComponentRegistryException
     */
    public void testLoan() throws GraphException, ComponentException,
            IOException, ComponentRegistryException {
        Workflow workflow = this.workflowCreator.createLoanWorkflow();
        testWrokflow(workflow, "loan");
    }
View Full Code Here

                + XBayaConstants.WORKFLOW_FILE_SUFFIX);
        XMLUtil.saveXML(workflow.toXML(), workflowFile);

        // Read the workflow
        XmlElement workflowElement = XMLUtil.loadXML(workflowFile);
        workflow = new Workflow(workflowElement);

        // Create BPEL again
        bpel = new BPELScript(workflow);
        bpel.create(BPELScriptType.GPEL);
        gpelProcess = bpel.getGpelProcess();
View Full Code Here

     * @throws ComponentRegistryException
     */
    public void testConvertToCWSDLs() throws ComponentException,
            GraphException, ComponentRegistryException {
        WorkflowCreator creator = new WorkflowCreator();
        Workflow workflow = creator.createComplexMathWorkflow();
        DSCUtil.createCWSDLs(workflow, this.configuration.getDSCURL());
    }
View Full Code Here

  }

  public static void createSubworkflow(Workflow parentWorkflow,
      List<Node> nodeSet, XBayaEngine engine, String subworkflowName)
      throws GraphException {
    Workflow subWorkflow = Workflow.getWorkflow(parentWorkflow, nodeSet,
        subworkflowName);

    GraphCanvas newGraphCanvas = engine.getGUI().newGraphCanvas(false);
    newGraphCanvas.setWorkflow(subWorkflow);
View Full Code Here

     * @throws ComponentRegistryException
     */
    public void testWorkflow() throws ComponentException, IOException,
            GraphException, InterruptedException, ComponentRegistryException {
        WorkflowCreator creator = new WorkflowCreator();
        Workflow workflow = creator.createGFacWorkflow();

        File workflowFile = new File("tmp/gfac-test.xwf");
        XMLUtil.saveXML(workflow.toXML(), workflowFile);

        JythonScript script = new JythonScript(workflow, this.configuration);
        script.create();
        String jythonString = script.getJythonString();
        String filename = "tmp/gfac-test.py";
View Full Code Here

     * @throws IOException
     * @throws ComponentRegistryException
     */
    public void testPreInvoke() throws ComponentException, GraphException,
            IOException, ComponentRegistryException {
        Workflow workflow = createWorkflow();
        WorkflowClient.createScript(workflow);

        File workflowWSDLFile = new File(
                "tmp/ADASInitializedWRFForecast-wsdl.xml");
        XMLUtil.saveXML(workflow.getWorkflowWSDL().xml(), workflowWSDLFile);
        File bpelFile = new File("tmp/ADASInitializedWRFForecast-bpel.xml");
        XMLUtil.saveXML(workflow.getGpelProcess().xml(), bpelFile);

        // Get the metadata for input.
        XmlElement inputAppinfo = workflow.getInputMetadata();
        if (inputAppinfo != null) {
            // Parse the simple case.
            // for (XmlElement element : inputAppinfo.requiredElementContent())
            // {
            // String tag = element.getName();
            // String value = element.requiredText();
            // logger.info(tag + " = " + value);
            // }
        }

        // Get the input information
        List<WSComponentPort> inputs = workflow.getInputs();

        for (WSComponentPort input : inputs) {
            // Show the information of each input.

            // Name
View Full Code Here

TOP

Related Classes of edu.indiana.extreme.xbaya.wf.Workflow

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.