Commit 058367b1 authored by wenjie.zheng's avatar wenjie.zheng

WorklowTool.py: isInstance improvement.

parent 4d8affb7
......@@ -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