Node roleNode = stepNode.getAttributes().getNamedItem("role");
Role role = null;
if(roleNode != null)
role = workflow.getRoles().get(roleNode.getTextContent());
String userSelectionActionID = stepNode.getAttributes().getNamedItem("userSelectionMethod").getTextContent();
UserSelectionActionConfig userSelection = createUserAssignmentActionConfig(userSelectionActionID);
return new Step(stepID, workflow, role, userSelection, getStepActionConfigs(stepNode), getStepOutcomes(stepNode), getNbRequiredUser(stepNode));
}catch (Exception e){
log.error("Error while creating step with :" + stepID, e);
throw new WorkflowConfigurationException("Step: " + stepID + " does not exist for workflow: "+workflow.getID());