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

WorkflowTool.py: only convert transition variable when there exist transition.

parent 1b7f9ef4
...@@ -481,6 +481,7 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool): ...@@ -481,6 +481,7 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
variable.setInitialValue(vdef.default_value) variable.setInitialValue(vdef.default_value)
variable.setDescription(vdef.description) variable.setDescription(vdef.description)
# configure transition variable # configure transition variable
if dc_workflow.transitions is not None:
for tid in dc_workflow.transitions: for tid in dc_workflow.transitions:
origin_tdef = dc_workflow.transitions[tid] origin_tdef = dc_workflow.transitions[tid]
transition = workflow._getOb('transition_'+tid) transition = 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