Commit 745dfed1 authored by wenjie.zheng's avatar wenjie.zheng

WorkflowTool.py: deploy addPossibleTransition in workflow conversion.

parent 83ab81f9
......@@ -349,11 +349,7 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
sdef = workflow._getOb('state_'+sid)
new_category = []
for transition_id in dc_workflow.states.get(sid).transitions:
tr = getattr(workflow, 'transition_'+transition_id, None)
if tr is not None:
tr_path = 'destination/' + '/'.join(tr.getPath().split('/')[2:])
new_category.append(tr_path)
sdef.setCategoryList(new_category)
sdef.addPossibleTransition(transition_id)
# set transition's destination state:
for tid in dc_workflow.transitions:
tdef = workflow._getOb('transition_'+tid)
......
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