public class MonitorWorkflow {
private static final Logger log = LoggerFactory.getLogger(MonitorWorkflow.class);
public static void monitor(final String experimentId) throws AiravataAPIInvocationException, URISyntaxException {
PasswordCallback passwordCallback = new PasswordCallbackImpl(RunWorkflow.getUserName(),
RunWorkflow.getPassword());
AiravataAPI airavataAPI = AiravataAPIFactory.getAPI(new URI(RunWorkflow.getRegistryURL()),
RunWorkflow.getGatewayName(), RunWorkflow.getUserName(), passwordCallback);
MonitorListener monitorListener = new MonitorListener();
Monitor experimentMonitor = airavataAPI.getExecutionManager().getExperimentMonitor(experimentId,