Package org.apache.airavata.xbaya.wf

Examples of org.apache.airavata.xbaya.wf.Workflow


    @Test
    public void testScheduleDynamically() throws IOException, URISyntaxException, XBayaException {
        logger.info("Running CrossProductWorkflowTest...");
        URL systemResource = this.getClass().getClassLoader().getSystemResource("ForeachCrossProductLevenshteinDistance.xwf");
        Workflow workflow = new Workflow(WorkflowTestUtils.readWorkflow(systemResource));
        WorkflowInterpreter interpretor = new WorkflowInterpreter(WorkflowTestUtils.getConfiguration(), UUID.randomUUID().toString(),
                workflow, "NA", "NA",true);
        interpretor.scheduleDynamically();
    }
View Full Code Here


    @Test
    public void testScheduleDynamically() throws IOException, URISyntaxException, XBayaException {
        logger.info("Running ForEachWorkflowTest...");
        URL systemResource = this.getClass().getClassLoader().getSystemResource("SimpleEcho.xwf");
        Workflow workflow = new Workflow(WorkflowTestUtils.readWorkflow(systemResource));
        ((InputNode) workflow.getGraph().getNode("input")).setDefaultValue("1");
        WorkflowInterpreter interpretor = new WorkflowInterpreter(WorkflowTestUtils.getConfiguration(), UUID.randomUUID().toString(),
                workflow, "NA", "NA",true);
        interpretor.scheduleDynamically();
    }
View Full Code Here

    //
    // }

    private void loadLocalGraph(String graphFilePath) {
        try {
            Workflow workflow = new Workflow(XMLUtil.loadXML(new File(graphFilePath)));
            setWorkflow(workflow);
        } catch (GraphException e) {
            getErrorWindow().error(ErrorMessages.GRAPH_FORMAT_ERROR, e);
        } catch (ComponentException e) {
            getErrorWindow().error(ErrorMessages.GRAPH_FORMAT_ERROR, e);
View Full Code Here

            this.getGUI().newGraphCanvas(true, false);
            JCRComponentRegistry jcrComponentRegistry = this.getConfiguration().getJcrComponentRegistry();
            try {
                Node node = jcrComponentRegistry.getRegistry().getWorkflow(new QName(XBayaConstants.LEAD_NS, this.configuration.getWorkflow()), this.getConfiguration().getRegistryUserName());
                XmlElement xwf = XMLUtil.stringToXmlElement(node.getProperty("workflow").getString());
                Workflow workflow = new Workflow(xwf);
                this.setWorkflow(workflow);
            } catch (RegistryException e) {
               getErrorWindow().error(ErrorMessages.REPOSITORY_CONFIGURATION_IS_WRONG_FAILED_TO_LOAD_THE_WORKFLOW, e);
            } catch (PathNotFoundException e) {
                getErrorWindow().error(ErrorMessages.GIVEN_WORKFLOW_NAME_IS_WRONG, e);
View Full Code Here

     * @throws IOException
     * @throws GraphException
     * @throws ComponentRegistryException
     */
    public void testSimpleMath() throws ComponentException, IOException, GraphException, ComponentRegistryException {
        Workflow workflow = this.workflowCreator.createSimpleMathWorkflow();
        testWrokflow(workflow, "simple-math");
    }
View Full Code Here

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

     * @throws IOException
     * @throws GraphException
     * @throws ComponentRegistryException
     */
    public void testComplexMath() throws ComponentException, IOException, GraphException, ComponentRegistryException {
        Workflow workflow = this.workflowCreator.createComplexMathWorkflow();
        testWrokflow(workflow, "complex-math");
    }
View Full Code Here

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

     * @throws GraphException
     * @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 GraphException
     * @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

TOP

Related Classes of org.apache.airavata.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.