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

Workflow.py: in showAsXML, rewrite variable action's expression to getReference.

parent 7727aa4d
......@@ -887,6 +887,10 @@ class Workflow(IdAsReferenceMixin("workflow_", "prefix"), XMLObject):
if property_value is None or property_value ==() or property_value == []:
property_value = ''
sub_object.text = str(property_value)
# for a very specific case, action return the reference of transition,
# but in XML should show the same expression as in DC workflow.
if vdef.getId() == 'variable_action' and property_id == 'default_expr':
sub_object.text = str('transition/getId|nothing')
# 4. Worklist as XML
worklist_reference_list = []
......
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