Workflow automation: templates, assignments, approvals and monitoring

Design approval templates, attach them to record types and actions, work the approval inbox, delegate, automate follow-up actions and monitor bottlenecks.

On this page

Process at a glance

  1. Design a templateProcess ownerA template with steps, approvers and routing exists.
  2. Assign itAdministratorThe template is linked to a record type and scope.
  3. Bind module actionsAdministratorEach module action has a workflow or proceeds immediately.
  4. Decide approvalsApproverItems are approved, rejected, returned or delegated.
  5. Cover absencesApproverA substitute sees your approvals while away.
  6. Trigger automationAdministratorAn HTTP call, email or integration flow fires when a template resolves.
  7. MonitorProcess ownerBottlenecks and instance status are reviewed.

#Purpose and scope

Workflow automation is the shared approval engine used by other modules. This chapter explains how to build a template, connect it to the records that need approval, handle the approval inbox and watch running work. Document publishing and many voucher types use it, so a mistake in a template affects every record type that uses it.

#Before you start

  1. Create the user roles that will approve (see “Roles and access”); approver steps point at a role (approver group).
  2. Know which record type or module action needs approval. Record types and their codes come from Administration.
  3. Decide who may edit templates. Anyone who can edit templates, steps and rule sets changes approval routing for the whole company.

#1. Design a template

  1. Open Templates and create a template with a code, name, description, Active flag and a trigger.
  2. Choose the trigger: Automatic when a record is submitted, Manual (run on demand) or Scheduled (a condition sweep with an interval of at least 5 minutes, an entity to scan and a JSON condition).
  3. Choose Design to open the designer. Add steps, drag to reorder, and click a step to edit it. Switch between canvas and linear views.
  4. Use Copy to duplicate a template, or the play button to run an active template now regardless of its trigger; the new run appears under Instances.
Step settings in the designer
SettingWhat it does
TypeApproval, Review, Notification, Condition or AI Assessment. A Condition step is evaluated automatically and has no approver; AI Assessment uses its configured inputs, outputs and human-review routes.
Approver resolutionFixed group, the requester’s manager, a role read from a payload field, or a user read from a payload field. It is resolved when the step is entered.
Group approval policyOn a group Approval or Review step, choose Any one (default), Quorum and a vote count of at least two, or All active approvers. Eligible group members are fixed when the step starts. Each person or their delegate has one vote per round; only the required final vote moves the workflow.
Required, PriorityMarks the step required; priority is Low, Medium, High or Critical.
Auto-approve (days)Approves an Any one step automatically after that many days. It is unavailable for Quorum and All active approvers.
SLA and escalationSLA days, escalation days and an escalation group.
Notifications and delegationNotify on entry, notify on overdue, allow delegation, and the entry and overdue email templates. In an email preview tied to a real workflow instance, {{record_link}} opens the approval item for the current reader; the link is signed when approval-link signing is configured, otherwise it opens the inbox. Choose Open source record there when available. Without an instance, {{record_link}} stays empty.
Step owner permissionsModify record, add, edit or delete documents while the step is current.
On rejectionRestart (back to step 1), Go to a chosen step, or End the workflow.
Conditional branchingBranches are checked top-down after approval; the first match wins. If branches are configured but none matches, the workflow is rejected, so add an explicit Else branch for a default route. A branch can go to the next step, a specific step, approve and finish, or reject and finish. Missing targets and routing loops are rejected. Use Match ALL or Match ANY with comparisons such as equals, greater than, contains, in list, between, is empty or matches regex.

#2. Reuse rules with rule sets

  1. Open Rule sets and create a rule with a code, name and kind: Condition (boolean tree) or Decision table (rows to outcome).
  2. Enter the definition as JSON. A branch can then reference the rule set instead of an inline condition.

#3. Version a template

  1. In the designer choose Publish version and confirm. The current version is archived and new instances use the new version.
  2. Use Make active on the Versions list to switch back to an earlier version.

#4. Assign templates to records and actions

  1. In Assignments link a template to a record type (or All Record Types), choose the scope (System, a project group or a project), set Effective From and Active.
  2. In Action workflows each module action is listed by module with a drop-down of templates. Pick one to bind it, or choose No workflow so the action proceeds immediately. The counter shows how many actions are configured.

