Package org.apache.airavata.client.stub.interpretor

Examples of org.apache.airavata.client.stub.interpretor.NameValue


    List<NameValue> parameters=new ArrayList<NameValue>();
    Document parameterDocument = XMLUtils.newDocument(new ByteArrayInputStream(xml.getBytes()));
    org.w3c.dom.NodeList childNodes = parameterDocument.getDocumentElement().getChildNodes();
    for(int i=0;i<childNodes.getLength();i++){
      org.w3c.dom.Node parameterNode = childNodes.item(i);
      NameValue pair = new NameValue();
      pair.setName(parameterNode.getLocalName());
      pair.setValue(parameterNode.getTextContent());
      parameters.add(pair);
    }
    return parameters;
  }
View Full Code Here


          port.setValue(input.getValue());
        }
      }
      List<NameValue> inputValues = new ArrayList<NameValue>();
      for (WSComponentPort port : ports) {
        NameValue nameValue = new NameValue();
        nameValue.setName(port.getName());
        if (port.getValue() == null) {
          nameValue.setValue(port.getDefaultValue());
        } else {
          nameValue.setValue(port.getValue().toString());
        }
        inputValues.add(nameValue);
      }
      String experimentID=options.getCustomExperimentId();
      String workflowTemplateName = workflowObj.getName();
View Full Code Here

          port.setValue(input.getValue());
        }
      }
      List<NameValue> inputValues = new ArrayList<NameValue>();
      for (WSComponentPort port : ports) {
        NameValue nameValue = new NameValue();
        nameValue.setName(port.getName());
        if (port.getValue() == null) {
          nameValue.setValue(port.getDefaultValue());
        } else {
          nameValue.setValue(port.getValue().toString());
        }
        inputValues.add(nameValue);
      }
      String experimentID=options.getCustomExperimentId();
      String workflowTemplateName = workflowObj.getName();
View Full Code Here

          port.setValue(input.getValue());
        }
      }
      List<NameValue> inputValues = new ArrayList<NameValue>();
      for (WSComponentPort port : ports) {
        NameValue nameValue = new NameValue();
        nameValue.setName(port.getName());
        if (port.getValue() == null) {
          nameValue.setValue(port.getDefaultValue());
        } else {
          nameValue.setValue(port.getValue().toString());
        }
        inputValues.add(nameValue);
      }
      String experimentID=options.getCustomExperimentId();
      String workflowTemplateName = workflowObj.getName();
View Full Code Here

    }
    public String setupAndLaunch(String workflowAsString, String experimentId, String gatewayId, String username,
            Map<String,String> inputs,boolean inNewThread,WorkflowContextHeaderBuilder builder) throws AiravataAPIInvocationException{
      List<NameValue> inputData=new ArrayList<NameValue>();
      for (String inputName : inputs.keySet()) {
      NameValue input = new NameValue();
      input.setName(inputName);
      input.setValue(inputs.get(inputName));
      inputData.add(input);
    }
      Map<String, String> configuration = new HashMap<String, String>();
      configuration.put(BROKER, getAiravataAPI().getAiravataManager().getEventingServiceURL().toASCIIString());
        configuration.put(MSGBOX, getAiravataAPI().getAiravataManager().getMessageBoxServiceURL().toASCIIString());
View Full Code Here

  }
  private String runExperimentGeneral(Workflow workflowObj, List<WorkflowInput> inputs, ExperimentAdvanceOptions options, EventDataListener listener) throws AiravataAPIInvocationException {
    try {
      List<NameValue> inputValues = new ArrayList<NameValue>();
      for (WorkflowInput input : inputs) {
        NameValue nameValue = new NameValue();
        nameValue.setName(input.getName());
        nameValue.setValue(String.valueOf(input.getValue()==null?input.getDefaultValue():input.getValue()));
        inputValues.add(nameValue);
      }
      String workflowString = XMLUtil.xmlElementToString(workflowObj.toXML());
//      List<WSComponentPort> ports = getWSComponentPortInputs(workflowObj);
//      for (WorkflowInput input : inputs) {
View Full Code Here

    }
    public String setupAndLaunch(String workflowAsString, String experimentId, String gatewayId, String username,
            Map<String,String> inputs,boolean inNewThread,WorkflowContextHeaderBuilder builder) throws AiravataAPIInvocationException{
      List<NameValue> inputData=new ArrayList<NameValue>();
      for (String inputName : inputs.keySet()) {
      NameValue input = new NameValue();
      input.setName(inputName);
      input.setValue(inputs.get(inputName));
      inputData.add(input);
    }
      Map<String, String> configuration = new HashMap<String, String>();
      configuration.put(BROKER, getAiravataAPI().getAiravataManager().getEventingServiceURL().toASCIIString());
        configuration.put(MSGBOX, getAiravataAPI().getAiravataManager().getMessageBoxServiceURL().toASCIIString());
View Full Code Here

    List<NameValue> parameters=new ArrayList<NameValue>();
    Document parameterDocument = XMLUtils.newDocument(new ByteArrayInputStream(xml.getBytes()));
    org.w3c.dom.NodeList childNodes = parameterDocument.getDocumentElement().getChildNodes();
    for(int i=0;i<childNodes.getLength();i++){
      org.w3c.dom.Node parameterNode = childNodes.item(i);
      NameValue pair = new NameValue();
      pair.setName(parameterNode.getLocalName());
      pair.setValue(parameterNode.getTextContent());
      parameters.add(pair);
    }
    return parameters;
  }
View Full Code Here

    public String setupAndLaunch(String workflowAsString, String experimentId, String gatewayId, String username,
            Map<String,String> inputs,boolean inNewThread,WorkflowContextHeaderBuilder builder) throws AiravataAPIInvocationException{
      List<NameValue> inputData=new ArrayList<NameValue>();
      for (String inputName : inputs.keySet()) {
      NameValue input = new NameValue();
      input.setName(inputName);
      input.setValue(inputs.get(inputName));
      inputData.add(input);
    }
      Map<String, String> configuration = new HashMap<String, String>();
      configuration.put(BROKER, getAiravataAPI().getAiravataManager().getEventingServiceURL().toASCIIString());
        configuration.put(MSGBOX, getAiravataAPI().getAiravataManager().getMessageBoxServiceURL().toASCIIString());
View Full Code Here

  }
  private String runExperimentGeneral(Workflow workflowObj, List<WorkflowInput> inputs, ExperimentAdvanceOptions options, EventDataListener listener) throws AiravataAPIInvocationException {
    try {
      List<NameValue> inputValues = new ArrayList<NameValue>();
      for (WorkflowInput input : inputs) {
        NameValue nameValue = new NameValue();
        nameValue.setName(input.getName());
        nameValue.setValue(String.valueOf(input.getValue()==null?input.getDefaultValue():input.getValue()));
        inputValues.add(nameValue);
      }
      String workflowString = XMLUtil.xmlElementToString(workflowObj.toXML());
//      List<WSComponentPort> ports = getWSComponentPortInputs(workflowObj);
//      for (WorkflowInput input : inputs) {
View Full Code Here

TOP

Related Classes of org.apache.airavata.client.stub.interpretor.NameValue

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.