Skip to content

Commit

Permalink
Merge pull request #976 from sedici/DS-2520
Browse files Browse the repository at this point in the history
DS-2520: Modify XPath expression when retrieving a workflow step
  • Loading branch information
KevinVdV committed Mar 31, 2016
2 parents 58e1bc7 + 52a3f62 commit f970c04
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -114,7 +114,7 @@ public Workflow getWorkflow(Collection collection) throws IOException, WorkflowC

protected Step createFirstStep(Workflow workflow, Node workflowNode) throws TransformerException, WorkflowConfigurationException {
String firstStepID = workflowNode.getAttributes().getNamedItem("start").getTextContent();
Node stepNode = XPathAPI.selectSingleNode(workflowNode, "//step[@id='"+firstStepID+"']");
Node stepNode = XPathAPI.selectSingleNode(workflowNode, "step[@id='"+firstStepID+"']");
if(stepNode == null){
throw new WorkflowConfigurationException("First step does not exist for workflow: "+workflowNode.getAttributes().getNamedItem("id").getTextContent());
}
Expand Down

0 comments on commit f970c04

Please sign in to comment.