#5. Work the approval inbox

  1. Open My approvals. The tabs are Mine, My Team and, for superusers only, All.
  2. Open an item and choose Open source record when available to review it in its module. The destination opens in a new tab and still requires module and company access. Contract milestones, equipment rental agreements and RMAs have direct links; on an equipment rental agreement (Plant maintenance, Equipment rental agreements) Status is read-only and moves from the Lifecycle tab: Reserve (quotation), Activate (quotation or reserved), Return (active), Close (returned) and Cancel (quotation or reserved); any other move answers “invalid_transition” (409); rental extensions (Plant maintenance, Rental extensions) are decided on the record’s Decision tab with Approve or Reject (pending only; superuser or Admin; Status and Approved By are read-only and the approver is the signed-in user); some source types do not yet.
  3. For multiple reviewed Any one items in Mine that have source links, select the rows, optionally enter one comment, then choose Approve selected and confirm. Each item is checked and recorded separately; if some fail, the inbox reports the counts and reloads the remaining items. Quorum and All active approvers need individual votes.
  4. Add a comment, optionally attach files, then choose Approve or Cast vote, Reject or Return. A multi-vote step shows votes recorded versus required, and remains in progress until the final required vote. After you vote, it leaves your Mine list; My Team and All can still show its progress. Return sends the item to the previous step and starts a new voting round there; it is refused on the first step.
  5. Choose Delegate to hand the current step to another user (the user is required, a comment is optional). Delegation is refused unless the step allows it. On a multi-vote step, the delegate votes for the original approver’s seat and cannot vote twice; choose a delegate outside the frozen roster.
  6. Delegations sets out-of-office cover: delegator, delegate, effective from and to, reason and Active. While active, the delegate also sees the delegator’s approvals.
Instance statuses
StatusMeaning
PendingCreated, not yet on a step
In progressWaiting on the current step
ApprovedFinished and approved
RejectedFinished and rejected
CancelledCancelled

#6. Automatic follow-up actions

  1. In Automation actions choose a workflow template, when to fire (Approved, Rejected or Both) and the action type: HTTP call, Email notify or Integration flow.
  2. Enter the configuration as JSON, for example the URL, method and body template for an HTTP call. The list shows the last run status and time.

#7. Monitor and recover

Monitoring screens
ScreenUse
InstancesYour requested workflows and workflows you are assigned to review or have acted on, with template, record type, status, current step, who started it and when; superusers can see all executions in their selected company. A workflow started for a source record also appears in that record’s Workflow status panel when its source type and record ID match and you are permitted to view it; Run Now without a source record uses a generated ID and is tracked here. Other users’ unrelated workflows stay private, even within the same company. A link such as Approval in workflow on a record opens this screen with that instance’s details (template, record, status, current step, steps and action history) in a window; Show all instances closes it and removes the instance from the address. If the instance was deleted or you may not see it, the window says so. The requester or a superuser can cancel an in-progress instance after confirmation; the cancellation is recorded in the action log. Status-bearing source vouchers and linked DMS publishing files return to Draft.
AnalyticsWhere in-progress work is piling up: pending count, average and maximum wait in hours per workflow step.
Saga monitorCross-module saga state and step history. Only failed or compensating sagas can be retried.
Deleted logsRecover deleted workflow instances. Superusers only.

#7a. Company approval policy (administrators)

  1. Open Workflow settings. Only superusers and users with the Admin role see the controls; everyone else sees a notice and the server refuses the request.
  2. Tick the document types that must be approved through a workflow. For a ticked type the direct approve and post actions are refused until a workflow instance has been started and approved. Leaving everything unticked keeps the behaviour you have today.
  3. To require a voucher type, type its Record Type code exactly as it appears under Administration > Record Types and choose Add; it is shown as a custom code.
  4. Choose Save to store your ticks and the stock-transfer switch. Choose Apply recommended to add every recommended money and stock document type to the required list: a confirmation lists what will be added, existing entries are kept, and unsaved ticks on the page are not part of it.
  5. Turn on the stock-transfer switch so the person who submitted a stock transfer cannot also approve it.

#8. When a record does not change after approval (follow-up delivery)

After the last approval, each module that owns the record applies its own follow-up (set the status, post the ledger entry, notify). Those follow-ups are delivered by a background relay, normally within about five seconds, and each one is tracked separately. If one fails because of a database or service error, only that follow-up is tried again, after 30 seconds, 2 minutes, 10 minutes and one hour, and the follow-ups that already finished are not repeated. After the fifth failed round the message is dead-lettered: it stays in the queue, unpublished, for a superuser to investigate. A business refusal (for example a closed period or a ledger that is not configured) is not retried: it is shown as Refused with the reason, the message is dead-lettered at once, and the source record keeps the reason (for example a payment order shows it as its failure reason) until someone fixes the cause and re-queues the message. During a software update a server may not know an event or follow-up that a newer server wrote; such a message is not failed: it waits and is tried again at most hourly for 72 hours (configurable, never less than 24 hours) before it is dead-lettered.

