Package edu.indiana.extreme.xbaya.test.util

Examples of edu.indiana.extreme.xbaya.test.util.WorkflowCreator


     * @throws GraphException
     * @throws ComponentRegistryException
     */
    public void testRemoveNode() throws ComponentException, GraphException,
            ComponentRegistryException {
        WorkflowCreator creator = new WorkflowCreator();
        Workflow workflow = creator.createSimpleMathWorkflow();
        Graph graph = workflow.getGraph();

        Node node = graph.getNode("Adder_add");
        assertNotNull(node);
        int originalSize = graph.getPorts().size();
View Full Code Here


        super.setUp();

        File tmpDir = new File("tmp");
        tmpDir.mkdir();

        this.graphCreater = new WorkflowCreator();
    }
View Full Code Here

     */
    @Override
    protected void setUp() throws Exception {
        super.setUp();

        this.workflowCreator = new WorkflowCreator();

        // GPEL Setup
        X509Certificate[] trustedCertificates = XBayaSecurity
                .getTrustedCertificates();
        MyProxyClient client = new MyProxyClient(this.configuration
View Full Code Here

     * @throws WorkflowEngineException
     * @throws ComponentRegistryException
     */
    public void XtestDeploy() throws ComponentException, GraphException,
            WorkflowEngineException, ComponentRegistryException {
        WorkflowCreator creator = new WorkflowCreator();
        Workflow workflow = creator.createComplexMathWorkflow();
        workflow.setName("this is test name");
        workflow.setDescription("this is test description");
        WorkflowClient client = WorkflowEngineManager.getWorkflowClient();
        client.setEngineURL(XBayaConstants.DEFAULT_GPEL_ENGINE_URL);

View Full Code Here

     * @throws WorkflowEngineException
     * @throws ComponentRegistryException
     */
    public void XtestRedeploy() throws ComponentException, GraphException,
            WorkflowEngineException, ComponentRegistryException {
        WorkflowCreator creator = new WorkflowCreator();
        Workflow workflow = creator.createComplexMathWorkflow();
        WorkflowClient client = WorkflowEngineManager.getWorkflowClient();
        client.setEngineURL(XBayaConstants.DEFAULT_GPEL_ENGINE_URL);

        client.createScriptAndDeploy(workflow, false);

View Full Code Here

     * @throws WorkflowEngineException
     * @throws ComponentRegistryException
     */
    public void XtestStart() throws ComponentException, GraphException,
            WorkflowEngineException, ComponentRegistryException {
        WorkflowCreator creator = new WorkflowCreator();
        Workflow workflow = creator.createSimpleMathWorkflow();

        WorkflowClient client = WorkflowEngineManager.getWorkflowClient();
        client.setEngineURL(XBayaConstants.DEFAULT_GPEL_ENGINE_URL);

        client.createScriptAndDeploy(workflow, false);
View Full Code Here

    /**
     * @throws XBayaException
     */
    public void testLoadInstance() throws XBayaException {
        WorkflowCreator creator = new WorkflowCreator();
        Workflow workflow0 = creator.createComplexMathWorkflow();

        WorkflowClient client = WorkflowEngineManager.getWorkflowClient();
        client.setEngineURL(XBayaConstants.DEFAULT_GPEL_ENGINE_URL);

        // Deploy
View Full Code Here

    /**
     * @throws XBayaException
     */
    public void XtestInvoke() throws XBayaException {

        WorkflowCreator creator = new WorkflowCreator();
        Workflow workflow0 = creator.createGFacWorkflow();

        WorkflowClient client = WorkflowEngineManager.getWorkflowClient();
        client.setEngineURL(XBayaConstants.DEFAULT_GPEL_ENGINE_URL);

        URI templateID = client.createScriptAndDeploy(workflow0, false);
View Full Code Here

     * @throws XmlException
     * @throws ComponentRegistryException
     */
    public void testMetadata() throws ComponentException, GraphException,
            XmlException, ComponentRegistryException {
        WorkflowCreator workflowCreator = new WorkflowCreator();
        MyLeadConfiguration myleadConfig = new MyLeadConfiguration(
                this.configuration.getMyLeadAgentURL(), this.configuration
                        .getMyLeadUser(), this.configuration.getMyLeadProject());

        Workflow workflow = workflowCreator.createGFacWorkflow();
        String templateID = "http://test";

        String uid = myleadConfig.getUser();

        String name = workflow.getName();
View Full Code Here

        MyLeadConfiguration myleadConfig = new MyLeadConfiguration(
                this.configuration.getMyLeadAgentURL(), this.configuration
                        .getMyLeadUser(), this.configuration.getMyLeadProject());
        MyLead myLead = new MyLead(myleadConfig, proxy);
        WorkflowCreator workflowCreator = new WorkflowCreator();

        Workflow workflow = workflowCreator.createSimpleMathWorkflow();
       
        UUID uuid = UUID.randomUUID();
        workflow.setName(uuid.toString());

        // First deploy
View Full Code Here

TOP

Related Classes of edu.indiana.extreme.xbaya.test.util.WorkflowCreator

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.