Package edu.indiana.dde.mylead.agent.xmlbeans

Examples of edu.indiana.dde.mylead.agent.xmlbeans.CreateExperimentsRequestDocument


   */
  private static OperationResponseDocument createExperiment(
      String instanceID, String templateID, String userDN,
      String wsdlLoc, String experimentName, String experimentDescription) {
    AgentPortType stub = new ODEClient().createStub(userDN, wsdlLoc);
    CreateExperimentsRequestDocument experimentDoc = CreateExperimentsRequestDocument.Factory
        .newInstance();
    CreateCollectionsRequestType createCollectionReq = CreateCollectionsRequestType.Factory
        .newInstance();
    CollectionType collectionInfo = createCollectionReq
        .addNewCollectionInfo();

    MinimalLEADMetadata minimalLEADMetadata = new MinimalLEADMetadata(
        userDN, experimentName, experimentDescription);

    LEADResourceType leadResource = minimalLEADMetadata
        .getLeadResourceDoc().getLEADresource();
    ThemeType theme = leadResource.addNewData().addNewIdinfo()
        .addNewKeywords().addNewTheme();

    theme.addNewThemekey().setStringValue(instanceID);
    theme.setThemekt("ROOT_WORKFLOW_ID");

    theme = leadResource.addNewData().addNewIdinfo().addNewKeywords()
        .addNewTheme();

    theme.addNewThemekey().setStringValue(templateID);
    theme.setThemekt("ROOT_WORKFLOW_INSTANCE_ID");

    collectionInfo.setLEADresource(leadResource);

    collectionInfo.setAssignNewResourceID(true);

    experimentDoc.setCreateExperimentsRequest(createCollectionReq);

    OperationResponseDocument res = stub.createExperiments(experimentDoc);
    return res;
  }
View Full Code Here

TOP

Related Classes of edu.indiana.dde.mylead.agent.xmlbeans.CreateExperimentsRequestDocument

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.