if (isWorkflowExists(workflowName)){
throw new UserWorkflowAlreadyExistsException(workflowName);
}
UserWorkflowResource workflowResource = worker.createWorkflowTemplate(workflowName);
workflowResource.setContent(workflowGraphXml);
workflowResource.save();
}
}
public void updateWorkflow(String workflowName, String workflowGraphXml) throws RegistryException {
if (userWorkflowRegistry != null){