Examples of ExperimentAdvanceOptions


Examples of org.apache.airavata.client.api.ExperimentAdvanceOptions

  @Override
  public ExperimentAdvanceOptions createExperimentAdvanceOptions(
      String experimentName, String experimentUser,
      String experimentMetadata) throws AiravataAPIInvocationException {
    ExperimentAdvanceOptions options = createExperimentAdvanceOptions();
    options.setExperimentName(experimentName);
    options.setExperimentCustomMetadata(experimentMetadata);
    options.setExperimentExecutionUser(experimentUser);
    return options;
  }
View Full Code Here

Examples of org.apache.airavata.client.api.ExperimentAdvanceOptions

  }

  public static void main(String[] args) {
    ExecutionManagerImpl a = new ExecutionManagerImpl(null);
    try {
      ExperimentAdvanceOptions b = a.createExperimentAdvanceOptions();
      b.getCustomWorkflowOutputDataSettings().addNewOutputDataSettings("la", "di", "da", false);
      WorkflowContextHeaderBuilder c = AiravataAPIUtils.createWorkflowContextHeaderBuilder(b, "sheeeeeeeeeeee","meeee");
      System.out.println(XMLUtil.xmlElementToString(c.getXml()));
    } catch (AiravataAPIInvocationException e) {
      e.printStackTrace();
    }
View Full Code Here

Examples of org.apache.airavata.client.api.ExperimentAdvanceOptions

    public void setClient(AiravataClient client) {
        this.client = client;
    }

    public String runExperiment(String workflowTemplateId, List<WorkflowInput> inputs) throws AiravataAPIInvocationException {
        ExperimentAdvanceOptions options = createExperimentAdvanceOptions(workflowTemplateId + "_" + Calendar.getInstance().getTime().toString(), getClient().getCurrentUser(), null);
        return runExperimentGeneral(workflowTemplateId, inputs, options, null);

    }
View Full Code Here

Examples of org.apache.airavata.client.api.ExperimentAdvanceOptions

            throw new AiravataAPIInvocationException(e);
        }
    }

    public ExperimentAdvanceOptions createExperimentAdvanceOptions() throws AiravataAPIInvocationException {
        return new ExperimentAdvanceOptions();
    }
View Full Code Here

Examples of org.apache.airavata.client.api.ExperimentAdvanceOptions

    public ExperimentAdvanceOptions createExperimentAdvanceOptions() throws AiravataAPIInvocationException {
        return new ExperimentAdvanceOptions();
    }

    public ExperimentAdvanceOptions createExperimentAdvanceOptions(String experimentName, String experimentUser, String experimentMetadata) throws AiravataAPIInvocationException {
        ExperimentAdvanceOptions options = createExperimentAdvanceOptions();
        options.setExperimentName(experimentName);
        options.setExperimentCustomMetadata(experimentMetadata);
        options.setExperimentExecutionUser(experimentUser);
        return options;
    }
View Full Code Here

Examples of org.apache.airavata.client.api.ExperimentAdvanceOptions

    this.gateway = gateway;
  }
 
  public static void main(String[] args) throws Exception {
    AiravataAPI api = AiravataAPIFactory.getAPI(new URI("http://localhost:8080/airavata/services/registry"), "default", "admin", new PasswordCallBackImpl("admin", "admin"));
    ExperimentAdvanceOptions options = api.getExecutionManager().createExperimentAdvanceOptions();
    options.getCustomWorkflowSchedulingSettings().addNewNodeSettings("data1", "comma_app", 1, 1);
    String workflow = "Workflow3";
    List<WorkflowInput> inputs = api.getWorkflowManager().getWorkflowInputs(workflow);
    System.out.println(api.getExecutionManager().runExperiment(workflow, inputs,options));
  }
View Full Code Here

Examples of org.apache.airavata.client.api.ExperimentAdvanceOptions

    protected void runWorkFlow(Workflow workflow, List<String> inputValues, Object outputValue) throws Exception {
        AiravataAPI airavataAPI = AiravataAPIFactory.getAPI(new URI(getRegistryURL()), getGatewayName(), getUserName(),
                new PasswordCallbackImpl());
        List<WorkflowInput> workflowInputs = setupInputs(workflow, inputValues);
        String workflowName = workflow.getName();
        ExperimentAdvanceOptions options = airavataAPI.getExecutionManager().createExperimentAdvanceOptions(
                workflowName, getUserName(), null);

        String experimentId = airavataAPI.getExecutionManager().runExperiment(workflowName, workflowInputs, options);

        Assert.assertNotNull(experimentId);
View Full Code Here

Examples of org.apache.airavata.client.api.ExperimentAdvanceOptions

    protected String executeWorkflow(Workflow workflow, List<String> inputValues) throws Exception {
        AiravataAPI airavataAPI = AiravataAPIFactory.getAPI(new URI(getRegistryURL()), getGatewayName(), getUserName(),
                new PasswordCallbackImpl());
        List<WorkflowInput> workflowInputs = setupInputs(workflow, inputValues);
        String workflowName = workflow.getName();
        ExperimentAdvanceOptions options = airavataAPI.getExecutionManager().createExperimentAdvanceOptions(
                workflowName, getUserName(), null);

        options.getCustomSecuritySettings().getCredentialStoreSecuritySettings().setTokenId("1234");

        String experimentId = airavataAPI.getExecutionManager().runExperiment(workflowName, workflowInputs, options);

        Assert.assertNotNull(experimentId);
View Full Code Here

Examples of org.apache.airavata.client.api.ExperimentAdvanceOptions

            workflowInputs.get(i).setValue(valueString);
            ++i;
        }

        String workflowName = workflow.getName();
        ExperimentAdvanceOptions options = airavataAPI.getExecutionManager().createExperimentAdvanceOptions(
                workflowName, getAiravataServerUser(), null);


        //========================= Setting token id =========================//

        if (tokenId != null) {
            log("Setting token id to " + tokenId);
            options.getCustomSecuritySettings().getCredentialStoreSecuritySettings().setTokenId(tokenId);
            options.getCustomSecuritySettings().getCredentialStoreSecuritySettings().setPortalUser(portalUser);
            options.getCustomSecuritySettings().getCredentialStoreSecuritySettings().setGatewayId(getGatewayName());
        } else {
            log("Token id is not set ....");
        }

        //====================================================================//
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.