Skip to main content

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​

ConceptOwnerMeaning
Workflow typePlatformA registered workflow capability, including its subject type, start events, allowed building blocks, and default definition.
Subject typePlatformThe kind of resource tracked by a workflow, how it is identified, and which context is available for routing and execution.
ConfigurationAdministratorRouting settings for one workflow type: name, enabled state, priority, and activation scope.
Configuration versionAdministratorAn immutable published snapshot of the workflow definition.
Workflow instanceRuntimeOne 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 typeSubject represented by one instanceExample identity
System LifecycleOne versioned Systemurn:dmb:dp:finance:payments:0
Deploy ApprovalOne Release deployment, including its environment and snapshot flagRelease 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:

  1. resolves the workflow subject and its context;
  2. loads enabled configurations with a published version;
  3. evaluates each configuration's activation scope;
  4. selects the matching configuration with the lowest priority number;
  5. 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:

StateMeaning
DRAFTEditable and never used for new instances. A configuration can have at most one draft.
PUBLISHEDCurrent definition available to new matching instances.
RETIREDReplaced definition retained for instances and history.
ARCHIVEDRead-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 ACTIVE and 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.view to view configurations and versions;
  • workflow-engine.definition.manage to create, edit, enable, publish, archive, or purge configurations and versions;
  • workflow-engine.instance.view to 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.