add the process instance id to the error message when using system notifications on errors w/ burnettk

This commit is contained in:
jasquat 2023-08-15 10:29:03 -04:00
parent dff2d56e56
commit f8038e5c3e
1 changed files with 2 additions and 1 deletions

View File

@ -62,7 +62,8 @@ class ErrorHandlingService:
from spiffworkflow_backend.services.message_service import MessageService
message_text = (
f"There was an exception running process {process_model.id}.\nOriginal Error:\n{error.__repr__()}"
f"There was an exception running process model {process_model.id} for instance"
f" {process_instance.id}.\nOriginal Error:\n{error.__repr__()}"
)
message_payload = {
"message_text": message_text,