Creating a workflow template
- The minimum configuration: when is a workflow template "valid"?
- Step 0 – Check supported tables & events (must-know)
- Create a workflow template
- Configure related tables (optional)
- Define steps
- Step rules: how does the workflow move to the next step?
- Configure workflow triggers
- Workflow action on completion
- Cleanup (retention & cleanup)
- Module: Escalation Engine
- Module: Rejection Handling
- Module: Approval Preconditions
The minimum configuration: when is a workflow template "valid"?
A workflow template is only fully usable in this app once at least these criteria are met:
- Active = Yes (the template must be active)
- Primary Table is set
-
Rule Set exists (is created/updated automatically when the primary table is set)
- At least one normal step (Step Type = Normal) exists
- At least one workflow trigger exists and is active
When you activate the template, the app runs a validation and shows an error list if necessary.
Step 0 – Check supported tables & events (must-know)
What are "AWF Supported Tables"?
In "AWF Supported Tables" you maintain which tables can be selected as the primary table at all.
Important:
- In the workflow template, only supported tables can be chosen as the primary table.
- Per supported table, the following is additionally maintained:
- Workflow Events (which events may be used as triggers)
Initialize default tables
Since AWF Supported Tables is not directly searchable via Tell Me, open the page as follows:
- Open AWF Workflow Templates.
- Open a template (or create a new template).
- In the "Primary Table" area, open the lookup of "Primary Table ID"..
- In the opened list AWF Supported Tables Action "Initialize Default Tables" run it (it is also initialized directly when opening).
- Confirm.
This action initializes or repairs the default configuration.
View workflow events per table
On AWF Supported Tables:
- Action "Workflow Events": shows valid workflow events for the table
Create a workflow template
Create a new workflow template
- Open AWF Workflow Templates.
- New.
- Fill in the area General:
- Code (unique)
- Description
- Active initially No (recommended)
Set the primary table (decisive, as this is the table the workflow is started for)
- In the workflow template (card), go to the area "Primary Table".
- Field "Primary Table ID" select.
- The list opens: AWF Supported Tables.
- Select a table.
- Check whether "Primary Table Caption" is filled automatically.
What happens in the background:
- The app automatically creates/updates a Rule Set for the template.
- The primary table is automatically stored as the Primary Table in the rule set.
Filter document type
Older versions had a Primary Document Type directly in the workflow template. This configuration was replaced by the Rule Engine .
If you want to start the workflow only for certain document types, or model different steps per document type, you now solve this via Rule Conditions:
2. Create a rule condition (action Show Conditions).
). 3. Choose as the source field e.g. "Document Type" (a field of the primary table or a related table).
4. Set operator/value (e.g. "= Order").
Save the audit trail as PDF
When a workflow completes successfully, the audit trail can be saved automatically as a PDF file in the document attachments of the source record.
Configuration
- In the AWF Workflow Template → field "Save Audit Trail to Attachments" = Yes.
- On successful completion of the workflow, the audit trail report is generated automatically as a PDF and attached as a document attachment to the source record.
Attachments FactBox
In the AWF Workflow Instance card attachments from two sources are shown combined:
- Attachments of the source record (e.g. scanned invoices)
- Attachments of the workflow instance (e.g. generated audit-trail PDFs)
This gives approvers and administrators all relevant documents in one place.
Configure related tables (optional)
Why do I need related tables?
The rule engine can check conditions not only on the primary table, but also on related tables (e.g. header/lines).
You define these related tables in the template in the area:
- Related Tables (technically: "DXP Rule Set Tables")
Add a related table
- In the template, in the section, Related Tables create a new line.
- Table ID select (lookup).
- Define the relation to the primary table:
-
Relation Field 1 (field number in the related table)
- Primary Field 1 (field number in the primary table)
-
Optionally also Relation Field 2 / Primary Field 2 etc.
-
Rule of thumb:
-
Relation field(s) = "foreign key" in the related table
-
Primary field(s) = the matching key/reference fields in the primary table
Important: Without a correctly defined relation, the rule engine cannot cleanly evaluate fields of the related table against the current record.
Define steps
Basic structure of the steps
In the template there is the section Steps. A step contains, among others:
- Step Code
- Step Name
- Order
- Step Type (Normal / Error / Final)
- Allow Record Edit
- Assignment logic
-
Approvals / Related Approvals: optionally enable line approvals (Enable Related Approval) and set the Approval Mode .
Create the first "Normal" step
- In the section → Steps → New.
- Step Type = Normal.
- Step Code and Step Name assign.
- In the card, set the Assignee Type and set the Assignee .
Important system behavior:
- When the first normal step is created, the app automatically generates:
- an Errorstep (code e.g.
ERROR) - an Finalstep (code e.g.
FINAL)
- an Errorstep (code e.g.
Configure assignment
On the AWF Stepcard you maintain:
- Assignee Type
- Assignee
- Approver Limit Type
Notes:
- With Salesperson/Purchaser the assignee is derived automatically from the record (salesperson/purchaser).
- With Workflow User Group a workflow user group must exist and have members.
If a step cannot resolve a valid assignee, the workflow is typically moved to the error step at runtime.
Approver Limit Type: approval limits from the Approval User Setup
The Approver Limit Type decides whether Advanced Workflow takes the approval limits of the Approval User Setup into account. The field exists on the AWF Step card and on every rule with the rule action Override Assignee; when such a rule matches, its setting applies.
- Direct Approver – approval limits play no part.
- First Qualified Approver – only users whose limit covers the document get the approval.
The limits are only evaluated for these assignee types:
| Assignee Type | Direct Approver | First Qualified Approver |
|---|---|---|
| Salesperson/Purchaser | The Approver ID of the user the document's salesperson/purchaser code is assigned to. | Starting from that Approver ID, up the chain of Approver IDs to the first user with a sufficient limit. |
| Workflow User Group | All members. | Only the members with a sufficient limit. |
| Approver | Always the user entered – their limit is not checked. | |
Which limit applies:
- Purchase documents: Purchase Amount Approval Limit or Unlimited Purchase Approval; for purchase quotes Request Amount Approval Limit or Unlimited Request Approval.
- Sales documents: Sales Amount Approval Limit or Unlimited Sales Approval.
- The limit is compared with the net amount of the whole document in local currency – for Related Approvals of single lines too.
- A limit of 0 without "Unlimited" means no approval right at all. A user whose Approver ID is their own User ID is the end of the chain and always sufficient.
- Other tables (for example customer, vendor, item) have no limits: every user with a line in the Approval User Setup counts as qualified.
Example – purchaser EK01 is assigned to user MEIER; the Approver IDs form the chain MEIER → SCHULZ (Purchase Amount Approval Limit 5,000) → BRAUN (25,000) → CHEF (Unlimited Purchase Approval).
| Assignment on the step | Order 3,000 | Order 8,000 | Order 30,000 |
|---|---|---|---|
| Salesperson/Purchaser, First Qualified Approver | SCHULZ | BRAUN | CHEF |
| Salesperson/Purchaser, Direct Approver | SCHULZ | SCHULZ | SCHULZ |
| Workflow User Group SCHULZ/BRAUN/CHEF, First Qualified Approver | all three | BRAUN, CHEF | CHEF |
| Approver SCHULZ | SCHULZ | SCHULZ | SCHULZ |
Good to know:
- One person always approves – the first with a sufficient limit. There is no approver chain in which every level approves in turn; for that, create several steps and route between them with step rules on the amount.
- If nobody has a sufficient limit, the workflow moves to the error step. For a workflow user group the reason reads: No member of workflow user group %1 has an approval limit in Approval User Setup that covers this document. Workflow moved to Error stage.
- When a rule with the rule action Auto Approve approves, limits play no part – nobody decides.
On the AWF Step card the Approver Limit Type takes effect from Advanced Workflow 1.17. Earlier versions only honour it on a rule with Override Assignee; set it there until you update.
Due Date Formula (Due Date)
On the AWF Stepcard a Due Date Formula can be configured:
- Field: Due Date Formula (e.g.
<+3D>,<+1W>,<+2W>) - When set, approval entries created in this step automatically receive a due date.
- The due date is relevant for:
- The display in "Requests to Approve"
- The Escalation Engine (escalation steps are based on the due date)
- Standard BC due-date notifications
Step rules: how does the workflow move to the next step?
The app uses the DEXPRO Rules Engine to determine:
- which rule matches
- to which next step it switches
- whether the assignee is overridden
- whether it auto-approves
- and whether the action applies to the header approval, related approvals (lines), or both.
If no rule is defined, the respective step configuration applies.
Rule group per step ("Show Rules")
- In the Stepslist, mark the desired step.
- Action "Show Rules".
If no rule group is stored yet, the app automatically creates a Rule Group and enters it on the step.
Create rules (DEXPRO Core)
On the opened page Rules:
- New.
- Rule Code and Rule Name set.
- Sequence/Priority assign.
- Active = Yes.
- Optional:
- Condition Conjunction (AND/OR)
- Record Matching Type (Any Record / All Records)
Maintain Advanced Workflow fields on the rule (Next Step, Auto-Approve, Override Assignee)
On the rule there is the area "DEXPRO Advanced Workflow":
- Rule Action set (lookup/drilldown) and choose the desired action, e.g.
- Step Transition
- Override Assignee
- Auto-Approve
- For Step Transition additionally choose Next Step (the lookup shows the next possible steps).
- If related approvals are active: Applies To set (Header / Related Only / Header and Related).
- For Override Assignee: Assignee Type and Assignee maintain.
Add conditions (rule conditions)
On the Rules page:
- Action "Show Conditions".
- Add one line per condition:
- Source Table ID (primary table or related table)
- Source Field ID (field)
- Comparison Operator (operator)
- Value (value; AssistEdit for Enum/Boolean/Between/In Set)
Tip: If you use conditions over related tables, the relation in Related Tables must be maintained correctly.
Test rules (without a real workflow)
On the Rules page there are:
- Test Rule
- Test Rule Group
This lets you check rules/rule conditions against a sample record before starting real workflows.
Configure workflow triggers
Workflow triggers determine when a new workflow instance is started.
In the template the section is called "Workflow Triggers".
Template triggers: basic fields
- In the template → section Workflow Triggers.
- New.
- Field Workflow Event select (AssistEdit → list "AWF Table Workflow Events").
- Active = Yes.
- Priority set (order when several matching triggers exist).
Trigger rules: when may a trigger fire?
On the trigger there is a Rule Group Code. Via the action "Show Rules":
- mark the trigger.
- Show Rules.
- Maintain rules/rule conditions as in Step rules .
Important system behavior:
- If no rule conditions exist for this trigger rule group, the trigger is considered satisfied (the trigger then fires in principle).
OnAfterModify: Monitored fields
For the event OnAfterModify there is the action "Monitored Fields".
- Mark the trigger with the workflow event OnAfterModify .
- Action "Monitored Fields".
- select fields (lookup via "Fields Lookup").
- In the current implementation, an OnAfterModify trigger is only started when at least one monitored field is maintained and this field has actually changed.
- If no monitored fields are maintained, the trigger is not started on OnAfterModify.
Workflow action on completion
In the template there is the section "Workflow Action".
- Run action on completion enable.
- Action on Completion choose (depending on the primary table):
- Release / Reopen (only for certain document tables)
- Custom action (codeunit/report)
- Define field value assignments
When Define field value assignments is selected, the section appears Field Value Assignments.
Cleanup (retention & cleanup)
Under Cleanup Configuration:
- Automatic Cleanup Enabled
- Retention Period for Cleanup (DateFormula, e.g.
-1M)
In addition there is the action:
- "Clean Up Old Instances"
Module: Escalation Engine
The escalation engine automatically monitors overdue approval requests and runs definable escalation steps. This lets you model reminders, automatic delegations, or reassignments on a time-based schedule.
How it works
- The escalation is controlled by a Job Queue Entry that regularly checks all open approval entries.
- For each overdue entry it is checked whether an escalation step is due (based on the "Overdue Duration" relative to the approval’s due date).
- Escalation steps can be defined at template level (apply as default for all steps) and/or at step level (override the template setting for that step).
- The highest escalation step already executed is tracked in the approval entry in the field "Escalation Level" so that no step is executed twice.
Prerequisites
- The escalation job queue entry must be set up and active (see AWF Setup).
- The approval entries must have a Due Date (configurable via "Due Date Formula" in the step).
Configure escalation steps
At template level (default for all steps)
- In the AWF Workflow Template → section "Escalation Steps".
- New.
- Fill in the fields:
- Step No.: running number (determines the order).
- Description: description of the escalation step (e.g. "Reminder after 1 day").
- Overdue Duration: date formula relative to the due date (e.g.
<+1D>= 1 day after due,<+1W>= 1 week after due). - Escalation Action: action that runs when the overdue duration is reached.
- Enabled: Yes/No.
At step level (overrides template level)
- In the AWF Stepcard → section "Escalation Steps".
- Create steps as described above.
- If a workflow step has its own escalation steps, the template escalation steps are not considered for this step.
Escalation actions
| Action | Description |
|---|---|
| Send Notification | Sends an escalation notification (via the standard BC notification mechanism). |
| Delegate | Delegates the approval automatically via the BC standard substitute chain (from "Approval User Setup"). |
| Reassign | Reassigns the approval to a defined recipient. Recipient Type and Recipient Code are configured (user or workflow user group). |
| Custom Action | Runs a custom object (codeunit or report). Optionally the source record can be passed (Pass Source Record). |
Configure recipient (for "Send Notification" and "Reassign")
- Recipient Type: approver (specific user) or workflow user group.
- Recipient Code: user ID or code of the workflow user group.
- For "Reassign", the approval is redirected to the new recipient.
- For "Send Notification", the recipient receives an escalation notification.
Rule-based escalation (optional)
Escalation steps can optionally have a Rule Group Code . When set, the escalation step only runs if the rule conditions of the rule group match for the current record.
Due date and escalation
For the escalation to work meaningfully, a Due Date Formula must be maintained in the step:
- In the step: set the field "Due Date Formula" (e.g.
<+3D>= due 3 days after the approval is created). - The escalation duration is added on top of the due date: if the due date formula is
<+3D>and the overdue duration is<+1D>the escalation step runs 4 days after the approval is created.
If an approval entry has no due date , a prompt for manual entry is shown if necessary.
Module: Rejection Handling
The rejection behavior in Advanced Workflow is configurable and controls what happens when an approver rejects an approval request.
Default behavior (without special configuration)
- Rejection in the first step: the workflow is cancelled (status → Cancelled).
- Rejection in a later step: the workflow returns to the previous step and the approval is recreated.
Rejection group for related approvals (lines)
If you use related approvals (line approvals), you can specify to whom rejected line approvals are reassigned:
Configuration at template level
- In the AWF Workflow Template → area Rejection Settings:
- Use Rejection Group for Related Approvals = Yes
- Rejection Default Assignee Type Approver / Workflow User Group / Salesperson/Purchaser
- Rejection Default Assignee: specific user or group
Configuration at step level (overrides template level)
- In the AWF Stepcard → area Rejection Settings:
- Use Rejection Group for Related Approvals = Yes
- Rejection Default Assignee Type and Rejection Default Assignee as above
- If a step has its own rejection settings, these override the template settings.
Rejection group for header approvals
Normally, rejecting the header approval leads back to the previous step (or cancellation in the first step). Alternatively, you can configure the header rejection to hand the workflow to a rejection group for review: the workflow moves to the template's error step (if the template has none, it stays on the rejecting step), and the rejection group receives a rejection review (see below):
- Use Rejection Group for Header = Yes
- Header Rejection Assignee Type: Approver / Workflow User Group / Salesperson/Purchaser
- Header Rejection Assignee: specific user or group
The configuration is possible at both template and step level (step level overrides template level).
Rejection reason and reassignment for lines
When rejecting a related approval, a dialog opens:
- Rejection Reason: mandatory field – why is the line rejected?
- New Assignee: pre-filled with the configured rejection group, but can be adjusted manually.
- Assignee Type: Approver / Workflow User Group / Salesperson/Purchaser
- User or Workflow User Group (depending on type)
Rejection review: what the rejection group can do
An approval that a rejection group receives after a rejection is a rejection review. The group does not approve — a document somebody has just rejected must not go through without the approval that was withheld. It can correct the document (at a step with Allow Record Edit) and then send it back or cancel the workflow. In "Requests to Approve" the field Rejection Review marks such an approval. If the rejection group is a workflow user group, a member has to claim the review first, as with any group approval.
- Rejected header: on the document (group Approval Requests) and in "Requests to Approve", Send Back and Cancel Workflow are available; Approve and Reject are not offered. Send Back takes the workflow back to the step that rejected it or an earlier one. The reason is mandatory and stays on the document as an approval comment for the approvers there.
- Rejected line: the DEXPRO Advanced Workflow menu of the document lines offers Send Back Line(s) and Cancel Workflow; "Requests to Approve" offers Send Back and Cancel Workflow. The line goes to the approver its step gives it, or to an approver, workflow user group or salesperson/purchaser you choose; a comment is optional. The header and the other lines stay as they are. Cancel Workflow cancels the whole workflow, for example when the line has to be split.
FactBoxes
- Pending Approval: for a rejection review — and for every approval of a workflow whose header is under review — the FactBox offers neither Approve nor Reject. The reviewer gets Send Back and Cancel Workflow there instead of Cancel Approval Request. On a document this applies to the review of the header only; a line is sent back from the line menu. In "Requests to Approve" the FactBox follows the selected approval and offers Send Back for a line as well.
- Related Approvals: Approve and Reject are not offered for a rejection review, and a rejection review is skipped when several entries are selected. Delegate remains available — it changes who reviews.
An attempt to approve or reject a rejection review is refused with: This approval is a rejection review. It cannot be approved or rejected - send it back or cancel the workflow.
Module: Approval Preconditions
Preconditions let you define on a workflow stage which details a document must have before an approval may take it out of that stage – for example "the cost center is filled in" or "the payment reference is filled in". Advanced Workflow checks these details when someone approves; it does not maintain them. If something is missing, the approver sees what is missing and can add it or reject the document.
Purpose
- A stage is only approved once the data the next department needs is there – the cost center for accounting, for example.
- The approver sees what is still missing as soon as they open the document (FactBox Approval Preconditions), not only when the approval fails.
- With the severity Warning you can give a hint the approver may consciously override; who did so is recorded in the audit log.
Setup
- Open the AWF Workflow Template and select the stage in the Stages section.
- Choose the Preconditions action (or the number in the Preconditions column). The Rules page opens with the preconditions of this stage.
- Create a rule with New and give it a condition that describes the desired state, for example field Cost Center, operator Is Not Empty.
- In the rule's Approval Precondition section, set the Severity and, if you like, a Message of your own.
When you open the preconditions for the first time, the app creates a rule group of their own for the stage (code PRE- + stage code), shown in the stage's Precondition Rule Group field. It is separate from the step rules: step rules are evaluated when a stage is entered, and the first match wins; preconditions are checked when the stage is left, all of them.
A precondition is worded positively: when the rule matches, the precondition is met. If a related record the condition needs does not exist, the precondition is not met.
Rule fields
- Severity – Error blocks the approval. With Warning the approver can confirm and approve anyway; this is recorded in the audit log.
- Message – what the approver reads when the precondition is not met, as an instruction in your own words (for example: Please enter the cost center, accounting needs it.). Leave it empty and the app generates the message in the approver's language from the condition that failed, for example Fill in "Cost Center". or "Cost Center" must be empty. The field is named as the page shows it.
- Message Translations – a message of its own per language code. Approvers with that language read it instead of the rule's message.
Header or lines
Whether a precondition concerns the document header or every line follows from its condition: if it checks a field of a line table (for example Purchase Line), each line is checked on its own, and the message names the line. The Record Match Type field is not offered for preconditions.
Filter rules: a precondition for certain records only
If a precondition should apply to certain records only – for example "the cost center is filled in", but only for lines whose Type is not empty –, give it filter rules:
- Select the precondition in the list and choose the Filter Rules action (or the value in the Filter Rule Group column). On the precondition's rule card, Filter Rules is under Actions.
- Create a filter rule with New and describe in its condition which records the precondition applies to, for example field Type, operator Is Not Empty.
When you open them for the first time, the app creates a rule group of their own for the precondition (code FLT- + rule code, description Filter of precondition … (stage …)).
- The precondition applies when at least one active filter rule that is currently valid matches. Without filter rules it applies to every record.
- If no filter rule matches, the precondition is not checked for that record: it appears neither in the dialog nor in the FactBox, is not counted and is not logged.
- If a filter rule cannot be evaluated because a related record is missing, the precondition is checked anyway. A missing record lets nothing through.
- Whether the header or every line is checked is decided by the precondition's condition, never by the filter rule. When the precondition is checked per line, the filter rule sees that same line. When it is checked once for the document, the filter rule sees the whole document; whether one matching line is enough or all lines have to match is set by the filter rule's Record Match Type – the field is shown only in that case.
- Filter rules have no message and no severity. What the approver reads always comes from the precondition.
Checks when the template is activated
The template cannot be activated when
- the Error stage has preconditions (the action is disabled there): The Error stage … has preconditions, but nothing is approved there.
- a precondition has no condition – even if it has filter rules: Precondition … of stage … has no condition and would always be met.
- a filter rule has no condition: Filter rule … of precondition … (stage …) has no condition and would always apply, so the filter would limit nothing.
- a stage with approval mode Related Only has a precondition on the header – nobody can change the header or reject a header approval there.
If Allow Record Edit is switched off on the stage, or external approvers approve it, the app points this out when you open the preconditions: the approvers cannot add missing details themselves and can only reject the document so that somebody else completes it.
Testing preconditions
To see whether a precondition and its filter rules do what you expect on a particular document, use Test Precondition (on the rule card and in the list of preconditions) or Test All Preconditions (in the list). On a filter rule, Test Precondition tests the precondition the filter belongs to. Test Rule and Test Rule Group are not offered for preconditions and filter rules: they evaluate a rule only once against the whole document and know nothing of filter rules.
The Precondition Test page opens. Choose a document with Select Test Record. The app checks the preconditions the way the approval checks them – per line where the condition is on the lines, and only where the filter rules let the precondition apply. The test changes nothing and needs no running workflow.
- Result – for example 3 of 4 checked met, 2 do not apply (filter).
- Status – per precondition, and per line for a precondition on the lines: Met, Missing, Warning, Does not apply (the filter rules exclude the record) or Not checked (the precondition is inactive or not valid now, or the document has no lines).
- Filter – what the filter rules decided: No filter, Applies - filter rule … matches, Applies - filter rule … cannot be read, a related record is missing or Does not apply - no filter rule matches.
- Details – for the selected row, every filter rule and every condition of the precondition, each with ✓ or ✗ and the value the record holds.
After a change to the document or to the rules, Test Again checks once more.
Checks that partners add (see For developers) do not run in the test.
What is checked when approving
Each approval checks what it stands for – so no line blocks an approver who may not change it:
| Approval | Checked |
|---|---|
| Header approval | the document header and the lines that have no approval of their own at this stage |
| Line approval (related approval) | its line |
| the approval that completes the stage | all preconditions of the stage |
The "Approval not possible yet" dialog
When you approve and a precondition is not met, the dialog Approval not possible yet - stage … (… open) opens before anything is approved. This applies to Approve on the document and in Requests to Approve, to Approve Line(s) in the document lines and to the Related Approvals FactBox. For each precondition it shows Status (Met, Missing or Warning), Precondition, Message, Line, Field and Current Value.
{add screenshot of Approval not possible yet here}
- Go to Field – opens the record at the field so you can fill it in. Close it to come back to the dialog. Only when you can change the document at this stage; otherwise the dialog says: You cannot change these details at this stage. Reject the approval so that they are added.
- Check Again – checks once more. When the preconditions are met now, the approval goes ahead without a further click.
- Reject... – rejects the approval. The open points are proposed as the reason (the first point and "(+n more)"; the full list is in the audit log). Only when you are processing a single approval.
- Approve Anyway – only when nothing but warnings is open. Who confirmed which warning is recorded in the audit log.
Where no dialog is possible, the approval ends with the message The approval is not possible yet. Stage … requires: … and the action Show problems, which opens the list of preconditions. There is no way to override a precondition of severity Error – not for administrators either.
Approve All
Approve All skips approvals with an unmet Error precondition and reports them at the end: … approval request(s) were approved. … remain open, … of them because their preconditions are not met: …. Open warnings are confirmed once, up front, for all of them.
The "Approval Preconditions" FactBox
The FactBox appears on the document pages with Advanced Workflow integration, in Requests to Approve and on the AWF Workflow Instance card. It is visible while the workflow is at a stage with preconditions.
- At the top it says Stage … · n of m met, below it lists each precondition with status, message, field, line and current value. A met precondition says what holds ("Payment Reference" is filled in.); a message of your own is shown only while the precondition is open.
- The check runs in the background. The result appears without reloading the page; meanwhile it says Checking the preconditions....
- After a change the FactBox checks again: for a header field once the change is saved, for a line once you leave the line – that is when Business Central saves it. Business Central's own Document Check behaves the same way.
- Refresh checks again right away, Show All opens the stage's preconditions in a list. Outside the document (in Requests to Approve, for example), choosing the message takes you to the field.
- When your approval still needs something, the document shows the notification Your approval still needs 2 details. Approving is only possible once they are added. once, with the action Show.
- While the rejection group reviews a document after a header rejection, the FactBox shows the preconditions of the stage that rejected it.
{add screenshot of Approval Preconditions FactBox here}
Automatic approvals, external approvers and deleted lines
- Automatic approval by rule: if the preconditions are not met, the automatic approval is suspended and the stage goes to its normal assignment. The audit log records Automatic approval by rule … suspended - the preconditions of stage … are not met: …
- If a stage would be completed by rules, or after lines were deleted, without its preconditions being met, the workflow moves to the Error stage. Complete the data, then move the workflow back to the stage with Change Stage, or cancel it.
- External approvers: an approval from outside Business Central does not count while an Error precondition is open. The reason is shown on the external approval entry and in the audit log.
- Warnings do not hold up paths without a dialog (automatic and external approvals); they are logged.
Copying, exporting, importing
Copy a workflow, Export a template and Import / overwrite a template take the stages' preconditions along – with their conditions, their filter rules and the message translations.
For developers
Add checks of your own through the integration event OnAfterCheckPreconditions of codeunit DXP AWF Precondition Mgmt.. It is raised on every path – dialog, the engine's binding check, external and rule-based approvals. A result marked Partner Check with severity Error that is not met blocks the approval exactly like a precondition rule. The event is not raised in the Precondition Test, because there is no workflow instance there.
Related pages
- Define steps
- Step rules: how does the workflow move to the next step?
- Related approvals
- Module: Rejection Handling
- Module: Monitoring & Administration