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): ...@@ -139,9 +139,8 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
raise WorkflowException('No workflows found.') raise WorkflowException('No workflows found.')
found = False found = False
for workflow in workflow_list: for workflow in workflow_list:
if not isinstance(workflow, InteractionWorkflowDefinition) and \ if not isinstance(workflow, (InteractionWorkflowDefinition, InteractionWorkflow,)) and \
not isinstance(workflow, InteractionWorkflow): state_id in workflow.getStateIdList():
if state_id in workflow.getStateIdList():
found = True found = True
break break
if not found: 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