Fixes #578 - issue with us displaying an incorrect end event in some cases.
This commit is contained in:
parent
c83b047881
commit
bd3176eea6
|
@ -387,7 +387,8 @@ class WorkflowProcessor(object):
|
|||
endtasks = []
|
||||
if self.bpmn_workflow.is_completed():
|
||||
for task in SpiffTask.Iterator(self.bpmn_workflow.task_tree, SpiffTask.ANY_MASK):
|
||||
if isinstance(task.task_spec, EndEvent):
|
||||
# Assure that we find the end event for this workflow, and not for any sub-workflows.
|
||||
if isinstance(task.task_spec, EndEvent) and task.workflow == self.bpmn_workflow:
|
||||
endtasks.append(task)
|
||||
return endtasks[-1]
|
||||
|
||||
|
|
Loading…
Reference in New Issue