From f5b77f92459848686e2bb1504408d5134205ed8d Mon Sep 17 00:00:00 2001 From: jasquat Date: Thu, 19 Jan 2023 10:06:30 -0500 Subject: [PATCH] show start events in logs as well and added bpmn process identifiers to log table w/ burnettk --- .../routes/process_instances_controller.py | 4 +++- .../src/routes/ProcessInstanceLogList.tsx | 7 +++++-- 2 files changed, 8 insertions(+), 3 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 d9bc89ed4..fa931b21e 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,9 @@ def process_instance_log_list( # ) and_( SpiffLoggingModel.message.in_(["State change to COMPLETED"]), # type: ignore - SpiffLoggingModel.bpmn_task_type.in_(["Default Throwing Event", "End Event"]), # type: ignore + SpiffLoggingModel.bpmn_task_type.in_( # type: ignore + ["Default Throwing Event", "End Event", "Default Start Event"] + ), ) ) diff --git a/spiffworkflow-frontend/src/routes/ProcessInstanceLogList.tsx b/spiffworkflow-frontend/src/routes/ProcessInstanceLogList.tsx index 5c93bab81..acfb4020c 100644 --- a/spiffworkflow-frontend/src/routes/ProcessInstanceLogList.tsx +++ b/spiffworkflow-frontend/src/routes/ProcessInstanceLogList.tsx @@ -48,6 +48,9 @@ export default function ProcessInstanceLogList() { {rowToUse.id} {rowToUse.bpmn_task_name || + (rowToUse.bpmn_task_type === 'Default Start Event' + ? 'Process Started' + : '') || (rowToUse.bpmn_task_type === 'End Event' ? 'Process Ended' : '')} {isDetailedView && ( @@ -55,9 +58,9 @@ export default function ProcessInstanceLogList() { {rowToUse.message} {rowToUse.bpmn_task_identifier} {rowToUse.bpmn_task_type} - {rowToUse.bpmn_process_identifier} )} + {rowToUse.bpmn_process_identifier} {rowToUse.username} Message Task Identifier Task Type - Bpmn Process Identifier )} + Bpmn Process Identifier User Timestamp