EccProcessHistory
EccProcessHistory shows the history of a case as a timeline: steps, task changes and custom entries from the process model, with user and time - including all sub-processes.
import EccProcessHistory from "@/ecc/components/widgets/EccProcessHistory";
<EccProcessHistory processInstanceId={process.processInstanceId} />
// on a task page: the history of the whole case
<EccProcessHistory processInstanceId={task.rootProcessInstanceId ?? task.processInstanceId} />
Props
|
| id of the root instance - the history of all sub-processes is included automatically |
What it shows
Entries are listed newest first. Each entry shows:
icon | type of the step: start, end, gateway, user task, script task, call activity, custom entry, ... |
title | user tasks: the task's |
subtitle | the group of a user task ( |
details | the task's |
time | relative ("3 hours ago") via EccDate in the compact |
Two filter buttons above the list add technical steps: gateways and sub-processes. Each click reloads the list with the matching include value.
The widget scrolls within its container, so it fits into a sidebar or a tab.
Data
The widget calls GET /api/v1/process/{processInstanceId}/history?format=ui through fetchProcessHistory. Each entry is an EccProcessHistory object. What the endpoint returns and how the filters work is described in Reading the Process History.
CSS
Change the look in the CSS file of your workspace, see Styling.
| list (shared with EccProcessTasks) |
| filter buttons above the list |
| one entry: icon and name left, date right |
| icon of the entry |
| name; clickable when the entry has details |
| lines below the name |
| user or groups with icon |
| text of the task (expanded) |
| edit button |
Related
the endpoint behind the widget | |
how task parameters and custom entries appear in the timeline | |
widgets that contain the history | |
history next to the task form |
On this page
- EccProcessHistory