Skip to main content

Configure and Operate Workflows

Use this guide to create, publish, update, and retire workflow configurations from Administration panel -> Workflows. For field-level syntax, see the Workflow Configuration and Definition Reference. For complete definitions with approval steps, see:

Create and publish a configuration​

  1. Open Administration panel -> Workflows.
  2. Select a workflow type.
  3. Create a configuration with a descriptive name and positive priority.
  4. Select the guided activation-scope values and add any advanced conditions to the activation scope YAML.
  5. Review and save the initial workflow definition. The first version is a draft.
  6. Enable the configuration.
  7. Publish the draft.

Only enabled configurations with a published version can start new instances. Lower priority numbers are selected first, and enabled configurations of the same workflow type must have distinct priorities.

Route workflow starts​

Use lower priority numbers for specific rules and higher values for fallbacks. For example:

ConfigurationActivation scopePriority
Restricted productionProduction and restricted descriptor10
Production fallbackAny production subject20

When both scopes match, Witboost selects priority 10.

The editor provides guided filters defined by the workflow type, such as System Types and environments. Extend the generated YAML for additional supported conditions, including descriptor fields when available:

all:
- eq:
path: release.environment
value: production
- eq:
path: descriptor.production.classification
value: restricted

Save routing changes after resolving validation errors. Priority and activation scope belong to the configuration: changing them does not create a definition version or reroute existing instances.

Configure event catch-up polling​

The Workflow Engine periodically checks for events that were persisted while live delivery was unavailable. Configure the interval in seconds in the Witboost application configuration:

workflowEngine:
eventCatchUp:
pollIntervalSeconds: 60

The default interval is 60 seconds. Increasing it reduces polling frequency but can delay recovery of missed events.

Update a workflow definition​

A published version cannot be edited in place:

  1. Open the published or retired version that you want to change.
  2. Select Edit and confirm draft creation.
  3. Update the YAML definition.
  4. Use View definition to inspect its stages and transitions.
  5. Save and correct all validation errors.
  6. Publish the draft.

Publishing retires the previous published version. Instances that already started continue using their original version. Deleting a draft discards only unpublished changes.

Retiring a version is not the same as disabling its configuration:

  • publishing a draft automatically marks the previously published version as RETIRED; existing instances pinned to that version continue to operate;
  • disabling a configuration stops future starts; it cannot be disabled while that configuration has ACTIVE instances. Complete or cancel those instances before disabling it.

Inspect and terminate instances​

Each version lists running, blocked, and completed instances. Running contains instances whose runtime status is ACTIVE; they are not necessarily waiting for approval. Blocked actions identifies the subset that requires attention. Open a list to inspect the subject, current stage, selected priority, activation scope, history, and failure reason where applicable.

Administrators can terminate running or blocked instances individually or in bulk. Termination is irreversible: the instance becomes CANCELLED and cannot continue. Completed instances are read-only.

Disable, archive, and purge​

  1. Complete or cancel every active instance associated with the configuration.
  2. Disable the configuration to stop it from being selected for future starts. Witboost blocks this operation while active instances exist.
  3. Archive a disabled configuration to make it read-only while retaining its versions and instance history.
  4. Use Purge only when permanent deletion is required and no active instance remains.

Purge removes the configuration, versions, instances, actions, and execution history. For Deploy Approval it also removes historical approval evidence.

Connect a manual approval to an external receiver​

This procedure connects a MANUAL_APPROVAL action to an external approval system.

1. Configure the action​

Include webhook in the action's exact channel list:

actions:
- type: MANUAL_APPROVAL
config:
approvalId: governance-review
channels: [webhook]
approvers:
- strategy: rbac-role
recipient: GOVERNANCE_TEAM
scope: entity
notifications:
request:
title: Governance approval requested
bodyHtml: '<p>Review {{system.name}}.</p>'
approved:
title: Governance approval granted
bodyHtml: '<p>Approved by {{responder.displayName}}.</p>'
rejected:
title: Governance approval rejected
bodyHtml: '<p>Rejected by {{responder.displayName}}.</p>'

Add MANUAL_APPROVAL_RESPONSE transitions with the same approvalId for the approve and reject outcomes.

channels is an exact, non-empty selection from push, email, and webhook. When omitted, it defaults to [push]. Channels are not added implicitly.

Approvers can be defined as:

