}
}
System.err.println("Input all set");
XBayaConfiguration conf = null;
try {
conf = getConfiguration(configurations);
conf.setTopic(topic);
conf.setRunWithCrossProduct(true);
} catch (URISyntaxException e1) {
throw new WorkflowRuntimeException(e1);
}
WorkflowInterpretorEventListener listener = null;
WorkflowInterpreter interpreter = null;
AiravataRegistry2 registry = getRegistry();
WorkflowInterpreterConfiguration workflowInterpreterConfiguration = new WorkflowInterpreterConfiguration(workflow,topic,conf.getMessageBoxURL(), conf.getBrokerURL(), registry, conf, null, null);
workflowInterpreterConfiguration.setGfacEmbeddedMode(gfacEmbeddedMode);
workflowInterpreterConfiguration.setActOnProvenance(provenance);
// WorkflowInterpreter object should create prior creation of Listener, because listener needs the threadlocal variable
interpreter = new WorkflowInterpreter(workflowInterpreterConfiguration, new SSWorkflowInterpreterInteractorImpl());
listener = new WorkflowInterpretorEventListener(workflow, conf);
try {
System.err.println("start listener set");
listener.start();
} catch (MonitorException e1) {
e1.printStackTrace();
}
WorkflowContextHeaderBuilder.setCurrentContextHeader(builder.getContextHeader());
final WorkflowInterpretorEventListener finalListener = listener;
conf.setJcrComponentRegistry(jcrComponentRegistry);
final WorkflowInterpreter finalInterpreter = interpreter;
// interpreter.setActOnProvenance(provenance);
interpreter.setProvenanceWriter(runner);
final String experimentId = topic;