diff --git a/src/spiffworkflow_backend/services/process_instance_processor.py b/src/spiffworkflow_backend/services/process_instance_processor.py index eac605ce..435b7901 100644 --- a/src/spiffworkflow_backend/services/process_instance_processor.py +++ b/src/spiffworkflow_backend/services/process_instance_processor.py @@ -895,6 +895,10 @@ class ProcessInstanceProcessor: except WorkflowTaskExecException as we: raise ApiError.from_workflow_exception("task_error", str(we), we) from we + finally: + if save: + self.save() + def cancel_notify(self) -> None: """Cancel_notify.""" self.__cancel_notify(self.bpmn_process_instance)