Workflow History New in 2
Audience:
Low-code EngineersSkill Prerequisites:
Workflows
General Description
The History tab of App Builder › Workflows, beside Workflows, Contracts and Monitoring, lists the runs of the workflows on this site, in progress or ended: where each one waits or failed, its duration, the time it spent running its steps, and each step with its times.
From here you can open a run on its diagram, read-only, with the path it took drawn in green, where it is now, and how long it waited at each step. You can also cancel a run that waits or failed.
Test runs aren't listed.
Which Runs Are Listed
| Run | Listed |
|---|---|
| A run in progress: waiting at a timer, an event, a user task or a workflow it called, or running its next steps after a wait | Always, until it ends. |
| A run that failed | Always, for at least 30 days, even when its workflow doesn't keep run history. |
| A run that completed or was cancelled | Only when its workflow keeps run history, for as long as its Keep run history for setting says. |
| A test run | Never. See Testing and Debugging. |
| A run of one of the platform's own system workflows | Never. |
Runs of workflows on the current engine are listed too, on the same rules, while the Bpmn2 license feature is in the site's license. They have no version and no steps, and they don't open on a diagram.
Runs are listed for every portal of the app. On a site with more than one portal, a Portal column follows Workflow.
Keeping Run History
Each workflow says how long its finished runs are kept, in its Settings tab, on either engine:
| Setting | Description |
|---|---|
| Keep run history for | How many days the History tab keeps a finished run of this workflow, from 0 to 36500. With 0, the default, completed and cancelled runs aren't kept, and failed runs are kept 30 days. |
- What is kept is a summary of each run: who started it, when it started and ended, its version, its status, where it failed and the error, and when it entered and left each element. Its tokens, lists and outputs are never kept.
- Lowering the setting deletes the older runs at the next cleanup. Before you save, the setting warns, for example
After you save, the next cleanup deletes this workflow's finished runs older than 30 days. They can't be brought back. - The cleanup runs about once an hour. It never deletes a run in progress, or a run that another run in progress still waits for.
- The setting travels with the workflow's export and version control. Changing it doesn't change the workflow's version.
Set it on the workflows you want to audit or measure: the Monitoring tab's completed runs, durations and trends count only the workflows that keep run history.
Showing Runs
| Control | What it does |
|---|---|
| Show | Which runs to list: Waiting (the default), Running, Failed, All in progress (those three together), Completed or Cancelled. |
| Workflow | All workflows, or one workflow. Deleted workflows whose runs are still kept are offered at the end, as Old intake (deleted). |
| Refresh | Reads the list again. |
| Load older runs | The list shows 50 runs at a time, newest first. This adds the next 50. |
When nothing matches, the tab says so, for example No workflow is waiting., No workflow has failed. or No workflow has completed.
Opened from Monitoring. A figure of the Monitoring tab opens this tab on the runs it counts, with a bar above the list that says which, such as Runs failed in the last 7 days, Runs waiting on people or Runs whose timer is more than 5 minutes overdue. Clear goes back to the waiting runs of every workflow. Choosing a status also clears it, and keeps the workflow chosen.
Statuses
| Status | Means |
|---|---|
| Waiting | The run is saved at one or more waits: a timer, an event, a user task's task, or a workflow it called. |
| Running | The run waited, and is now running its next steps in the background. |
| Failed | The run failed: an error that no error event caught, its server stopped while it ran a step, or it couldn't be saved at its wait. A run that failed after a wait stays where it failed. |
| Completed | The run reached its end. |
| Cancelled | The run was cancelled in this tab, or with the run that called it. |
Columns
| Column | What it shows |
|---|---|
| Workflow | The workflow's name, or Deleted workflow #7, which opens the run on its diagram. See A run's diagram. Below it, the run's number and the version it runs on, such as #12 · v2 · current is v3 when the workflow has changed since the run started. A run started by another run shows called by #9. A deleted workflow's runs show the name it had, with (deleted). |
| Portal | The portal the run belongs to, on a site with more than one portal. |
| Status | Waiting, Running, Failed, Completed or Cancelled. |
| Where | For a waiting run, each wait, such as Wait 5 minutes waits for a timer, Wait for Purchase request ordered waits for the event "Purchase request ordered", Check budget waits for the workflow it called or Book the invoice waits for its task, with when a timer is due and since when it waits. A task with a deadline or a reminder is listed once, by the task. For a failed run, At "Check supplier" and the error. For a running run, Running now. For a cancelled run, why, such as Cancelled by Jane Smith. or Cancelled with run #9, which called it. Empty for a completed run. |
| Started | When the workflow started, and who started it. |
| Ended | When the run completed, failed or was cancelled. The column shows only while the list has ended runs. |
| Duration | How long since the run started. For a run that ended, until then. |
| Active time | The time the run spent running its steps, without the waits, or unknown when it wasn't recorded. |
| Steps | How many elements the run has entered. Select the number to show the steps. See Steps of a run. |
Times show in their two largest units, such as 120 ms, 4.2 s, 12 min 5 s, 3 h 20 min or 2 d 4 h.
A Run's Diagram
Select the workflow's name in a run's row to open the run on the diagram of the version it runs on. The diagram is read-only: you can move and zoom it, but not edit it. It shows the path the run took in green, up to where the run is now, with how long it waited at each step.
Every run of a BPMN 2.0 workflow opens this way: waiting, running, failed, completed or cancelled. The run's number in Monitoring's Needs attention list opens it too.
At the top of the page:
- ← Back to History (or ← Back to Monitoring) returns to the list you came from, as you left it. Open the workflow opens its current version in the editor, unless the workflow was deleted.
Run #12, its status andVersion 2 (current is 3).- One line that says what the run is doing or how it ended, such as
Waiting at Wait 5 days · for 1 h 6 min, since 7:38 PM · due Nov 19, 7:38 PM (in 4 d 22 h),Running now,Failed at Sync to ERP,Cancelled · ended 8:43 PMorCompleted in 1 min 2 s · ended 6:58 PM. A failed run's error follows in a red box. - Started, Started by, Portal (on a site with more than one portal), Called by (a link to the run that called this one), Ended, Duration and Active time.
On the diagram:
| Mark | Means |
|---|---|
| Green, thicker outline and flows | The path: the elements the run entered and the flows it took. |
| Highlighted element | Where the run is now: the wait it waits at, or the step it runs. |
| Red dashed outline | Where the run failed. |
| Grey dashed outline | Where the run was cancelled. |
| Faded | What the run didn't reach. |
A legend above the diagram names the marks, beside a Read-only badge and the Zoom out, Zoom in and Fit the diagram buttons. The diagram opens fitted to its area.
Times on the diagram. Short notes above the elements give the times, with the full date in their tooltip:
| Element | Note |
|---|---|
| The start event | Started and when. |
| A wait the run left | Waited 1 min 2 s, added up when the run passed it more than once, such as 2 times. |
| The wait the run is at | Waiting 1 h 6 min, since 7:38 PM, and for a timer due in 4 d 22 h, or 2 min late. |
| A task with a deadline or a reminder | Next reminder in 52 s and Deadline in 1 min 38 s while the run waits there, or Reminder fired 2 times · 11:49 PM and Deadline fired · 11:50 PM once they have. See Deadlines and reminders. |
| The end of a completed run | Total duration 1 min 2 s. |
| Where a run failed or was cancelled | Failed or Cancelled, and when. |
Times are counted to when the page was loaded. Load the page again to update them.
Steps beside the diagram. The run's steps are listed beside the diagram (under it on a narrow screen), numbered, each with when it started and how long it took. The step a run in progress is at shows In progress. Point at a step to outline its element on the diagram; select it to bring the element into view. Select an element on the diagram to highlight its steps.
Runs it called. Under each step that called another workflow, such as a call activity or a task with an Execute action, a link opens the run it called, with its number and status. Each round of a call in a loop links to its own run. Called runs that no kept step covers are listed under Other runs it called. A called run is listed only when its own workflow keeps run history, or when it failed.
For screen readers, a Times list gives each element's name with the same times in full sentences, such as Waiting since Nov 14, 2026, 7:38:58 PM.
If the run's earliest steps aren't kept, only the later part of the path is drawn, and the page says Only the later part of the path is shown: the earlier steps of this run aren't kept.
Steps of a Run
Select the number in a run's Steps column to show its steps under it, and select it again to hide them. The steps of one run show at a time.
| Column | What it shows |
|---|---|
| Step | The element's name, or its id when it has no name. |
| Started | When the run entered the element. |
| Ended | When the run left it: by a flow out of it, by an error caught at its border, or when the run failed or ended. In progress for an element a waiting or running run is still at, such as the wait it waits at now. |
| Duration | How long the run spent at the element. |
The steps are in the order the run entered them. An element the run passed more than once, in a loop, shows once for each time.
Most of a run's time is in its waits:
- Tasks and gateways are quick. They usually read
0 msor a few tens of milliseconds. A slow action, such as a call to another system, shows its real time. - An event-based gateway holds its wait. The run waits at the gateway, so the gateway's step shows how long it waited, and the event that fired shows
0 ms.
A run keeps only when it entered and left each element: not its tokens, the results of its actions or the text of its errors. To see those, test the workflow.
A run that has passed very many steps, such as a loop of reminders that goes on for weeks, keeps only its latest ones. The list then ends by saying how many earlier steps aren't kept.
If the steps can't be read, the tab says why under the run, or shows The steps could not be loaded.
Cancelling a Run
Cancel is in the last column of runs that are waiting, or that failed at a wait. A run that is running a step can't be cancelled, since the step would overwrite the cancellation when it ends. A run that failed within its call has nothing left to cancel.
- Select Cancel on the run.
- Read the confirmation,
Cancel run #12: the workflow stops where it is and can't go on, the runs it called are cancelled too, and a workflow that called it goes on at its error events. This can't be undone. - Select Cancel the run, or Keep it to leave it.
When a run is cancelled:
- It ends as cancelled, and moves from the runs in progress to Cancelled, which shows who cancelled it. The tokens and lists it saved while waiting are deleted.
- The runs its call activities wait for are cancelled with it. A called run that is running a step at that moment isn't cancelled: it ends on its own, and nothing waits for it any more.
- A workflow whose call activity waits for the cancelled run goes on at the call activity's error events, with the error code
Cancelledand a message that says who cancelled it. - The tasks its user tasks wait for are cancelled, as the system, with the comment
Run #12 of the workflow that created this task was cancelled.
If the run can't be cancelled, the tab says why above the list:
| Message | Means |
|---|---|
Run #12 is running a step right now. Try again in a moment. | The run started a step after the list was read. |
Run #12 has already ended. | The run completed or was cancelled after the list was read. |
Run #12 wasn't found. | The run doesn't exist on this site. |
The run couldn't be cancelled. | Something else went wrong. The details are in the log. |
Considerations
- Completed runs need run history. With Keep run history for at
0, a workflow's completed and cancelled runs disappear from the list when they end. Only its failed runs stay, for 30 days. - Runs on the current engine have no diagram. They're listed with their times, but without a version or steps, and they don't open on a diagram.
- A failed run can only be cancelled. Retrying a failed run, or moving a run to the workflow's current version, isn't available yet. Fix the cause, cancel the run, and start the process again.
- A run can't be stopped in the middle of a step. Wait until the step ends and the run waits or fails, then cancel it.
- Deleting a workflow doesn't cancel its runs. They stay in the list with the name the workflow had and
(deleted), and its finished runs are kept until their time is up. Cancel the runs you no longer need before you delete the workflow. - A failed run's error is kept as it was raised. It can quote the data the run handled, and it's kept for at least 30 days.