From fa4c3d26d74e91e6a29df7cbfc408b3e69e509a0 Mon Sep 17 00:00:00 2001 From: jasquat Date: Wed, 18 Jan 2023 12:01:37 -0500 Subject: [PATCH] added End Event to simple log view w/ burnettk --- .../routes/process_instances_controller.py | 2 +- spiffworkflow-frontend/src/routes/ProcessInstanceLogList.tsx | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/routes/process_instances_controller.py b/spiffworkflow-backend/src/spiffworkflow_backend/routes/process_instances_controller.py index bc56a8862..d9bc89ed4 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/routes/process_instances_controller.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/routes/process_instances_controller.py @@ -190,7 +190,7 @@ def process_instance_log_list( # ) and_( SpiffLoggingModel.message.in_(["State change to COMPLETED"]), # type: ignore - SpiffLoggingModel.bpmn_task_type == "Default Throwing Event", + SpiffLoggingModel.bpmn_task_type.in_(["Default Throwing Event", "End Event"]), # type: ignore ) ) diff --git a/spiffworkflow-frontend/src/routes/ProcessInstanceLogList.tsx b/spiffworkflow-frontend/src/routes/ProcessInstanceLogList.tsx index b20d10d65..5c93bab81 100644 --- a/spiffworkflow-frontend/src/routes/ProcessInstanceLogList.tsx +++ b/spiffworkflow-frontend/src/routes/ProcessInstanceLogList.tsx @@ -46,7 +46,10 @@ export default function ProcessInstanceLogList() { return ( {rowToUse.id} - {rowToUse.bpmn_task_name} + + {rowToUse.bpmn_task_name || + (rowToUse.bpmn_task_type === 'End Event' ? 'Process Ended' : '')} + {isDetailedView && ( <> {rowToUse.message}