Skip to content

Business Process Management

Marcello Marchetti edited this page Nov 19, 2026 · 6 revisions

Business Process Management (Processes)

What is the Processes module

Business Process Management (BPM) lets your organization model, run and monitor long-lived business processes following the BPMN 2.0 standard. Unlike orchestrators (short-lived, agent-to-agent workflows) and Agent Tasks (single executions), a process is a stateful entity that can run for hours or days, alternating automated (AI) steps with human steps, waiting for approvals or external input, and branching on conditions.

BPM is delivered as a separately licensed module. Until the license is enabled for your tenant, the Processes menu group is hidden — even for administrators. Contact Hevolus to enable it.

Access and roles

Once the license is active, access within the Processes group is role-based:

Capability Where it lives Who can use it
My Tasks — the personal worklist of assigned work items /my-tasks Any valid user in the tenant
Processes — list, design and publish processes /processes (designer at /processes/designer) process-manager
Process Categories — the process/task taxonomy /process-categories process-manager
Business Roles — organizational roles used by process lanes /business-roles process-manager
Process Performance — planned-vs-actual dashboards /process-performance process-manager
Process KPIs — KPI boards, baseline and value of a process /process-kpi process-manager (every board and action); a process owner sees the boards of their processes, read-only plus Confirm
Process Instances — live monitoring and interventions /process-instances process-operator

A user's roles are resolved server-side — the worklist only shows the work items for the roles a user actually holds.

Designing a process

Open a process and use the visual designer to build the BPMN 2.0 diagram; the properties panel configures each node.

Element What to configure
Human activity The business role (lane) it's assigned to, and an optional form to fill in
AI-assisted activity The AI pre-fills the step, then a person reviews and confirms (see Human + AI activities)
Automated activity The Agent Task the engine runs without human intervention
Exclusive / parallel gateways Exclusive = one branch chosen by condition; parallel = fork into multiple branches
Lanes Mapped to business roles (see below)
Call Activity Another published process, run as a sub-process of this one (see Connecting processes to each other)
Start / End events Process entry and exit

Forms are defined at design time with a reusable form builder, shared by the start form and by every human activity — field types, attachments and the editor itself are covered under Task forms below.

Gateway conditions — on an exclusive gateway, each outgoing flow can carry a condition (variable, operator — equals / not equals / greater / less / ≥ / ≤ / exists — and value), with one branch optionally marked as the default (else). The engine evaluates them and routes the token to the matching branch; the condition is shown as a label on the arrow.

Two elements are joined by one arrow at most: the designer refuses a second arrow between the same two elements, and saving discards any duplicate. Two overlapping arrows used to start the next step twice; processes already published with such a duplicate now start it once.

A definition is versioned: saving overwrites the single working draft, and a new published version is created only when you publish.

Creating a process with the Process Buddy

A process can also be born from a description in words. The Process Buddy is a system assistant that interviews you — one question at a time — and at the end creates the process as a draft, with the diagram already drawn and ready to open in the designer. It is the way in for whoever knows the business process but not the BPMN notation.

Start it from the process list, next to Import, or from the designer of a new process — from the toolbar, or from the invitation that appears on the still-empty canvas.

The interview covers what an executable process needs, not only the drawing:

It asks about So that
Roles involved Lanes are mapped to your business roles
Human steps, AI-assisted steps, automated steps Each activity gets the right type and, where needed, its Agent Task
Decision points and the conditions that govern them Gateways come out with their conditions and a default branch
Fields to fill in at start and at each human task Forms exist from the first version
Expected durations and category Lead time and governance are set

It works only with what already exists in your organization. Before starting it reads your roles, agent tasks, categories and published processes, and works with those: it does not invent a role that is not there — it says so and suggests creating it first. If a reference is not recognized, the step is left unlinked and the draft flags it, exactly as happens when importing a file: complete it in the designer before publishing.

When something does not add up, the assistant notices, not you. If the proposed process breaks a platform rule — a gateway with no default branch, an automated step with no Agent Task, a link to a step that does not exist — the error goes back to the assistant, which corrects it and proposes again. No technical message reaches you to read or copy.

The result is always a draft. Publishing stays an explicit choice, after reviewing the drawing, as it is for imported processes. Starting the assistant from a new process you had already sketched asks before replacing the work in progress.

