Package edu.indiana.extreme.xbaya.mylead

Examples of edu.indiana.extreme.xbaya.mylead.MyLead


            if (this.mode == GUI_MODE) {
              leadCtxHeader = WSDLUtil.buildLeadContextHeader(this.workflow, this.configuration, this.engine.getMyLead(), new MonitorConfiguration(this.configuration.getBrokerURL(), this.topic, true, this.configuration.getMessageBoxURL()), wsNode.getID(), null);
            } else {
              leadCtxHeader = WSDLUtil.buildLeadContextHeader(this.workflow, this.configuration,
              // Set the userdn in the right proxy if necessary
                  new MyLead(new MyLeadConfiguration(), proxy), new MonitorConfiguration(this.configuration.getBrokerURL(), this.topic, true, this.configuration.getMessageBoxURL()), wsNode.getID(), null);
            }
          } catch (URISyntaxException e) {
            throw new XBayaException(e);
          }
View Full Code Here


              leadCtxHeader = WSDLUtil.buildLeadContextHeader(this.workflow, this.configuration, this.engine.getMyLead(), new MonitorConfiguration(this.configuration.getBrokerURL(), this.topic, true, this.configuration.getMessageBoxURL()), foreachWSNode.getID(), null);
            } else {
              leadCtxHeader = WSDLUtil.buildLeadContextHeader(this.workflow, this.configuration,
              // //////////Set the userdn in
              // the right proxy if necessary
                  new MyLead(new MyLeadConfiguration(), proxy), new MonitorConfiguration(this.configuration.getBrokerURL(), this.topic, true, this.configuration.getMessageBoxURL()), foreachWSNode.getID(), null);
            }

          } catch (URISyntaxException e) {
            raiseException(e);
          }
View Full Code Here

        GSSCredential proxy = this.myProxyClient.getProxy();

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

        GSSCredential proxy = this.myProxyClient.getProxy();

        MyLeadConfiguration myleadConfig = new MyLeadConfiguration(
                this.configuration.getMyLeadAgentURL(), this.configuration
                        .getMyLeadUser(), this.configuration.getMyLeadProject());
        MyLead myLead = new MyLead(myleadConfig, proxy);
        List<MyleadWorkflowMetadata> workflowTemplates = myLead.list();
        for (MyleadWorkflowMetadata template : workflowTemplates) {
            String resouceID = template.getId();
            String title = template.getName();
            logger.info("resouceID: " + resouceID);
            logger.info("title: " + title);
View Full Code Here

        GSSCredential proxy = this.myProxyClient.getProxy();

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

        UserX509Credential gpelUserCredential = new UserX509Credential(
                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

            .getMyProxyLifetime());

    // These have to be before the GUI setup.
    this.workflowClient = WorkflowEngineManager.getWorkflowClient();
    this.workflowClient.setXBayaEngine(this);
    this.myLead = new MyLead();

    this.subWorkflowUpdater = new SubWorkflowUpdater(this);

    // Set up the GUI.
    XBayaEngine.this.gui = new XBayaGUI(XBayaEngine.this);
View Full Code Here

                    private MyLeadLoadWindow window;

                    public void actionPerformed(ActionEvent event) {
                        if (this.window == null) {
                            try {
                                MyLead myLead = new MyLead();
                                myLead.getConfiguration().set(configuration);
                                this.window = new MyLeadLoadWindow(
                                        MyLeadMenu.this.engine, myLead);
                            } catch (RuntimeException e) {
                                MyLeadMenu.this.engine.getErrorWindow().error(
                                        ErrorMessages.UNEXPECTED_ERROR, e);
View Full Code Here

TOP

Related Classes of edu.indiana.extreme.xbaya.mylead.MyLead

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.