Workflow Management¶
Module: Workflow Management | Audience: Admin, Owner
Table of Contents¶
- Overview
- Workflow Templates
- Creating a Template
- Configuring Conditions
- Configuring Approval Levels
- Assigning Roles
- How a Template Is Chosen
- Approval Tasks
- Workflow Transactions
- Workflow Analytics
- Workflow Audit Trail
- Workflow Priorities
- Delegation
- Escalation
- Template Import & Export
- Supported Entity Types & Event Types
- Master Data Used by This Module
Overview¶
The workflow engine automates approval processes. When a user performs an action (for example creating an asset, requesting a transfer or disposal, inviting a user) and a matching workflow template exists, the action is held instead of being applied immediately: the system creates a workflow transaction holding the submitted form data, routes it through the configured approval levels, and applies the change only when the last level approves. If any approver rejects, nothing is applied.
Key Concepts:
| Concept | Definition |
|---|---|
| Workflow Template | A reusable definition of when (Entity Type + Event Type + conditions) and how (approval levels) approvals happen |
| Condition | A rule on a field of the submitted form that determines if the template applies |
| Approval Level | A stage requiring approval from a role or a specific user before the workflow advances |
| Workflow Transaction | A single running instance of a workflow for a specific submission (holds the form data) |
| Approval Task | An individual approval assignment at a specific level |
Sidebar: Workflow Management contains Workflow Templates, Approval Tasks and Workflow Transactions. Workflow Priorities, Workflow Analytics and Workflow Audit Trail exist but are reached by URL (not listed in the sidebar).
Permissions: template screens use view_workflow_template_scr / add_workflow_template_scr (the Edit screen also requires add_workflow_template_scr); approval-task and transaction screens use view_workflow_scr. Cancelling a whole workflow, and approving/rejecting a task you are not assigned to, requires the Override task (workflow override) permission.
Workflow Templates¶
Path: Sidebar → Workflow Management → Workflow Templates | URL: /workflow-templates
Configurable grid with search, column filters, sorting and Clear Filters. Add Template opens the create form. Row actions: View, Edit, Approvals (jumps straight to the approval levels of that template) and Delete. Delete asks "Are you sure you want to delete this workflow template? This action cannot be undone."
Template Detail (/workflow-templates/:id, titled Workflow Template Details) is read-only: Name, Description, Entity Type, Event Type, Assigned Roles (chips), Created By / Created At / Updated By / Updated At.
Creating a Template¶
Path: Workflow Templates → Add Template | URL: /workflow-templates/create (edit: /workflow-templates/:id/edit, button Update Workflow)
The form has four sections.
Basic Information
| Field | Type | Required | Validation |
|---|---|---|---|
| Name | Text | Yes | Max 100 characters; must be unique per (Company, Name, Event Type, Entity Type) - a duplicate is rejected with a message on the Name field |
| Description | Text Area | No | - |
Workflow Configuration
| Field | Type | Required | Validation / Depends On |
|---|---|---|---|
| Entity Type | Dropdown | Yes | Loaded from the system. Cannot be changed when editing |
| Event Type | Dropdown | Yes | Filtered by Entity Type - select the entity first |
Changing Entity Type or Event Type clears the conditions already entered (they are field-specific).
Role Assignment - multi-select of roles that can initiate this workflow (tooltip: "Select roles that can initiate this workflow"). Users who do not hold one of these roles will not trigger the template (Admins are exempt from the conditional check).
Workflow Conditions - the Add Conditions button is disabled until Entity Type and Event Type are chosen; see Configuring Conditions. Leaving it empty makes the template unconditional ("will trigger for all events of the selected type").
Click Create Workflow to save (the new template opens in detail view) or Cancel.
A template is inert until it has at least one approval level AND at least one assigned role. Templates missing either are skipped when the system looks for a match, so the action is applied directly without approval. After creating a template, always add approval levels (list row → Approvals).
Field Dependency: The available Event Types change based on the selected Entity Type. See Supported Entity Types & Event Types.
Configuring Conditions¶
Where: the Workflow Conditions section of the template form (also reachable as a standalone page at /workflow-templates/:id/conditions).
Conditions determine when the workflow is triggered. If multiple conditions are defined, all must be true (AND logic). The section shows Current Conditions (n) with edit and delete icons for each, and an Add Condition card:
- Choose a Field Type (text, number, date, dropdown, multi-select).
- Choose the Field (the list depends on the Entity Type/Event Type).
- The builder then shows the operator and value inputs that suit that field type; confirm to add the condition. Cancel discards the card.
Deleting a condition on an existing template removes it immediately; on a new template it is just removed from the draft.
Operators by field type (as offered in the builder):
| Field Type | Operators |
|---|---|
| Text | Equals, Not Equals, Contains, Starts With, Ends With (plus Is Empty / Is Not Empty where the field allows) |
| Number | Equals, Not Equals, Greater Than, Less Than, Greater Than or Equal, Less Than or Equal |
| Date | Equals, Not Equals, After, Before, On or After, On or Before |
| Dropdown | Equals, Not Equals, In, Not In |
| Multi-select dropdown | In, Not In |
Example Conditions:
| Condition | Meaning |
|---|---|
| Asset Category = "IT Equipment" | Only trigger for IT assets |
| Purchase Value > 10,000 | Only trigger for high-value assets |
| Location = "Headquarters" | Only trigger for HQ assets |
If a condition's field is not present in the submitted form data, the condition is treated as not met.
Configuring Approval Levels¶
Path: Workflow Templates → row Approvals | URL: /workflow-templates/:id/approvals (page title Approval Configuration: )
Each workflow can have multiple sequential approval levels. The workflow advances from Level 1 → Level 2 → ... → Level N; the change is applied only after the last level approves.
The page lists Current Approval Levels (n) as cards ("Level 1: Role-based Approval", with "(Optional)" when approval is not required, the approver role or user, the Reminder / Escalation SLA and the description). Each card has Move Up, Move Down (re-numbers the levels), Edit and Delete (confirmation "Are you sure you want to delete this approval level?"). Add Approval Level opens the form (Add Approval Level / Edit Approval Level; buttons Add / Update and Cancel).
| Field | Type | Required | Validation | Depends On |
|---|---|---|---|---|
| Approval Mode | Dropdown | Yes | User Role or Specific User |
- |
| User Role | Dropdown | Conditional | Required if Mode = "User Role"; shows the number of users in each role | Approval Mode, Roles |
| Specific User | Dropdown (searchable) | Conditional | Required if Mode = "Specific User"; the same user cannot be used on two levels of one template | Approval Mode, Users |
| Reminder SLA | Number + unit | Yes | Must be > 0; unit Minutes / Hours / Days; default 24 hours | - |
| Escalation SLA | Number + unit | Yes | Must be > 0; unit Minutes / Hours / Days; default 48 hours ("Time before escalating the approval task") | - |
| Modifiable Fields | Multi-Select | No | Fields the approver can change before approving. Not shown for Asset Transfer and Asset Disposal templates | Entity Type, Event Type |
| Description | Text Area | No | - | - |
| Approval Required | Switch | No | Default: On. If off, the level is shown as optional | - |
Approval type is always sequential from this screen.
Conditional Field Logic¶
Approval Mode = "User Role"
→ User Role: visible and REQUIRED
→ Specific User: hidden
Approval Mode = "Specific User"
→ Specific User: visible and REQUIRED
→ User Role: hidden
Modifiable Fields¶
The Modifiable Fields multi-select lets you specify which entity fields an approver at this level can change. This is how workflows support "approve with modifications." Available fields depend on the template's Entity Type and Event Type and are fetched dynamically.
Assigning Roles¶
Where: the Role Assignment field of the template form, or the standalone page /workflow-templates/:id/roles (Role Configuration for ).
The standalone page lists Assigned Roles (each with a Can Initiate tag and a Remove Role icon that opens a "Remove Role" confirmation) and an Add Role button that reveals a Select Role dropdown, a Description box and Add Role / Cancel. Roles assigned here are the roles that can initiate the workflow; they are not the approvers (approvers are set per approval level).
How a Template Is Chosen¶
When a user submits a form that supports workflows, the system looks for a template with the same Entity Type and Event Type and then:
- Ignores templates that have no approval level or no assigned role.
- Evaluates the conditions of every remaining conditional template against the submitted data (non-admin users must also hold one of the template's initiator roles).
- If several conditional templates match, the most specific one wins (the one with the most conditions; ties go to the newest).
- If none match, an unconditional template (no conditions) is used as the fallback; if there are several, the highest priority wins, then the newest.
- If no template is found, the action is applied immediately with no approval.
After a match, the user must still be allowed to trigger that template, otherwise the submission is refused with "You do not have permission to trigger this workflow".
Approval Tasks¶
Path: Sidebar → Workflow Management → Approval Tasks | URL: /approval-tasks
The page has four tabs: Pending Tasks (with a red badge of your pending count), All Tasks, Approved Tasks and Rejected Tasks. You see tasks assigned to you, to a role you hold, or - with the Override permission - tasks of others. Tasks appear when a workflow reaches a level where you are the approver (by role or specific user).
On Pending and All tabs, each pending row has a checkbox (a header checkbox selects all pending rows; "n selected") and these row actions:
| Row action | Description |
|---|---|
| View Details | Opens the task detail |
| Approve | Opens Approve Task - optional Comments, then Approve |
| Reject | Opens Reject Task - Rejection Reason is mandatory |
| Reassign | Opens Reassign Task - see below |
| Cancel Workflow | Only with the Override permission; opens Cancel Workflow (optional comments) |
Bulk approve: select pending rows and click Approve Selected; the Approve Multiple Tasks dialog asks for optional comments and Approve All approves every selected task in one go.
Taking Action on an Approval Task¶
Path: Approval Tasks → Click a task | URL: /approval-tasks/:taskId
The detail page shows the template name as header, a status chip (Pending, Overdue when the due date has passed, Approved, Rejected) and, for pending tasks, the buttons Approve, Reject, Reassign and (Override permission) Cancel Workflow. Below are the sections Form Data (what was submitted), Data Change Details, Workflow Progress and Approval Tasks (all tasks of the transaction), plus any attached documents (View / Download).
| Action | Description |
|---|---|
| Approve | Marks your task approved and advances the workflow to the next level; after the last level the held change is applied. Comments are optional. Only the assigned user/role (or someone with Override) can approve; an already completed task cannot be approved again |
| Reject | Denies the request. A rejection reason is required. The whole workflow is rejected, all other pending tasks are cancelled ("Cancelled due to rejection at level n") and the submitter's change is not applied |
| Reassign | Hands the task to someone else. A reason is required. A role-based task is reassigned to another role (it must have users); a user-based task is reassigned to another user, who must hold the Override task permission. You cannot reassign to the current assignee, and only pending tasks can be reassigned |
| Cancel Workflow | Override permission only. Cancels the entire workflow transaction and all its pending tasks; cannot be undone and is refused if the workflow is already completed |
Edit Form (approve with modifications): for templates other than Asset Transfer / Asset Disposal, the Form Data section has an Edit Form button (enabled only for a pending task assigned to you or your role, and when form data exists). It opens the original entity form (asset, location, department, supplier, user ...) inside the task, restricted to the level's Modifiable Fields; fields not in that list are read-only. Close Edit returns to the read-only view. Saving updates the held form data before you approve.
Approval by e-mail link: approval notification e-mails contain a link (/workflow-approval/<token>). It signs you in if needed and then opens the task at /approval-tasks/:taskId with the requested action.
Workflow Transactions¶
Path: Sidebar → Workflow Management → Workflow Transactions | URL: /approval-tasks/workflow-transactions
Two tabs: My Transactions (requests you initiated) and All Transactions. Both are grids with search, column filters, sorting and pagination (default sort: submission date, newest first). Row actions: View, Approvals (opens the template's approval levels) and Delete (confirmation "Delete Workflow Transaction").
Transaction statuses: Draft, Pending, In Progress, Approved, Rejected, Cancelled, Completed. Task statuses: Pending, Approved, Rejected, Delegated, Escalated, Cancelled, Skipped.
Transaction detail (/approval-tasks/workflow-transactions/:id) has a Print button and these sections:
| Section | Content |
|---|---|
| Transaction Information | Transaction ID, Workflow Template, Initiator, Reference Object, Current Approval Level, Submission Date, Completion Date |
| Form Data | The submitted data being approved |
| Workflow Progress | Level-by-level progress timeline |
| Approval Tasks | Each task with approver, status, comments |
| Workflow History | Chronological log of approvals, rejections, cancellations and other actions with user and comments |
Workflow Analytics¶
URL: /approval-tasks/workflow-transactions/workflow-analytics (not in the sidebar)
| Element | Description |
|---|---|
| Show Filters / Hide Filters | Reveals Workflow Template (All Templates or one), Time Period (Daily / Weekly / Monthly), From Date, To Date and Apply Filters |
| Overview tab | One card per template: Execution Count, Avg. Completion Time, Approval Rate, SLA Compliance, Bottleneck |
| Trends, Bottlenecks, Rejections tabs | Summaries over time, slowest approval levels and rejection categories. The chart areas currently render as placeholder text ("Chart placeholder ...") rather than interactive charts |
| Reports tab | Choose Report Format (PDF, Excel or HTML) and click Generate Report |
Workflow Audit Trail¶
URL: /workflow-audit-trail (not in the sidebar; breadcrumb Dashboard → Workflow Management → Audit Trail)
A compliance view of who did what to workflow objects.
- Audit Trail Search card: Entity Type (Workflow Template, Workflow Transaction, Approval Task, Workflow Condition, Workflow Approval), Entity ID, Action (Create, Update, Delete, Approve, Reject, Reassign, Escalate), User (username or e-mail), From Date, To Date, IP Address and Search Text; icons for Search History, Save Search (kept for the current browser session only) and Clear.
- Table: Timestamp, User, Entity Type, Entity ID (with a View entity shortcut), Action chip, IP Address and a Details toggle that expands Change Details (Before / After / Additional Information) and Technical Details.
- Generate Report (top right) builds a PDF compliance report for the current search and opens it in a new tab.
Workflow Priorities¶
URL: /workflow-templates/priorities (not in the sidebar)
Lists every template (Name, Entity Type, Event Type) with a slider and number box from 1 to 10. Move them, then Save Changes (only changed templates are sent; Reset discards edits). A success banner confirms "Priorities updated successfully".
Priority is a tie-breaker, not a first filter: it only matters when the system must choose between several unconditional templates for the same Entity/Event (higher number wins, see How a Template Is Chosen). Conditional templates are ranked by how many conditions they match.
Delegation¶
The data model and services support temporary delegation of approval authority (Delegator, Delegate, optional Workflow Template, Start/End Date, status Scheduled / Active / Inactive, Reason), but there is currently no screen in the portal to create or manage delegations. To hand over work today, use Reassign on an approval task (see Approval Tasks).
Escalation¶
Each approval level stores a Reminder SLA and an Escalation SLA (see Configuring Approval Levels). The portal has no separate screen to define escalation targets (user, role or reporting level); the Escalation SLA value is the only escalation setting you can configure from the UI. Tasks past their due date show as Overdue in the task views.
Template Import & Export¶
The application backend includes a template import/export capability, but the portal has no Migrate / Import / Export screen for workflow templates. Recreate templates manually in each environment.
Supported Entity Types & Event Types¶
| Entity Type | Available Event Types |
|---|---|
| Asset | Create, Update, Delete |
| Location | Create, Update, Delete |
| User | Create, Update, Delete |
| Asset Transfer | Create |
| Asset Disposal | Create |
Note: Asset Transfer and Asset Disposal templates do not support Modifiable Fields or Edit Form in approval tasks - approvers can only approve, reject, reassign or cancel.
Master Data Used by This Module¶
| Master Entity | Where Used | Purpose |
|---|---|---|
| Roles | Template initiator roles; Approval levels - User Role field; Reassign | Role-based approval routing |
| Users | Approval levels - Specific User; Reassign (Override-permission users) | Person-based approval routing |
| Entity Fields | Conditions, Modifiable Fields | Dynamic field-based configuration |
Related: Asset Management · Asset Transfer · Asset Disposal · User & Role Management · Notifications