Follow-up delivery states (API only; there is no screen for this queue yet)
StateMeaningWhat to do
PendingWaiting for the relay to pick the message up.Nothing. If the oldest pending message keeps getting older while no message is leased, the relay is stopped; tell your administrator.
LeasedOne relay worker is delivering it now. The claim expires if that worker stops, and another worker then takes the message.Nothing.
RetryingA follow-up failed and is waiting out its delay, or this server cannot deliver it yet during a software update.Nothing unless it reaches the last round; the error text names the follow-up that failed.
Dead-letteredFive delivery rounds failed, or a follow-up was refused, or the update window passed. The message is kept and never discarded.A superuser fixes the cause, then re-queues the message with a reason. Re-queuing is limited to three times per message and never repeats follow-ups that already succeeded.
RefusedA follow-up refused for a business reason, for example the posting period is closed or a ledger is missing.Fix the business cause (reopen the period, create the ledger), then re-queue the message with a reason; the refused follow-up runs again.
UncertainA follow-up that calls an outside system timed out and may or may not have taken effect.It is not retried automatically. Check the outside system, then re-queue and say whether to retry the follow-up or treat it as done.

#9. Running more than one server instance (scheduled jobs and queues)

Background jobs run inside every server instance. Jobs with a business effect (a posting, a stock movement, a notification, an outside call) are now safe with several instances because only one instance runs a job at a time, at most once per its normal interval, and a job whose instance stops is taken over after about two minutes. This needs the database update that creates the worker lease table to have been applied first; until then a guarded job does not run at all (it fails closed and logs the reason). The queues have their own row-level claims. Only run more than one instance on a database engine that the runbook lists as tested for it: today that is PostgreSQL only. SQL Server, MySQL, Oracle and Db2 are not cleared for more than one instance; run exactly one there.

Which background work is safe with several instances
KindExamplesSeveral instances?Note
Event relay (approval follow-ups)Outbox relaySafePer-message claim with fencing; start new instances with the relay switched off while any older instance still runs (runbook section 3).
Queued GL postingsGL posting retrySafeA row is claimed, and the journal and its posted mark commit in one transaction, so a journal cannot be posted twice.
Platform event queuePlatform outboxSafeClaim with fencing; a row left by a stopped instance is taken over after its lease.
Scheduled postings and billingDepreciation, FX revaluation, provisions, recurring transactions, subscription, hire and lease billing, payroll-related sweeps, matching automation, expense postingSafeOne instance per job (singleton lease), at most once per interval.
Stock jobsReservation expiry, batch expiry, reorder replenishment, pending web-order expirySafeSame lease.
Notifications and outside callsExpiry and overdue alerts, KPI alerts, digests, scheduled reports, campaigns, cadences, e-mail ticket intake, shipment tracking, integration queue and scheduler, exchange-rate sync, WhatsApp jobs and invoice intake, device automationSafeSame lease; the WhatsApp bulk queue also claims a job atomically. A crash while sending one recipient can still resend that one message.
Tenant provisioning (SaaS portal)Tenant database provisioningSafeOne instance provisions a given tenant at a time.
POS sale processingPOS sale processorSafe from duplicatesClaims each sale; a sale left in processing by a crash is not retried automatically.
Housekeeping and recomputationLog retention, shift event pruning, reorder-point and utilisation recomputation, anomaly scoring, student risk scoring, ad status moves, marketplace order cleanup, work-centre status syncHarmless duplicates, not guardedThe repeated run writes the same result; no money, stock or customer message.
MQTT bridge (separate process)IoT MQTT bridgeNot safeRun exactly one bridge per broker subscription; a second bridge forwards every reading twice.
Start-up seedersTemplate and form seedersSafe in practiceIdempotent; two instances starting at once can log a duplicate-key warning once.

About this guide

Status
Partially reviewed
Application
BSuit ERP
Audience
Process owners, administrators and approvers
Owner
BSuit documentation team
Reviewer
Not yet reviewed
Last verified
Never
Checked against
Generated from source revision add572065 on 2026-10-27
Seen on a running system
Not yet
Help version
2026.0.0-preview
Guide ID
erp:article/guide/workflow-automation
Need more help?If feedback above cannot be sent, email support and quote guide ID erp:article/guide/workflow-automation.
Email support