From 9f58c7405d299e53815a8f1a13842f3983d0a662 Mon Sep 17 00:00:00 2001 From: jasquat Date: Thu, 16 Nov 2023 12:32:38 -0500 Subject: [PATCH] avoid serializing the bpmn process instance just to save data w/ burnettk --- .../src/spiffworkflow_backend/services/task_service.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/services/task_service.py b/spiffworkflow-backend/src/spiffworkflow_backend/services/task_service.py index fecc22e7c..bca92a556 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/services/task_service.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/services/task_service.py @@ -516,8 +516,7 @@ class TaskService: ) -> JsonDataDict | None: data_dict_to_use = bpmn_process_data_dict if bpmn_process_instance is not None: - serialized_bpmn_process = self.serializer.to_dict(bpmn_process_instance) - data_dict_to_use = serialized_bpmn_process.pop("data") + data_dict_to_use = self.serializer.to_dict(bpmn_process_instance.data) if data_dict_to_use is None: data_dict_to_use = {} bpmn_process_data_json = json.dumps(data_dict_to_use, sort_keys=True)