Package edu.indiana.extreme.xbaya.workflow

Examples of edu.indiana.extreme.xbaya.workflow.WorkflowClient


        // Clean up the previous run. These cannot be in hide() because show()
        // might be called before hide() exits completly.
        this.parameterPanel.getContentPanel().removeAll();
        this.parameterTextFields.clear();

        WorkflowClient workflowClient = this.engine.getWorkflowClient();
        if (workflowClient.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();
            GSSCredential proxy = myProxyClient.getProxy();
            UserX509Credential credential = new UserX509Credential(
                    proxy, XBayaSecurity.getTrustedCertificates());
            try {
                workflowClient.setUserX509Credential(credential);
            } catch (WorkflowEngineException e) {
                this.engine.getErrorWindow().error(ErrorMessages.GPEL_ERROR, e);
                return;
            }
        }
View Full Code Here


    // Clean up the previous run. These cannot be in hide() because show()
    // might be called before hide() exits completly.
    this.parameterPanel.getContentPanel().removeAll();
    this.parameterTextFields.clear();

    WorkflowClient workflowClient = this.engine.getWorkflowClient();
    if (workflowClient.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();
      GSSCredential proxy = myProxyClient.getProxy();
      UserX509Credential credential = new UserX509Credential(proxy,
          XBayaSecurity.getTrustedCertificates());
      try {
        workflowClient.setUserX509Credential(credential);
      } catch (WorkflowEngineException e) {
        this.engine.getErrorWindow().error(ErrorMessages.GPEL_ERROR, e);
        return;
      }
    }
View Full Code Here

    /**
     * Shows the window.
     */
    public void show() {
        WorkflowClient workflowClient = this.engine.getWorkflowClient();
        if (workflowClient.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();
            GSSCredential proxy = myProxyClient.getProxy();
            UserX509Credential credential = new UserX509Credential(
                    proxy, XBayaSecurity.getTrustedCertificates());
            try {
                workflowClient.setUserX509Credential(credential);
            } catch (WorkflowEngineException e) {
                this.engine.getErrorWindow().error(ErrorMessages.GPEL_ERROR, e);
                return;
            }
        }
View Full Code Here

    /**
     * @param redeploy
     * @param workflow
     */
    private void runInThread(boolean redeploy, Workflow workflow) {
        WorkflowClient client = this.engine.getWorkflowClient();
        try {
            client.createScriptAndDeploy(workflow, redeploy);
            if (redeploy) {
                this.engine.getSubWorkflowUpdater().update(workflow);
            }
            this.deployingDialog.hide();
        } catch (GraphException e) {
View Full Code Here

    /**
     * @param templateID
     * @param type
     */
    private void runInThread(URI templateID, WorkflowClient.WorkflowType type) {
        WorkflowClient client = GPELLoader.this.engine.getWorkflowClient();
        try {
            Workflow workflow = client.load(templateID, type);
            this.loadingDialog.hide();
            if (this.canceled) {
                return;
            }
            this.engine.setWorkflow(workflow);
View Full Code Here

            this.headColor = HEAD_COLOR;
        }
    }

    public void openWorkflowTab(XBayaEngine engine) {
        WorkflowClient workflowClient = engine.getWorkflowClient();
        try {
            Workflow workflow = this.node.getComponent()
                    .getWorkflow(workflowClient);
            engine.getGUI().selectOrCreateGraphCanvas(workflow);
        } catch (GraphException e) {
View Full Code Here

        new Thread() {
            @Override
            public void run() {
                try {
                    WorkflowClient workflowClient = GPELLoadWindow.this.engine
                            .getWorkflowClient();

                    final GcSearchList resultList = workflowClient.list();
                    SwingUtilities.invokeLater(new Runnable() {
                        public void run() {
                            if (resultList == null || resultList.size() == 0) {
                                GPELLoadWindow.this.list.getList().setListData(
                                        new String[]{"No workflow"});
View Full Code Here

    }

    private void runInThread(final Workflow workflow,
            final List<WSComponentPort> inputs, final boolean redeploy) {

        WorkflowClient client = this.engine.getWorkflowClient();
        try {
            client.deploy(workflow, redeploy);
        } catch (WorkflowEngineException e) {
            if (this.canceled) {
                logger.caught(e);
            } else {               
                this.engine.getErrorWindow().error(ErrorMessages.GPEL_ERROR, e);
                this.invokingDialog.hide();
            }
            return;
        } catch (RuntimeException e) {
            if (this.canceled) {
                logger.caught(e);
            } else {               
                this.engine.getErrorWindow().error(
                        ErrorMessages.UNEXPECTED_ERROR, e);
                this.invokingDialog.hide();
            }
            return;
        } catch (Error e) {
            if (this.canceled) {
                logger.caught(e);
            } else {               
                this.engine.getErrorWindow().error(
                        ErrorMessages.UNEXPECTED_ERROR, e);
                this.invokingDialog.hide();
            }
            return;
        }

        MonitorConfiguration monitorConfiguration = this.engine.getMonitor()
                .getConfiguration();
        XBayaConfiguration xbayaConfiguration = this.engine.getConfiguration();
        WsdlDefinitions wsdl;
        try {
            GcInstance instance = client.instantiate(workflow,
                    xbayaConfiguration.getDSCURL(), monitorConfiguration
                            .getTopic());
            wsdl = client.start(instance);
        } catch (WorkflowEngineException e) {
            if (this.canceled) {
                logger.caught(e);
            } else {               
                this.engine.getErrorWindow().error(ErrorMessages.GPEL_ERROR, e);
View Full Code Here

    try {
      if (this.incorrectWorkflowIDs.contains(workflowInstanceID)) {
        // Do not try to load a workflow that failed before.
        return;
      }
      WorkflowClient client = this.engine.getWorkflowClient();
      Workflow loadedWorkflow = client.load(workflowInstanceID,
          WorkflowType.INSTANCE);
      GraphCanvas canvas = this.engine.getGUI().newGraphCanvas(true);
      canvas.setWorkflow(loadedWorkflow);
    } catch (GraphException e) {
      this.incorrectWorkflowIDs.add(workflowInstanceID);
View Full Code Here

            openWorkflowTab(engine);
        }
    }

    public void openWorkflowTab(XBayaEngine engine) {
        WorkflowClient workflowClient = engine.getWorkflowClient();
        try {
            Workflow workflow = this.node.getComponent()
                    .getWorkflow(workflowClient);
            engine.getGUI().selectOrCreateGraphCanvas(workflow);
        } catch (GraphException e) {
View Full Code Here

TOP

Related Classes of edu.indiana.extreme.xbaya.workflow.WorkflowClient

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.