Package edu.indiana.extreme.xbaya.wf

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


      }
      String resource = this.xregistryClient.getResource(qname);
      XmlElement xwf = XMLUtil.stringToXmlElement(resource);
      // System.out.println(XmlConstants.BUILDER.serializeToStringPretty(xwf
      // ));
      Workflow workflow = new Workflow(xwf);
      return workflow;
    } catch (Exception e) {
      throw new XBayaRuntimeException(e);
    }
  }
View Full Code Here


        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();
        String description = workflow.getDescription();

        MinimalLEADMetadata metadata = new MinimalLEADMetadata(uid, name, description);
        metadata.setResourceId(templateID);      

        LEADresourceDocument leadResourceDocument = LEADresourceDocument.Factory.parse(metadata.toString());
View Full Code Here

                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
        String resourceID = myLead.save(workflow, false);
        // Load
        URI templateID2 = myLead.load(resourceID);
        assertEquals(workflow.getUniqueWorkflowName(), templateID2);

        // Redeploy
        String resourceID2 = myLead.save(workflow, true);
        // Load
        URI templateID3 = myLead.load(resourceID2);
        assertEquals(workflow.getUniqueWorkflowName(), templateID3);
    }
View Full Code Here

  public static void main(String[] args) throws XBayaException,
      URISyntaxException, GSSException, IOException {
    String workflowAsString = getWorkflow();

    Workflow workflow = new Workflow(workflowAsString);
    WsdlDefinitions wsdl = workflow.getTridentWorkflowWSDL(
        XBayaConstants.DEFAULT_DSC_URL,
        XBayaConstants.DEFAULT_ODE_URL.toString());
    System.out.println("llllllllllllllllllllllllll");
    System.out.println(wsdl.xmlStringPretty());
View Full Code Here

                proxy, XBayaSecurity.getTrustedCertificates());
        WorkflowClient gpelClient = WorkflowEngineManager.getWorkflowClient(XBayaConstants.DEFAULT_GPEL_ENGINE_URL, gpelUserCredential);
        gpelClient.setEngineURL(XBayaConstants.DEFAULT_GPEL_ENGINE_URL);

        WorkflowCreator workflowCreator = new WorkflowCreator();
        Workflow workflow = workflowCreator.createSimpleMathWorkflow();

        gpelClient.createScriptAndDeploy(workflow, false);

        logger.info("template ID: " + workflow.getUniqueWorkflowName());

        String resourceID = myLead.save(workflow, false);

        logger.info("resourceID: " + resourceID);

        URI templateID2 = myLead.load(resourceID);

        Workflow workflow2 = gpelClient.load(templateID2);

        logger.info("workflow name: " + workflow2.getName());
        assertEquals(workflow.getName(), workflow2.getName());
    }
View Full Code Here

      java.lang.String username,
      NameValue[] inputs,
      NameValue[] configurations) {
    System.err.println("Launch is called for topi:");
   
    Workflow workflow = null;
    try {
      workflow = new Workflow(workflowAsString);
      System.err.println("Workflow Object created");
     
     
    } catch (GraphException e1) {
      // TODO Auto-generated catch block
View Full Code Here

     * @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 GraphException
     * @throws ComponentRegistryException
     */
    public void testMath() throws ComponentException, IOException,
            GraphException, ComponentRegistryException {
        Workflow workflow = this.workflowCreator.createMathWorkflow();
        testWrokflow(workflow, "math");
    }
View Full Code Here

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

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.