approvers:
- strategy: team-role
recipient: OWNER
- strategy: rbac-role
recipient: GOVERNANCE_TEAM
scope:
anyOf: [domain, wildcard]

Role recipients are exact RBAC role IDs. The optional scope filters role assignments by their entity_ref:

Scope dimensionAssignments selected
entityAssignments whose entity_ref is the exact current System URN.
domainAssignments whose entity_ref is the current System's domain URN.
systemTypeAssignments whose entity_ref is the current System Type URN.
wildcardGlobal assignments whose entity_ref is *.
Scope omittedAll assignments for the role, without filtering by entity_ref.

scope uses exact matching; it does not expand hierarchies or automatically include global assignments. In particular:

scope: entity

does not select a user whose role is assigned globally with entity_ref: '*'. To accept either a System-specific or global assignment, use:

scope:
anyOf: [entity, wildcard]

Multiple dimensions inside anyOf are alternatives: matching any generated scope is sufficient. Resolved recipients from all approver entries are merged and deduplicated; the first authorized response wins.

Notification templates require request, approved, and rejected, each with title and bodyHtml. Available variables are:

VariableAvailability
system.name, system.urlSystem context
release.displayName, release.version, release.isSnapshotRelease context
environment.name, domain.nameOptional context
requester.displayNameRequest context
responder.displayNameApproved/rejected templates only
approval.id, workflow.name, transition.from, transition.toWorkflow context

Unknown variables are rejected. Interpolated values are HTML-escaped, and the rendered HTML is sanitized."

2. Bind the notification​

In Extension Manager -> Webhooks, create or enable a webhook and bind it to Manual approval requested (notification:manual-approval-requested).

Routing semantics

A webhook binding selects a notification kind, not a workflow, configuration, transition, or approvalId. Every enabled binding matching notification:manual-approval-requested receives the notification. If three bindings match, Witboost sends the same approval notification to all three configured URLs.

Use the notification body, including approvalId, workflow and subject context, to route it inside the receiving system.

See Send notifications via Webhook for binding, authentication header, and delivery configuration.

3. Receive the request contract​

The webhook receives a notification payload similar to:

{
"kind": "notification:manual-approval-requested",
"sender": "platform:witboost",
"body": {
"systemUrn": "urn:dmb:dp:finance:payments:0",
"workflowInstanceId": "WORKFLOW_INSTANCE_ID",
"transitionExecutionId": "TRANSITION_EXECUTION_ID",
"actionExecutionId": "ACTION_EXECUTION_ID",
"approvalId": "governance-review",
"channels": ["webhook"],
"hookId": "HOOK_ID",
"response": {
"url": "https://witboost.example/api/actionHandler/hooks/HOOK_ID",
"method": "PATCH",
"approveStatus": "OK",
"rejectStatus": "KO",
"resolvedByField": "hookInfo.resolvedBy"
},
"approverRefs": ["user:default/governance"],
// The pinned notification template and its resolved presentation context
// are omitted here for brevity.
},
"messages": [
{
"recipientType": "recipient-type:system-owner",
"recipientType_v2": "recipient-type:system-owner",
"recipients": [{ "userRef": "user:default/governance" }],
"title": "Governance approval requested",
"message": "<p>Review Payments before production promotion.</p>"
}
],
"metadata": {
"eventId": "EVENT_ID",
"createdAt": "2026-11-20T14:00:00.000Z"
}
}

The callback contract is available at body.response. Persist it together with the external approval request. Do not reconstruct the callback URL or response fields.

4. Acknowledge delivery, then call back​

Returning HTTP 200 from the external webhook endpoint acknowledges only that the notification was delivered. It does not approve the workflow action.

After an authorized approver decides, invoke the supplied response.url with the supplied method. Approval requires:

{
"status": "OK",
"hookInfo": {
"resolvedBy": "user:default/user_email.it"
}
}

Use "status": "KO" to reject. hookInfo.resolvedBy must contain the Catalog entity reference of the user who made the decision, and that user must belong to the action's resolved approvers. A successful callback completes the action; the matching MANUAL_APPROVAL_RESPONSE transition can then advance the workflow.

For the webhook delivery envelope, see the Webhook Notifications API.

Operate System Lifecycle instances​

System Lifecycle provides additional administrative operations for existing Systems and exceptional recovery. See System Lifecycle for backfill, placement, Builder inspection, and relocation.