If part of the interview matches a process you have already published, the assistant links it as a sub-process instead of rewriting it (see Connecting processes to each other).

Task forms

A human activity can carry a form, defined at design time with a reusable form builder and filled in by whoever carries out the task. The same builder defines the start form of the process.

Field types

Type Notes
Text · long text · number · date
Yes/no Leaving it unticked is answering "no": the variable is created with a negative value
Dropdown A static list, or options pulled dynamically from an External Datasource (SQL or REST, configured in the admin External Datasources page) mapping two result columns to value and label
User picker Used, among other things, to assign a task to the person named in a field
Attachment One or more files uploaded by whoever carries out the task — see below

Every field can carry an optional help line, shown under the label to whoever fills it in: use it to say what that data is expected to be, without lengthening the label.

Attachment fields

When a step of a process consists of producing a document — a site-survey report, a photo, a signed quote — an Attachment field keeps that document inside the process instead of sending it by email. The uploaded files become process variables like any other data, so the following steps find them among the upstream data and download them.

  • It is added like any other field, and can be made mandatory: the task cannot be completed until there is at least one file.
  • Upload happens on choosing the file, not on completing the task, so a task left half-done keeps the files already uploaded. Each file can reach 50 MB, and while the task is in your charge you can remove the wrong ones.
  • The following steps see them as a variable: add that variable among the upstream data of another task's form and the files appear with name, size and a download button.
  • Download links are generated on demand and are short-lived. The process keeps the reference to the file, not an address that expires, so an attachment uploaded today is still downloadable weeks later.
  • Every organization has its own space, and every file belongs to its process instance: a reference pointing at another case's instance is not served.
  • In the process start form the field stays read-only, with a note: the instance does not exist yet, so there is no case to attach the file to.

Attachments for the AI agent

A step whose work is done by an agent — Automated or Human + AI — can pass that agent the files uploaded in the attachment fields of the earlier activities of the same case, so the agent can read a report, check an invoice or summarise a contract. Turn on Share attachments with the agent in the step's properties panel; it is off by default, so published processes do not change.

  • The agent receives every attachment uploaded so far in the case, and reads it like a file attached in a chat: text, PDF, Office documents and images.
  • In an automatic step the files reach the Agent Task started by the process; in an interactive Human + AI step they are already in the task's chat from its first message.
  • The agent only sees the files of its own process instance.
  • The option takes effect on the cases started after the process is published with it: tasks created earlier do not have it.

Configuring the form

The Configure form window has the list of fields on the left, in the order the form will appear, and the detail of the selected field only on the right, one control per cell.

  • Order — rows move up and down with two arrows, both the fields to fill in and the variables taken from previous steps. The order in the editor is the order the form is presented in.
  • Recognizable variables — wherever a variable is picked, its name appears in brackets next to its label ("Notes (insertion-note)"), which is what tells apart three fields all labelled "Notes" on different steps. It applies to the form's upstream data, to the mapping between a process and a sub-process, and to assigning a task to a user taken from a field.
  • Context fields — the label of a field coming from an upstream step can be rewritten; its key stays read-only, because that is the link to the variable.
  • A field that fails validation is selected automatically, so the error is corrected where it is read. Preview shows the form as whoever fills it in will see it.

Human + AI activities

An AI-assisted activity — Human + AI in the designer's Performer field — pairs an Agent Task with a person. By default the Agent Task runs as soon as the flow reaches the activity, and the task opens with its form fields already filled in from the agent's answer: the person reviews, corrects and completes. The agent's full answer also stays available in the case as aiOutput.

  • On an orchestrator — when the Agent Task runs an orchestrator, the fields are filled in from the output of the orchestration's last agent, as they are with a single agent.
  • Values that do not fit are dropped — a value unsuitable for its field (an option outside the list, an invalid date) is discarded and the field stays empty for the person to fill in.
  • Generated documents — when the agent produces a file (for example a Word document from a template), the task shows it under Generated documents with a download link. The file is a process variable like the generated text.

Interactive Human + AI activities

