Workflow Concepts
The Workflow Engine runs platform workflows in Witboost. The platform provides the available workflow types; administrators create configurations that decide where and how those types run.
Core model
| Concept | Owner | Meaning |
|---|---|---|
| Workflow type | Platform | A registered workflow capability, including its subject type, start events, allowed building blocks, and default definition. |
| Subject type | Platform | The kind of resource tracked by a workflow, how it is identified, and which context is available for routing and execution. |
| Configuration | Administrator | Routing settings for one workflow type: name, enabled state, priority, and activation scope. |
| Configuration version | Administrator | An immutable published snapshot of the workflow definition. |
| Workflow instance | Runtime | One execution for a resolved subject, pinned to the selected configuration version. |
Administrators can configure registered workflow types, but cannot create new types from the UI. Adding a workflow type requires a platform implementation.
Subject types
A subject is the business resource that one workflow instance is about. In practical terms, it answers:
When an event arrives, which existing workflow instance, if any, must receive it?
The subject is not the event, the current stage, or the selected configuration. Those can change during execution. The subject identity remains stable for the entire life of the instance.
Concrete examples
| Workflow type | Subject represented by one instance | Example identity |
|---|---|---|
| System Lifecycle | One versioned System | urn:dmb:dp:finance:payments:0 |
| Deploy Approval | One Release deployment, including its environment and snapshot flag | Release URN + production + whether the Release is a snapshot |
System Lifecycle deliberately includes the System version in its identity. These are therefore different subjects:
urn:dmb:dp:finance:payments:0
urn:dmb:dp:finance:payments:1
Creating version 1 does not move the lifecycle instance for version 0.
Registration of version 1 creates a separate lifecycle instance for the new
subject.
Deploy Approval needs a narrower identity because an approval for one Release or environment must not accidentally approve another deployment. A production approval and a pre-production approval are different subjects even when they belong to the same System.
Configuration selection
When a start event arrives, the engine:
- resolves the workflow subject and its context;
- loads enabled configurations with a published version;
- evaluates each configuration's activation scope;
- selects the matching configuration with the lowest priority number;
- creates an instance pinned to that configuration version.
If no configuration matches, no instance starts. Changes to priority, activation scope, enabled state, or published versions affect only future starts.
Configuration and version lifecycle
A configuration owns mutable routing settings and a history of definition versions. Versions have these states:
| State | Meaning |
|---|---|
DRAFT | Editable and never used for new instances. A configuration can have at most one draft. |
PUBLISHED | Current definition available to new matching instances. |
RETIRED | Replaced definition retained for instances and history. |
ARCHIVED | Read-only historical version. |
Publishing a draft retires the previous published version. Existing instances continue with the version they started with.
Instance lifecycle
Instances are shown as:
- Running while
ACTIVEand able to process transitions; - Blocked when a required precondition or action cannot complete;
- Completed after reaching a terminal business outcome;
- Cancelled after administrative termination.
Running does not mean waiting for approval. An instance can be active at any non-terminal stage, including a stage where no approval is pending. Blocked actions are listed separately. The instance history records stages, transitions, trigger data, actions, actors, and timestamps. A blocked instance retains its latest valid state.
Permissions
Workflow administration uses these permissions:
workflow-engine.definition.viewto view configurations and versions;workflow-engine.definition.manageto create, edit, enable, publish, archive, or purge configurations and versions;workflow-engine.instance.viewto inspect workflow instances.
See Workflow Engine permissions.
To perform administrative operations, see Configure and Operate Workflows. For supported fields and building blocks, see the Workflow Configuration and Definition Reference.