Package edu.indiana.extreme.xbaya.workflow.proxy

Examples of edu.indiana.extreme.xbaya.workflow.proxy.WorkflowProxyClient


    }

    public static WorkflowClient getWorkflowClient() {
        String workflowClientName = System.getProperty("edu.indiana.extreme.xbaya.workflow.ClientType");
        if (WORKFLOW_CLIENT_PROXY.equals(workflowClientName)) {
            return new WorkflowProxyClient();
        } else {
            return new GPELClient();
        }
    }
View Full Code Here


    }

    public static WorkflowClient getWorkflowClient(URI engineURL, UserX509Credential gpelUserX509Credential) throws WorkflowEngineException {
        String workflowClientName = System.getProperty("edu.indiana.extreme.xbaya.workflow.ClientType");
        if (WORKFLOW_CLIENT_PROXY.equals(workflowClientName)) {
            return new WorkflowProxyClient(engineURL, "", gpelUserX509Credential);
        } else {
            return new GPELClient(engineURL, gpelUserX509Credential);
        }
    }
View Full Code Here

            // Parse the workflow
            Workflow workflow = new Workflow(workflowXML);
            workflow.setName("some-number-will-come-here");
            WorkflowProxyClient.createScript(workflow);

            WorkflowProxyClient workflowProxyClient = new WorkflowProxyClient();
            workflowProxyClient.setEngineURL(new URI(wsdlLoc));

            workflowProxyClient.deploy(workflow, false);

        } catch (IOException e) {
            e.printStackTrace();

        } catch (GraphException e) {
View Full Code Here

    public void testXBayaProxyClientCreateInstance() {
        try {

            Workflow workflow = new Workflow();
            workflow.setName("uuid:some-number-will-come-here");
            WorkflowProxyClient workflowProxyClient = new WorkflowProxyClient();
            workflowProxyClient.setEngineURL(new URI(wsdlLoc));

            workflowProxyClient.instantiate(workflow, new URI(wsdlLoc));

        } catch (GraphException e) {
            e.printStackTrace();
        } catch (WorkflowEngineException e) {
            e.printStackTrace();
View Full Code Here

          WaitDialog waitDialog = new WaitDialog(this, "Deploying the Workflow.",
            "Deploying the Workflow." + "Please wait for a moment.",
            this.engine);
            GSSCredential proxy = this.engine.getMyProxyClient().getProxy();
            ODEDeploymentWindow odeDeployment = new ODEDeploymentWindow();
            final WorkflowProxyClient client = new WorkflowProxyClient();
        client.setXRegistryUrl(this.engine.getConfiguration()
                .getXRegistryURL());
        client.setEngineURL(this.engine.getConfiguration().getProxyURI());
        client.setXBayaEngine(this.engine);
       
            new ODEDeploymentClient(this.engine, waitDialog).deploy(client, workflow, proxy, true, System.currentTimeMillis());
           
      this.engine.getMyLead().setProxy(proxy);
            this.engine.getMyLead().save(workflow, redeploy);
View Full Code Here

      }
      if (needDeployment) {
        deployStreamControlWorkflowIfNecessary(this.engine
            .getWorkflow());

        WorkflowProxyClient wpClient = new WorkflowProxyClient();
        wpClient.setXRegistryUrl(this.engine.getConfiguration()
            .getXRegistryURL());
        wpClient.setEngineURL(this.engine.getConfiguration()
            .getProxyURI());
        wpClient.setXBayaEngine(this.engine);
        GSSCredential proxy = null;
        if (wpClient.isSecure()) {
          MyProxyClient myProxyClient = this.engine
              .getMyProxyClient();
          proxy = myProxyClient.getProxy();
          UserX509Credential credential = new UserX509Credential(
              proxy, XBayaSecurity.getTrustedCertificates());
          wpClient.setUserX509Credential(credential);
        }
        this.engine.getGUI().getGraphCanvas().setNameAndDescription(
            "Control_" + oldWorkflowName,
            "Control_" + oldWorkflowName);
        engine.getWorkflow().setName("Control_" + oldWorkflowName);
View Full Code Here

    if(this.configMode){
      return;
    }


    final WorkflowProxyClient client = new WorkflowProxyClient();
    client.setXRegistryUrl(this.engine.getConfiguration()
            .getXRegistryURL());
    client.setEngineURL(this.engine.getConfiguration().getProxyURI());
    client.setXBayaEngine(this.engine);
    GSSCredential proxy = null;
    if (client.isSecure()) {
      // Check if the proxy is loaded.
      boolean loaded = this.myProxyChecker.loadIfNecessary();
      if (!loaded) {
        return;
      }
      // Creates a secure channel in gpel.
      MyProxyClient myProxyClient = this.engine.getMyProxyClient();
      proxy = myProxyClient.getProxy();
      UserX509Credential credential = new UserX509Credential(proxy,
          XBayaSecurity.getTrustedCertificates());
      try {
        client.setUserX509Credential(credential);
      } catch (WorkflowEngineException e) {
        this.engine.getErrorWindow().error(ErrorMessages.GPEL_ERROR, e);
        return;
      }
    }
View Full Code Here

TOP

Related Classes of edu.indiana.extreme.xbaya.workflow.proxy.WorkflowProxyClient

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.