An activity can instead be marked Interactive (a checkbox in the properties panel, shown only when the performer is Human + AI, and off by default — processes already published do not change). The Agent Task is then not run automatically: the process creates the task straight away, and whoever takes it works with the agent or orchestrator of the Agent Task in a chat next to the form.

  • The chat starts once the task is taken — until then the task says Take the task to start the chat with the assistant. The chat is available only to whoever has the task in charge, and it opens by itself with the Agent Task's Input Template, resolved on the case data.
  • Every answer updates the form — the fields are filled in again from each answer, and the person reviews, corrects and completes as usual. A value the person asks for explicitly in the chat ("use a firm tone") enters the field even when the agent's answer does not repeat it.
  • Agents and orchestrators — it works with a single agent and with an orchestrator, including the questions the orchestrator asks during the turn. The final answer stays available in the case as aiOutput, as with the automatic run.
  • Reloading the page restarts the conversation from the beginning.
  • Attachments — with Share attachments with the agent on, the chat starts with the files uploaded in the earlier activities already available to the agent (see Attachments for the AI agent).

Connecting processes to each other

A published process can be called as a sub-process by other processes, so a procedure shared by several flows is designed and maintained once. In the designer, add a task, change its type to Call Activity, and the properties panel asks for three things: the called process, an input mapping and an output mapping. When the flow reaches that step the sub-process starts, the calling process waits, and it resumes when the sub-process finishes.

Only published processes can be called, and the step always runs the latest published version, resolved when the sub-process starts and then fixed for that run. Publishing a change to the sub-process therefore never alters executions already in flight — they finish on the version they began with.

The data exchange is declared explicitly. Each mapping is a list of pairs: a variable of the sub-process fed from a variable of the calling process (input), and a variable of the calling process fed from a variable of the sub-process (output). Names can differ, so the sub-process keeps its own vocabulary. What is not declared does not pass — in neither direction — so a sub-process never sees case data it has no business seeing, and it cannot write back over variables the caller did not offer. An empty mapping passes nothing at all.

If the sub-process does not complete, the calling process stops in error, naming the step and the reason. It is recoverable: Retry on that Call Activity starts a fresh sub-process and the flow continues. Conversely, cancelling the calling process cancels the sub-processes still running underneath it, so no orphan executions are left behind. Chains are limited to a maximum depth (five by default), so a configuration mistake cannot recurse indefinitely.

Configurations that could not work are rejected at publish time, with the reason: a process calling itself, a chain of calls that closes into a loop (the offending path is reported), a called process that does not exist or was never published, and a mapping that is not a valid list of pairs.

The link survives export and re-import of the diagram, mappings included, so a process tree can be moved between environments as a set of BPMN files.

Business roles

Process lanes use a dedicated business role entity (managed at /business-roles), separate from XRCopilot's platform RBAC roles. A human activity assigned to a business role becomes visible to all of that role's members. Create roles and manage their members (add/remove from the picker) on the page.

