# Module: Monitoring & Administration

The monitoring functions provide a comprehensive overview of all workflow instances and their status.

### AWF Workflow Management

The page **AWF Workflow Management** is the central overview for all workflow instances:

- **Filter options**: status (Active / Completed / Error / Cancelled), template code, date
- **Views**: all workflows, only active, only completed

Actions on this page:

- **Show Details**: opens the workflow instance card with complete information
- **Show Audit Trail**: shows the log of all actions for this instance
- **Cancel Workflow**: cancels an active workflow (requires a reason)
- **Restart Workflow**: restarts a failed or cancelled workflow
- **Clean Up Orphaned Approvals**: cancels running workflows whose record was deleted and removes the approvals of deleted lines from the others. A deletion normally does this by itself; the action is there for approvals left behind before it did, or when no background task could run. It asks for confirmation first and afterwards reports how many workflows were cancelled and how many approvals removed.

### Workflow instance card

The card shows all details of a workflow instance:

- **General**: template code, status, current step, start/end date
- **Source Record**: linked record (with navigation)
- **Audit Trail**: chronological log of all workflow actions
- **Visualization**: graphical representation of progress (see [Workflow Visualization](https://docs.squeeze.one/link/1372 "Module: Workflow Visualization"))

### Header Approval With

The **Header Approval With** field answers at a glance who holds the approval of the record itself — the document header or the master record. You find it in the **AWF Workflow Management** page, on the workflow instance card and in the **Pending Approvals** FactBox on the record.

Depending on how the approval is assigned, it reads:

- **Claimed by USER** — a user has claimed it; **Claimed by USER (group GROUP)** when it came from a workflow user group.
- **Group GROUP - not claimed yet** — it waits in a group and nobody has claimed it so far.
- The e-mail address of an external approver, for an external approval.
- **Only line approvals are open** — the header has no approval of its own at this stage, only its lines; **No open approval** when none is open there either.

If the approval is in a rejection review, **Rejection review:** is put in front. The field is empty once the workflow no longer runs.

### Active workflows

The page **"Active Workflows"** specifically shows only workflows in status **Active**. Useful for daily monitoring and quick intervention.

### Recent Activity

The page **"Recent Activity"** shows the most recent workflow actions (audit-log entries) in chronological order. This lets you quickly see which workflows were recently started, approved, rejected, or escalated.

### Performance analysis

The **Performance analysis** provides statistical evaluations of workflow lead times and frequencies.

### Workflow Statistics

The **Workflow Statistics**page shows aggregated key figures:

- Number of active workflows
- Number of completed workflows
- Number of failed workflows
- Number of cancelled workflows