Commit 1e397a10 authored by wenjie.zheng's avatar wenjie.zheng Committed by Sebastien Robin

WorklowTool.py: isInstance improvement.

parent fbacdf87
......@@ -139,9 +139,8 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
raise WorkflowException('No workflows found.')
found = False
for workflow in workflow_list:
if not isinstance(workflow, InteractionWorkflowDefinition) and \
not isinstance(workflow, InteractionWorkflow):
if state_id in workflow.getStateIdList():
if not isinstance(workflow, (InteractionWorkflowDefinition, InteractionWorkflow,)) and \
state_id in workflow.getStateIdList():
found = True
break
if not found:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment