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

Workflow.py: in showAsXML, iff show variable's expression as getId when...

Workflow.py: in showAsXML, iff show variable's expression as getId when variable is action, and it has default_expr.
parent 192ed5d4
...@@ -889,7 +889,7 @@ class Workflow(IdAsReferenceMixin("workflow_", "prefix"), XMLObject): ...@@ -889,7 +889,7 @@ class Workflow(IdAsReferenceMixin("workflow_", "prefix"), XMLObject):
sub_object.text = str(property_value) sub_object.text = str(property_value)
# for a very specific case, action return the reference of transition, # for a very specific case, action return the reference of transition,
# but in XML should show the same expression as in DC workflow. # but in XML should show the same expression as in DC workflow.
if vdef.getId() == 'variable_action' and property_id == 'default_expr': if vdef.getId() == 'variable_action' and property_id == 'default_expr' and property_value != '':
sub_object.text = str('transition/getId|nothing') sub_object.text = str('transition/getId|nothing')
# 4. Worklist as XML # 4. Worklist as XML
......
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