diff --git a/hb_server/apps/wf/services.py b/hb_server/apps/wf/services.py index e9a0cb4..7ff0fbe 100644 --- a/hb_server/apps/wf/services.py +++ b/hb_server/apps/wf/services.py @@ -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)