条件流转bug

This commit is contained in:
caoqianming 2021-10-20 14:41:01 +08:00
parent 526127b1e4
commit 70f71874e7
1 changed files with 3 additions and 0 deletions

View File

@ -112,6 +112,9 @@ class WfService(object):
destination_state = transition.destination_state
ticket_all_value = cls.get_ticket_all_field_value(ticket)
ticket_all_value.update(**ticket_data)
for key, value in ticket_all_value.items():
if isinstance(ticket_all_value[key], str):
ticket_all_value[key] = "'''" + ticket_all_value[key] + "'''"
if transition.condition_expression:
for i in transition.condition_expression:
expression = i['expression'].format(**ticket_all_value)