Commits

Anonymous committed 4c4c5f8

Patch from WF-444

Comments (0)

Files changed (1)

src/java/com/opensymphony/workflow/AbstractWorkflow.java

 
         Collection currentSteps = store.findCurrentSteps(id);
 
-        boolean isCompleted = true;
+        // Check global actions first
+        boolean isCompleted = wf.getGlobalActions().size() == 0;
 
-        for (Iterator iterator = currentSteps.iterator(); iterator.hasNext();) {
+        for (Iterator iterator = currentSteps.iterator(); isCompleted && iterator.hasNext();) {
             Step step = (Step) iterator.next();
             StepDescriptor stepDes = wf.getStep(step.getStepId());