show start events in logs as well and added bpmn process identifiers to log table w/ burnettk

This commit is contained in:
jasquat 2023-01-19 10:06:30 -05:00
parent edf11f76cf
commit f5b77f9245
2 changed files with 8 additions and 3 deletions

View File

@ -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"]
),
)
)

View File

@ -48,6 +48,9 @@ export default function ProcessInstanceLogList() {
<td data-qa="paginated-entity-id">{rowToUse.id}</td>
<td>
{rowToUse.bpmn_task_name ||
(rowToUse.bpmn_task_type === 'Default Start Event'
? 'Process Started'
: '') ||
(rowToUse.bpmn_task_type === 'End Event' ? 'Process Ended' : '')}
</td>
{isDetailedView && (
@ -55,9 +58,9 @@ export default function ProcessInstanceLogList() {
<td>{rowToUse.message}</td>
<td>{rowToUse.bpmn_task_identifier}</td>
<td>{rowToUse.bpmn_task_type}</td>
<td>{rowToUse.bpmn_process_identifier}</td>
</>
)}
<td>{rowToUse.bpmn_process_identifier}</td>
<td>{rowToUse.username}</td>
<td>
<Link
@ -81,9 +84,9 @@ export default function ProcessInstanceLogList() {
<th>Message</th>
<th>Task Identifier</th>
<th>Task Type</th>
<th>Bpmn Process Identifier</th>
</>
)}
<th>Bpmn Process Identifier</th>
<th>User</th>
<th>Timestamp</th>
</tr>