}
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());