Commit 00d9b027 authored by wenjie.zheng's avatar wenjie.zheng

WorkflowTool.py: before processing DC workflow's worklist, check if the...

WorkflowTool.py: before processing DC workflow's worklist, check if the workflow has already been check by new workflow's worklist checker.
parent 15795ae6
...@@ -748,15 +748,17 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool): ...@@ -748,15 +748,17 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
worklist_dict[wf_id] = a worklist_dict[wf_id] = a
for wf_id in chain: for wf_id in chain:
did[wf_id] = None # check if the workflow has been checked.
wf = self.getWorkflowById(wf_id) if not did.has_key(wf_id):
if wf is not None: did[wf_id] = None
a = wf.listObjectActions(info) wf = self.getWorkflowById(wf_id)
if a is not None: if wf is not None:
actions.extend(a) a = wf.listObjectActions(info)
a = wf.getWorklistVariableMatchDict(info) if a is not None:
if a is not None: actions.extend(a)
worklist_dict[wf_id] = a a = wf.getWorklistVariableMatchDict(info)
if a is not None:
worklist_dict[wf_id] = a
wf_ids = self.getWorkflowIds() wf_ids = self.getWorkflowIds()
for wf_id in wf_ids: for wf_id in wf_ids:
......
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