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

patches/DCWorkflow.py: get transition guard expression text instead of...

patches/DCWorkflow.py: get transition guard expression text instead of callable object in showAsXML.
parent 43d3a8f4
...@@ -913,7 +913,9 @@ def DCWorkflowDefinition_showAsXML(self, root=None): ...@@ -913,7 +913,9 @@ def DCWorkflowDefinition_showAsXML(self, root=None):
'expr':'guard configuration'}) 'expr':'guard configuration'})
for prop_id in guard_prop_to_show: for prop_id in guard_prop_to_show:
if guard_obj is not None: if guard_obj is not None:
prop_value = getattr(guard_obj, prop_id, '') if prop_id == 'expr':
prop_value = getattr(guard_obj.expr, 'text', '')
else: prop_value = getattr(guard_obj, prop_id, '')
else: else:
prop_value = '' prop_value = ''
sub_object = SubElement(guard, prop_id, attrib=dict(type='guard configuration')) sub_object = SubElement(guard, prop_id, attrib=dict(type='guard configuration'))
......
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