Preconditions.checkState(runningProcesses.putIfAbsent(workflowName, workflowId) == null,
"Workflow %s is already running", workflowName);
// currently we are using it for schedule, so not starting the workflow
return new WorkflowManager() {
@Override
public List<String> getSchedules() {
return appFabricClient.getSchedules(applicationId, workflowName);
}