A human activity can also be assigned to a specific user chosen by the process itself, instead of relying only on a business role. An upstream human task captures a user through a user-picker form field, and a downstream human activity is configured (in the designer's properties panel) to be assigned to the user held in that variable — so, for example, a manager can decide in-flow who executes the next step. The nominated person then finds the task directly in their My Tasks (exclusive assignment); if the variable is empty at run time, the activity falls back to its business-role lane as a pool. This works for human and AI-assisted activities (an automated activity has no assignee).

Task notifications

Whoever has to carry out a task — the assigned user, or the members of the activity's business role — is notified by email when the task is created or reassigned, and when the task goes past its lead-time threshold the process owners and the assignee receive a reminder (see Performance and lead time). With the Microsoft Teams integration enabled for your company, the same tasks arrive as cards in Teams that update themselves as the task is taken, completed, cancelled or reassigned, with email kept as the fallback for anyone Teams cannot reach. See Microsoft-Teams-Notifications.

Starting process instances

Method How it works
Start form Configure a form on the Start event; the operator fills it in and its fields become the initial case data
New instance (UI) From the monitoring page, pick a startable process, fill the start form, and start it
External webhook A process can expose an inbound webhook (reachable through the public API gateway) secured by a one-time X-Api-Key; the request payload becomes the initial case data. Create / regenerate the key / delete it from the process detail — the key is shown only once. See Webhooks-Agent-Tasks.

Per-process start permissions are configured via business roles: administrators can always start; if no role is configured the process-operator decides; otherwise role membership applies. (The external webhook bypasses this check.)

The external start webhook is reachable through the public API gateway: POST https://apim-hipexr-prod-italynorth.azure-api.net/api/lab-public/hooks/process/{hookId}, with the same two-header authentication as Agent Task webhooks (Ocp-Apim-Subscription-Key + X-Api-Key). See Webhooks-Agent-Tasks → Starting a Process via Webhook for the full HTTP reference.

Monitoring and operational interventions

The Process Instances page (/process-instances, role process-operator) shows:

  • a live diagram with active nodes highlighted, updated in real time;
  • a full event timeline for each instance;
  • audited interventions — cancel, retry an activity, edit the case data, reassign a work item — each recorded with who, when and what.

Open tasks follow their instance. When an instance is cancelled or times out, when a sub-process is terminated, or when an activity is retried, the human tasks of the affected steps are cancelled with it, and trying to complete a cancelled task returns an error. Deleting a process definition also cancels its running instances and their tasks.

Where a process calls another one, the two executions are navigable in both directions: the calling instance's timeline links to the sub-process instance it started, and the sub-process detail carries a link back to the instance that started it.

The process filter and the process picker on this page both accept typing to filter, which helps once a tenant has many published processes.

Performance and lead time

The Process Performance dashboards (/process-performance, role process-manager) compare each activity's planned duration (configured on the activity) with its actual duration, distinguishing:

  • execution time — the actual work duration (for human tasks, optionally declared by the operator at closure);
  • lead time — from creation to closure.

A configurable maximum lead-time threshold per activity triggers an email alert to the process owners (a process can have multiple owners) when an activity stalls. The dashboard offers a per-process view (execution, lead time, variance, efficiency %) and an aggregated view by process or category. The planned duration can be manually overridden (audited).

Process KPIs and value

The Process KPIs page (/process-kpi) measures what a process delivers. For a process you define a KPI board: a set of indicators, each with a target, a method and a source. You then measure a baseline — the process as it is run today, typically by hand — and compare it with one or more later measurements of the agent-assisted process. For each indicator the board shows baseline, period, change and outcome against the target, with the trend over time.

  • Indicators — catalog indicators computed by the platform (hands-on time per case, lead time, cases handled, rework, human correction rate of AI drafts), indicators derived from a case variable, or declared indicators.
  • Baseline sources — instances run in the platform, external cases imported from CSV, or an aggregate value supplied by the customer, marked as such. A baseline needs at least 5 cases by default (configurable on the board).
  • Freeze and confirm — baselines and measurements are frozen, so their numbers no longer change. Indicators, targets and baseline are confirmed by a process owner; after confirmation they are immutable, and changing them means opening a New revision.
  • Exclusions — a platform instance of the measurement can be excluded only with a written reason, and exclusions stay visible. Show cases lists the cases of a measurement with the value of each indicator.
  • Value — hours freed are always computed. Economic equivalent, operating cost (including the agents' token usage) and net value appear only when an hourly cost is declared on the board, and are presented as scenario estimates on parameters declared by the customer.
  • Evidence document — from a frozen baseline or measurement you can download a Word value report (indicators, hours freed, method, exclusions, owner confirmation and every case), in Italian or English.
  • KPI Buddy — Create with AI and Review with AI on this page, and Measure with AI in the process editor, open an assistant that interviews you and proposes indicators, targets and baseline cohort as a draft board. It never freezes or confirms, and never enters economic parameters you did not give.

A blueprint can also create the draft board of a process with its kpi section.

Categorization and governance

Use Process Categories (/process-categories, role process-manager) to govern processes. Each process can carry a two-level category (Family → Group), one or more owners, a criticality level, a data-sensitivity level and free key→value tags; activities have a dedicated task category. A shared default catalog (Value / Governance / Enablement families plus groups) is provided as a read-only baseline that you can extend with your own groups. The process list shows a Category column and filter.

Availability

The Processes module requires the dedicated BPM license on your tenant (the menu group is hidden without it). Within the module, process-manager covers design, governance and performance, process-operator covers instance monitoring, and My Tasks is available to every valid user.

Clone this wiki locally