Rules engine

Rule engine help

The AppGrid rules engine applies your organization’s policies to your records. It produces findings, recommended actions and priorities, and explains every one of them. You write the rules in plain English, test them on your own records, and publish them when they are right. This guide covers everything from turning the feature on to calling it from your own Flows. It uses the claims example (a health-plan claims analyst’s daily work queue) throughout.

Who this guide is for

You are

Start with

A Salesforce admin setting the feature up

A rule author: you write and change rules

A publisher: you approve and release rules

An analyst or supervisor using the results

Quick start

  1. Give people access. A user sees the Rules button only with both of these:

    • a rules permission set, assigned in Salesforce Setup (see section 4);

    • Rules View, turned on in AppGrid’s Permissions panel on the left rail. It is on for System Administrators by default, but administrators also need a rules permission set.

  2. Open the rules engine. Click Rules at the bottom of the left rail.

  3. Pick a rule set. The example rule sets arrive switched off (Inactive) and with their thresholds blank, so they never act on your records before you have reviewed them.

  4. Review each rule. Read its plain-English sentence and enter its threshold from your own policy. A typical value, and its published source where one exists, is shown beside it. Switch on (Active) the rules you want.

  5. Watch the live impact. As you edit, the right-hand panel shows how many of your records each rule would act on, and which records change.

  6. Test. Use the Test rule view to compare your changes with the published version, record by record, with the reasons side by side.

  7. Keep good results as test cases. A test case says “this record should (or should not) get this rule”. Publish is blocked while any test case fails.

  8. Publish. Click Publish, describe the change in a sentence, and confirm. The published version is what everyone’s evaluations use. You can roll back at any time.

  9. Use the results. Analysts see findings, recommended actions and priorities, with Why? and What would it take?. Your Flows can call the engine and route work by action code.

1. Why the rules engine exists

Every organization runs on policies, such as “pay a clean Medicare claim within 30 days”, “review any claim billed over $50,000” or “escalate a prior authorization that is past its due date”. In most organizations these policies live in people’s heads, in spreadsheets, or buried in code. That causes four problems:

  • Inconsistency. Two analysts looking at the same record reach different conclusions.

  • No explanation. When a record is escalated, nobody can say exactly which policy caused it.

  • Slow change. Changing a threshold means a development project.

  • Silent gaps. When data is missing, a check quietly answers “no”, and nobody notices that the record could not really be judged.

AppGrid AI answers questions about your data, but it does not apply your policies to your records. The rules engine does:

  • Your policies become rules you can read. Each rule is a plain-English sentence, such as “When a pending Medicare claim has been waiting more than 30 days → judge ‘Past the payment deadline’.” There is no code to write and no rule order to manage.

  • Every result is explained. Click Why? on any record to see exactly which rules fired and which values triggered them.

  • Missing data is never treated as “no”. If a rule cannot be decided because data is missing, the result says unknown and names the missing field.

  • Changes are safe. You test a change on your real records before anyone sees it, publish it as a new version, and can roll back.

  • Read-only. The rules engine never changes a record. It recommends; people (or, later, your own approved automations) act.

  • The order is worked out for you. You never number rules or arrange them in sequence. When one rule builds on another rule’s finding, the engine works out the order itself, every time.

2. What it can do

Capability

What it means for you

Findings (judgments)

Statements about a record, for example “Past the payment deadline” or “High-dollar claim”.

Recommended actions

What someone should do next, each with a stable action code (for example REQUEST_CORRECTED_CLAIM) that your Flows can route on.

Priorities

A ranking such as Work first or Work today, so a queue sorts itself.

Any object, with looked-up fields

Rule sets on any object you can read; use values through its lookups (an order’s account tier).

Decision trees, truth tables and matrices

State one decision as a tree (split on a field, then the next), a table (a row per case) or a matrix (two fields, a result where they cross); they write ordinary rules.

Several results from one rule

One rule can give a finding, recommended actions and a priority together, for example “past the payment deadline → judge ‘Past the payment deadline’, recommend ‘Work today’ and set priority ‘Work first’”.

Rules that build on rules

A rule can use another rule’s finding (“when the claim has ‘Missing diagnosis’ → recommend ‘Request a corrected claim’”).

“Unless”

A rule can hold back when another finding is present (“…unless it has ‘Missing diagnosis’”).

Related records

A rule can look at a record’s related records: a claim’s payments, its prior authorization, its group of matching claims.

Unknown, never a silent “no”

When data is missing, the rule reports unknown and names the field.

Evidence checks

A rule can require enough evidence before judging (“only if the actuals were recalculated in the last 2 days, otherwise unknown”).

Why?

The full chain of reasons behind any result, with the record’s actual values.

What would it take?

For a result a record did not get: which conditions stand in the way.

Rule map

A picture of how rules link: every rule and finding that leads to a priority, finding or action, or everything a rule affects.

Live impact

While you edit, how many records a rule acts on, and which ones change.

Test rule

Your change against any published version, record by record, side by side.

Test cases

Expectations that must keep passing; Publish is blocked while one fails.

Versions and rollback

Every publish is a version; rolling back publishes the earlier rules as a new version, so history is never lost.

Rule status

Switch a rule off (Inactive) without deleting it.

Business processes

Rules are organized by business function → area → process, so each team finds and tests its own rules.

Flows and Apex

Call the engine from your own Flows and Apex, and route work by action code.

AppGrid AI

Apply your rules to the records in an AI answer.

Any industry

The same engine runs claims rules, account-management rules, or rules for any Salesforce records.

3. Key ideas

Records and related records. A rule set is about one kind of record, its subject, for example claims. A rule can also look at records related to the subject, for example a claim’s payments, prior authorization, group of matching claims and the member death check. Related records are joined to the subject automatically.

Conditions. The tests a rule makes, for example status is Pending, days since received is more than 30, billed amount is at least $50,000. All of a rule’s conditions must hold for the rule to fire.

Findings, recommended actions and priorities. A rule’s results are any mix of:

  • findings (judgments about the record),

  • recommended actions (each with its own action code), and

  • a priority.

A rule can give one result or several. All of them are given together whenever its conditions hold.

Chains. A rule’s finding can be used by other rules. For example, in the claims example “Past the payment deadline” leads to the recommendation “Work today — past the payment deadline” and to the priority “Work first”.

Unknown. A condition on a field with no value is unknown, not false. A rule that cannot be decided does not fire. Instead it is listed as unknown, with the field that was missing, so you can fix the data.

Evidence check. A condition marked if not met, unknown. If it does not hold, the rule’s answer is unknown rather than “no”, for example when the data is too stale to judge.

Layers (order). The engine works out the order: a rule runs after every rule whose findings it uses. The rule editor shows each rule’s layer, for example “Layer 0 · worked out by the engine” for a rule that uses no other rule’s finding. You never set it.

Function, area and process. Labels that organize rules for people, for example Claims operations › Claims administration › Payment deadline. They help you find, review and test rules. They never limit what runs: every published, active rule runs when the rule set is evaluated.

Status. Active rules run. Inactive rules are kept, shown and testable, but never run.

Draft, publish and versions. Your edits are a draft until you publish them. Each publish creates a numbered, read-only version.

Test cases. “Record X should (or should not) get this rule’s result.” They protect you from accidental changes.

Example rule sets. AppGrid ships example rule sets, such as the claims analyst’s daily queue, to start from. They arrive switched off, with their thresholds blank. Each rule shows a typical value and, where one exists, its published source; you enter the value your policy sets.

4. Who does what: roles and permissions

There are three roles. Each is a permission set you assign in Salesforce Setup. They are separate from AppGrid AI’s permission sets. Each set is complete on its own, so assign each person one. There are no per-record or per-process restrictions to configure.

Permission set

Can

What the screens show

Typical people

Use rules

See results, Why?, What would it take? and the Map

Build shows rules read-only, with the note “Read only — changing rules needs the Author rules permission set.” There is no Test rule, no + New rule and no test-case controls, and Publish is off.

Analysts, supervisors

Author rules

Everything in Use rules, plus edit drafts, add test cases and run Test rule

Editing, Test rule, test cases and Discard changes. Publish stays off, with the reason “Publishing needs the Publish rules permission set”. There is no Roll back.

Policy owners, senior analysts

Publish rules

Everything in Author rules, plus Publish and Roll back

Everything

Policy managers, compliance

Screenshot to come: the three rules permission sets in Setup → Permission Sets, and their assignment.

Good to know: these permissions shape what the screens offer, and saving, publishing and rolling back are checked in your org too: a user without Author rules cannot save a draft, and one without Publish rules cannot publish or roll back, even outside the app (for example through the API).

To show the Rules button, a user needs both a rules permission set (any of the three) and Rules View, turned on for the user or profile in AppGrid’s Permissions panel on the left rail. Rules View is on for System Administrators by default, but an administrator without a rules permission set does not see the button either. Rules View can only narrow access: turning it off hides the button even from someone who holds a rules permission set.

The Rules View permission in AppGrid's Permissions panel

Audit. Every publish and rollback records who did it, when, and what changed.

Screenshot to come: the audit history of rule-set changes. It becomes available with the release.

5. A tour of the rules screens

Click Rules at the bottom of AppGrid’s left rail.

The Rules button on AppGrid's left rail

The rail switches to the rules views: Build, Map, Test rule (Author rules and Publish rules) and Versions. Grid takes you back to your data.

The Build view of the claims example

The header shows:

  • the rule set’s name and where it sits (function › area);

  • which version is published, and whether there are draft changes;

  • how many rules it has;

  • which records the live impact uses.

On the right of the header:

  • Tests: N of N pass: your test cases. Red when one fails, which blocks Publish.

  • Discard changes: throw the draft away and return to the published version.

  • Publish vN: publish the draft as the next version.

Left: the rule list.

  • Search rules searches IDs and sentences.

  • Business process shows one process or all.

  • Each process heading has Rename.

  • Each rule shows its ID, how many records it fires on, its sentence, and tags: inactive, new, changed, N failing.

The rule list, grouped by business process

Middle: the rule editor. The selected rule, as a plain-English sentence and as the pieces you edit (see section 7).

Right: live impact.

  • validation messages, or “Valid. The engine accepts this rule.”;

  • how many records the rule fires on, against the published version, and which ones newly fire or no longer fire;

  • how many records change priority or actions across the whole draft;

  • Test this rule on claims;

  • Order and dependencies: which findings it uses and which rules use its findings, by process;

  • Test cases.

The live impact panel

6. Starting from the claims example

The claims example is a health-plan claims analyst’s daily work queue: 57 rules in seven business processes, under Claims operations › Claims administration.

Process

Rules

What they do

Data quality

1

Flag records that need checking first (for example a received date in the future)

Payment deadline

12

Prompt-pay deadlines approaching or passed, by plan type (Medicare fee-for-service, Medicare Advantage, Medicaid/CHIP, commercial, workers’ compensation, pharmacy)

Pending-claim exception

7

Missing diagnosis, waiting on medical records, waiting on an authorization decision, high-dollar claims, possible duplicates, service after a member’s death

Payment review

8

Paid with no payment, short or over payment, several payments, a payment on a pending or denied claim, payment despite a denied or undecided authorization

Denial review

3

Denials whose reason contradicts the record (timely filing, duplicate with no original, conflict with an approved authorization)

Recommended action

22

One recommended action, with its action code, for each finding

Queue priority

4

Work first and Work today

How to adapt it to your organization:

  1. Read each rule’s sentence. Under Catalog wording, threshold and sources, Example threshold and published range shows a typical value. Sources names where it comes from when a published source exists, for example the CMS Medicare Claims Processing Manual for the Medicare 30-day clean-claim rule. Recommended-action rules, and a few others, have no published source.

  2. Enter your thresholds. Example rules arrive with their thresholds blank. Enter the value your policy sets (see section 7.2).

Screenshot to come: an example rule with its threshold blank. Example rule sets arrive this way with the release; the preview shows them already filled in.

  1. Map your plan names to plan types. The payment-deadline rules depend on each claim’s plan type (Medicare fee-for-service, Medicare Advantage, Medicaid…), and every organization names its plans differently. You map them once, as a Business Term (see section 15). Until you do, those rules answer unknown for claims whose plan is not mapped.

  2. Switch on the rules you want (Status → Active).

  3. Add your own rules for policies the example does not cover.

  4. Test, then publish.

The typical values shown are examples, not advice. Decisions that are human by law or policy, such as coverage, medical necessity or fraud, are never automated by the example rules. They recommend checks and reviews only.

6a. Rule sets on your own objects

A rule set is about one object: every rule in it evaluates that object’s records, and results are grouped per record. To write rules for cases, orders, opportunities or any object you can read:

  1. In the rule set picker (next to the banner), choose + New rule set….

  2. Give it a Name, choose what the Rules apply to (your org’s objects are listed), and optionally a business function and area.

  3. Click Create. The rule set’s words come from the object itself: its field names, picklist values and lookups. It starts with one rule, and its records are read from your org as you are allowed to see them: all of them, or the first 1,000 by record ID when there are more. The editor’s counts (fires on N) describe those records; the banner says which. [PLACEHOLDER: choosing which records the editor reads, for example only open cases, is not built yet.]

Rules often need a value from a record this one looks up, for example the tier of the account on an order. Click Fields from related records, choose the lookup (Account), then the field (Tier), click Add, then Save and read the records again. Your draft rules are kept.

Adding a field from a related record

The looked-up field then appears in every field list as Account › Tier. You can use it in conditions, tree splits and table columns, and compare it with another field (discount is more than account › maximum discount). A record with nothing in the lookup (an order with no account) has no value, so its rules answer unknown, never “no”.

A rule on cases using a looked-up field

For example, to check discounts by tier, use a truth table on orders with the columns Account › Tier and Discount %: Gold, more than 20 → “Discount above the Gold limit”; Silver, more than 10 → “Discount above the Silver limit”.

Limits today:

  • lookups go one step (order › account › tier);

  • a lookup that can point to several objects (such as Owner) is not offered;

  • related lists (child records such as an order’s lines) and computed values (days since, totals) come from Business Terms, as in the example rule sets.

7. Writing rules

7.1 Create a rule

  1. In Build, click + New rule. A new rule appears, with an ID (for example R-NEW-1) and a starting condition on the record’s status. If you are viewing one process, the new rule goes into that process; otherwise it goes into the rule set’s default process (for the claims example, Pending-claim exception).

  2. Give it a meaningful Rule ID (for example R-DL-MCR-PAST). IDs must be unique.

  3. Choose its Process, or New process… to create one.

  4. Build the conditions (When) and the result (Then), as below. The sentence at the top, “The rule, as a subscriber reads it”, updates as you go. That sentence is the rule: it is generated from exactly what the engine runs.

A new rule

7.2 Conditions

Each condition is a field, a comparison and a value. Click + condition to add one, and × to remove one. The comparisons offered depend on the field:

Field type

Comparisons

Number, money, days

is at least, is at most, is more than, is less than, is, is not

Text and picklist

is, is not, is one of, is not one of (pick several values)

Yes / no

is (yes or no)

Comparing two fields. Some example rules compare one field with another on the same record:

  • is more than / is less than another field, for example “paid amount is more than payable amount”;

  • is more than (×), for example “payment total is more than 2 × billed”.

You can change these comparisons, but the editor does not create new field-to-field comparisons yet. A half-cent tolerance applies to is more than / is less than another field, so rounding never triggers a rule. is more than (×) has no tolerance.

Example: the Medicare past-deadline rule. “When the claim’s status is Pending, plan type is Medicare FFS, claim type is Professional or Institutional and days since received is more than 30, unless it has ‘Missing diagnosis’ or ‘Waiting on medical records’ → judge ‘Past the payment deadline’.”

The rule editor showing conditions and an "unless"

Changing a threshold (for example 30 → 20 days) updates the sentence and the live impact immediately.

Editing a threshold updates the sentence and the impact

Make the first condition decide which records the rule is about, usually the status (status is Pending). Without it, the rule applies to every record, and records it was never meant for would be reported as unknown when a later field is empty. The editor warns you about this.

Click + Add… and choose a record under Related records, for example its payments or its prior authorization. A new block appears where you add conditions on that record. It is joined to the subject automatically, so there is nothing to connect. If the record has no such related record, the rule simply does not apply to it.

7.4 Building on another rule’s finding

Click + Add… and choose under Another rule’s conclusion, for example has “Missing diagnosis”. The rule then fires only for records that have that finding. The engine runs this rule after the rules that make the finding.

7.5 “Unless”

Click + Add… and choose under Unless, for example unless it has “Waiting on medical records”. The rule is held back for records that have that finding. “Unless” works with findings, never directly with record fields. To hold back on a field value, first write a rule that makes a finding from it.

If the “unless” finding itself cannot be decided (unknown), the rule’s answer is unknown, never a silent “no”.

7.6 Evidence checks: when the data is too weak to judge

Some checks are only fair when the data behind them is good enough. In the manufacturing example, “an agreement under-delivering against plan” is only judged if its actuals were recalculated in the last 2 days. Stale actuals would make a customer look as if they were buying less.

Tick if not met, unknown on that condition. The box appears on number conditions and field comparisons. Then:

  • conditions before the evidence check decide whether the rule applies at all (if one is false, the rule does not apply);

  • if the evidence check is not met, the answer is unknown, whatever the conditions after it say;

  • if it is met, the conditions after it decide.

An evidence check ("if not met, unknown") in the manufacturing example

7.7 What the rule concludes (Then)

A rule gives one or more results. Each result is a row in Then. Click + Add result for another (it starts as a recommended action). Click Remove on a row to take it away; Remove appears once there is more than one. All of a rule’s results are given together, every time its conditions hold. The sentence lists them all, for example “→ judge ‘Missing diagnosis’ and recommend ‘Request a corrected claim’”.

A rule with two results: a judgment and a recommended action

One rule with several results, or a second rule that builds on the first? Both work, and both give the same results.

  • Use one rule when the results always go together. You write the conditions once, and the rule reads as one sentence.

  • Use a second rule that builds on the finding when:

    • several rules make the same finding (as the payment-deadline rules do, one per plan type), so the action is written once instead of in each rule;

    • you want to switch the action off on its own;

    • you want the action listed under a different process, such as Recommended action.

Switching a rule to Inactive switches off all its results.

For each result, choose the Kind:

Kind

Fill in

Example

Judgment

Judgment name: letters and digits, starting with a letter, no spaces (_ and - are allowed)

A new name reads as its words: HighDollarReview shows as “High Dollar Review”. The example rule sets carry their own wording: DeadlinePassed reads “Past the payment deadline”.

Recommended action

The action text, and an Action code: capital letters, digits and underscores. The editor converts what you type, and the engine refuses anything else.

“Request a corrected claim with diagnosis codes from the provider”, REQUEST_CORRECTED_CLAIM

Priority

Priority (for example Work first / Work today) and a Reason

Work today, “payment deadline approaching”

A recommended-action rule with its action code

Action codes matter. Flows and reports route on the code, not the wording, so you can reword an action freely, or translate it, without breaking anything. Keep one code per action, and do not reuse a code for a different action. When a rule gives several recommended actions, each one has its own action code.

A judgment’s name must not match a record type, such as “Claim”; the editor refuses it (see section 8).

7.7a Decision trees, truth tables and matrices

Some policies are one decision split by category, for example “for a pending claim: which plan type? For Medicare, more than 30 days late, then…”. Instead of writing a rule per case, click + New and choose:

  • Decision tree: split on a field, then the next, down to results.

  • Truth table: one row per case; every matching row gives its result.

  • Matrix: two fields, one down the rows and one across the columns; each cell gives the result for that pair.

A tree, table or matrix appears in the rule list as one entry (🌳, ▦ or ⊞, “writes N rules”), however many rules it writes. The engine runs ordinary rules, one per tree leaf, table row or matrix cell with results, so Why?, the map, test cases, versions and Flows all work the same.

Shared conditions apply to every branch, row or cell, for example status is Pending.

Decision tree. Pick the field to split on. How it splits follows the field:

Field

Branches

Text or picklist

the values you pick for each branch, and an optional Otherwise for every value not listed

Number

bands between the cut points you set (less than 25 · 25 to less than 30 · 30 or more); a new number split starts with one cut point at the middle value of the loaded records, so about half fall on each side — change it to your policy’s threshold

Yes / no

yes and no

Branches never overlap: a value already used in one branch is not offered for another (if the same value is typed into two, the editor names it). Number bands leave nothing out. Each branch leads to results (the same editor as a rule’s Then; several are allowed, or none) or to split again. A record whose value is missing gets unknown, never Otherwise.

A decision tree: shared conditions, a split on plan type, and Otherwise

Truth table. Add a column for each field the decision depends on (+ column), and a row for each case (+ row). Each cell is a full condition (is, is one of, at least…) or any, which means the column doesn’t matter for that row. Every row that matches gives its results.

The table shows overlaps row N on M claims where rows share records, and warns when a value is covered by no row (“No row covers plan type = Commercial, …”).

A truth table: one row, its results, and the warning about uncovered values

Matrix. Use a matrix when a result depends on two things together, for example plan type and days since received, or an order’s account tier and its discount %. Choose the field for the Rows and the field for the Columns. Each axis splits the way a tree does: values you list (with Otherwise for the rest), number bands at cut points, or yes / no. As in a tree, a value used in one row is not offered for another, and neither are columns’ values, so each record falls in at most one cell.

Click a cell to give it results (the same editor as a rule’s Then). A cell with results writes one rule: its row’s condition, its column’s condition and the shared conditions. An empty cell (—) writes nothing, so those records get no result from the matrix. A record with no value in either field gets unknown, never Otherwise. Changing an axis keeps every cell whose row and column are still there.

A matrix: plan type down the rows, days since received across the columns, two cells with results

Each leaf, row and cell shows fires on N claims; click it to see that rule in the impact panel. The rules it writes (at the bottom) lists every rule in plain English. A tree’s, table’s or matrix’s rules are edited only through it, and Delete tree / Delete table / Delete matrix removes all of them.

7.8 Wording, threshold and sources

Under Catalog wording, threshold and sources:

  • Catalog sentence: the rule as it appears in catalogs and lists.

  • Example threshold and published range: why this threshold, and what the published range is.

  • Sources: where the policy comes from.

What the engine runs (at the bottom) shows the rule’s exact definition, for reference.

7.9 Organizing rules into processes

Use Process in the editor to move a rule, New process… to create one, and Rename on a process heading to rename it. Processes are for people: they make rules easy to find, review and test. They never change what runs.

7.10 Switching a rule off (status)

Set Status to Inactive to stop a rule without deleting it. An inactive rule:

  • stays in the list (tagged inactive) and can be edited and tested;

  • never runs;

  • has its test cases skipped, so they do not block Publish.

If other active rules use its finding, the editor warns you: “N active rules use its finding and can no longer fire: …”. Their test cases will fail, which blocks Publish, until you switch them off too or switch this rule back on.

An inactive rule, with the warning about the rules that depend on it

A status change is a draft change like any other: test it, publish it, roll it back.

7.11 Deleting a rule

Delete rule removes the rule, and its test cases, from the draft. Deletion is published like any change, and earlier versions keep the rule, so a rollback can bring it back. Prefer Inactive when you might want the rule again.

If other rules use its finding, the draft cannot run until you change or delete those rules too. The header shows Tests: 0 of N pass, and Publish says The draft cannot run. Switching the rule to Inactive instead keeps the draft running and tells you which rules depend on it.

7.12 What a rule cannot say, and what to do instead

You want

Do this

“A or B”

Write two rules with the same result, or use is one of for several values of one field. Two simple rules are easier to read and test.

A total, average or rate inside a rule (“total paid in the last year”)

Use a computed field your rule set provides, such as payments total, days since received, revenue in the last 12 months. See section 15.

To control the order rules run in

You don’t need to. The engine works it out from which findings each rule uses.

A rule that uses its own finding, directly or through other rules

Not allowed; the engine refuses a loop (see section 8). Split the finding in two.

“Unless” on a field value

First write a rule that makes a finding from the field, then use that finding in “unless”.

A rule that changes a record

Rules never change records. Recommend the action and let your own Flow carry it out (see section 14).

7.13 Dates and “today”

Day counts such as days since received or days until it ends are whole calendar days, counted in your time zone. “Today” means the day of the evaluation. When you test with historical records, the rule set uses the records’ snapshot day, which the header shows.

7.14 Missing data and “unknown”

If a field a condition needs has no value, the condition is unknown and the rule does not fire. The result lists it as unknown, naming the field. Unknown is reported, never hidden: it tells you where your data needs attention. To reduce unknowns, fill the data, or make the first condition decide which records the rule applies to (see section 7.2).

A related record that does not exist is not unknown: it is “none”, and a rule that needs it simply does not apply.

Planned: an administrator will be able to declare, per input, that a missing value counts as “no” or zero (for example, that a payment with no amount counts as 0). Every answer that relies on it will say so.

8. Checks and messages while you edit

The editor checks every change immediately. Errors (red) need fixing before you publish. Whenever the engine refuses the draft (the message starts The draft cannot run), Publish is blocked. Warnings (amber) explain a likely mistake but do not block.

Validation messages for a judgment named like a record type

Message

What it means

How to fix it

The conclusion “X” has the same name as a record type; the engine would read it as its own input and refuse a loop. Rename it.

The judgment name matches a record type, such as “Claim”.

Give the judgment its own name.

The draft cannot run: …

Something makes the whole draft impossible to run, usually a loop. The engine’s own reason follows.

Undo the last change, or remove the rule that uses its own finding.

The draft cannot run: E-LOOP: A rule depends on its own conclusion, directly or through other rules, so no order can run it.

A loop: rule A uses B’s finding while B uses A’s.

Remove one of the links, or split the finding in two.

Nothing produces “X” — no rule concludes it and it is not a record type.

The rule uses a finding no rule makes.

Pick an existing finding, or write the rule that makes it.

“X” is not a field of Y.

The field does not exist on that record.

Pick a field from the list.

Choose a value for “X”.

A condition has no value.

Choose one.

Another rule already uses the ID X.

Duplicate rule ID.

Give the rule its own ID.

This rule applies to every claim. Add a condition (for example the status)…

No condition decides which records the rule is about.

Add one (warning only).

“X” is made only by inactive rules, so this rule can never fire.

It uses a finding that only switched-off rules make.

Switch one of those rules on, or switch this one off too (warning only).

N active rules use its finding and can no longer fire: …

You switched off a rule others depend on.

Switch them off too, or switch this rule back on. Their test cases fail until you do.

The engine applies the same checks when a rule set is loaded or called from a Flow, and returns them as codes (see section 21).

9. Testing rules

Test every change on your real records before publishing. There are three tools, from quick to thorough.

9.1 Live impact (while you edit)

The right-hand panel recalculates after each edit:

  • N claims this rule fires on (published: N) · evaluated in N ms;

  • +N newly fire and −N no longer fire, with the records (click one to see Why?);

  • Across the whole draft, N claims change priority or actions compared with the published rules.

9.2 Test cases

A test case says a record should fire or should not fire a rule.

  • Starting set: when a rule set is loaded, each rule gets up to two test cases from the published results. One is a record it fires on (if any). The other is a record it does not fire on although its status condition matches (if any).

  • Adding one: under Test cases, enter the ID of a record the view has loaded, choose should fire or should not fire, and click Add test.

  • When the change was intended: a failing test shows ✗ and Accept new result. Click it to record the new behavior as expected.

  • Removing one: click ×.

  • The gate: Tests: N of N pass in the header; Publish is blocked while any test case fails.

9.3 The Test rule view

Click Test rule on the rail, or Test this rule on claims in the impact panel.

The Test rule view: a threshold change compared with the published version
  1. Rule to test. Pick one rule, grouped by process, with (new) and (changed) marked. Only that rule’s draft is applied on top of the version you compare with, so you see its effect alone, even when other rules have unpublished edits. Choose All draft changes together to see the combined effect. The published sentence appears struck through, above the draft sentence.

  2. compared with. Pick any version to compare against: the published one, or an earlier one.

  3. Choose claims.

    • Claims this change affects (N): every record whose result changes.

    • Claims the rule fires on (N).

    • Or search by ID and filter (for example plan type, status), then Select shown; Clear empties the selection.

  4. Results. Each record with its result before (the version) and after (the draft), and a Change tag: Newly flagged, No longer flagged, Changed or Same. Show results from limits what is shown to one process. It filters only the display; every rule still runs.

Results filtered to one process
  1. Click a record to see the two explanations side by side, and which rules fire differently. Keep as test records the new result as expected for those rules, so a later change that undoes it fails.

A record's explanations, before and after, with Keep as test

9.4 The rule map: how rules are linked

Click Map on the rail to see how the rules connect. The map opens on what leads to your highest priority (in the claims example, Work first). It shows every rule and finding that can change that result, and nothing else.

The rule map: what leads to "Work first"
  • Reading it. Rules run left to right, in the order the engine runs them.

    • Grey links: a rule reads that record type or finding.

    • Blue links: a rule gives that result.

    • Red dashed links: an unless. That finding holds the rule back.

    • Faded boxes: inactive rules.

    • Each rule box shows how many records it fires on in your draft, so the map follows your changes as you make them.

  • Show chooses what the map is about:

    • Everything;

    • What leads to a result (a priority, a finding or a recommended action);

    • What a rule affects (everything downstream of it, including through an unless);

    • One business process (its rules, and what they read and give).

  • Show record types adds the record types the rules read (the claim, its payments…).

  • Click a rule to open it in Build. Click a result to see what leads to it.

The map is drawn from the rules themselves, so it is always up to date, and nobody has to draw or maintain it. Every role can use it.

10. What-if

The rules engine answers three kinds of “what if” question.

10.1 “What if I change this rule?” (Test rule)

Change a threshold, a condition or a status in the draft. Test rule shows exactly which records would change, and why, before anyone sees it (see section 9.3). This is the safe way to try a policy change: nothing is published until you publish it.

10.2 “What would it take for this record to get that result?” (What would it take?)

In Why? for any record, choose under What would it take? something the record did not get: a finding, a priority or a recommended action. The answer lists up to three rules that would conclude it, closest first. For each one, it lists every condition standing in the way:

  • a condition that fails: with the value it needs and the value the record has now (“needs status is Pending — now status is NotYetReceived”);

  • missing data that keeps it unknown;

  • a related record that does not exist (“It needs its prior authorization — there is none”);

  • another finding it needs first: explained one level down;

  • an “unless” that holds it back.

What would it take: the conditions standing in the way

This is read-only: it lists what the rules check and changes nothing. A change can also make another rule apply (for example an “unless” that then holds the result back), so try the change in Test rule before relying on it.

10.3 “What if this record’s data changed?”

Change one or more field values of a record, for example “what if the medical records arrive?”, and see which findings, recommendations and priorities would be added or removed. Only the records connected to the change are re-evaluated, so the answer is fast. The result is always the same as re-evaluating everything.

  • From the screen: apply a what-if to a record in an AppGrid AI answer, or to any record in the rules view.

Screenshot to come: a what-if on a record, from an AI answer and from the rules view. It becomes available with the release.

  • From Flows and Apex: available through the engine’s whatIf mode (see section 14).

11. Publishing, versions and rolling back

Publishing is how a change reaches your users. There is no deployment step: the published version is what every evaluation (screens, AI answers, Flows) uses, as soon as you publish.

  1. Make sure Tests: N of N pass is green and the draft has no errors. Publish vN stays disabled otherwise. Hover it to see why.

  2. Click Publish vN. Describe the change in a sentence (required), for example “Review Medicare claims for the payment deadline from day 20 instead of day 30”. The form counts what changed against the published version (new and changed rules) and confirms the tests pass.

  3. Click Publish version.

The publish form

Versions lists every version, newest first:

  • its number, date and note, with published on the live one;

  • what changed (new, changed and removed rules); expand it to see the before and after sentences;

  • Compare with the draft on claims, which opens Test rule against that version;

  • Roll back to vN, on every version except the live one.

The version history

Rolling back publishes a new version containing the earlier version’s rules. History is never erased, and the rollback itself can be rolled back. If you have unpublished draft changes, they are discarded; the confirmation says so.

Confirming a rollback

Discard changes throws the draft away and returns to the published version.

Saving. Drafts, versions and test cases are saved in your org, so they survive reloads and are shared with your team.

  • Your draft saves itself a moment after each change. The chip next to the test count says Unsaved changes, Saving… or Saved (hover it to see who saved and when). Opening a rule set saves nothing; it is created in your org the first time you change it (a rule set you make with + New rule set… is saved straight away).

  • Saving is not publishing. A saved draft is shared with your team but nothing runs it until you publish.

  • One draft per rule set, shared by its authors. If someone else saved the rule set after you opened it, your next change is not saved over theirs: a red message says “Your changes are not saved — someone else saved this rule set”, and Reload the rule set shows their version. Publish waits until you reload.

  • v1 is the starting point: the example as delivered, or the first rule of a rule set you made, with the test cases made from it. Every Publish and every roll back adds a version after it; versions are never changed or deleted.

  • Size. A rule set has no size limit in storage: a large one is stored in pieces and checked when it is read back, so a damaged rule set is refused rather than shown partly.

The saved versions of a rule set

If saving is not available in your org (the rules engine is not installed there), the banner says so and drafts stay on the page until you close it.

Moving rules between orgs (for example from a sandbox to production) is not available yet.

12. Reading the results

For each record, the rules engine returns:

  • Findings: what the rules judged true, each with the rules behind it and its details (for example which agreement is under-delivering).

  • Recommended actions: what to do, each with its action code.

  • Priority: the highest priority any rule gave the record.

  • Unknowns: rules that could not be decided, and the missing field.

  • Conflicts and overrides: recommendations your rule set declares as contradictory are both shown and marked; an overridden recommendation is shown, marked with what overrode it (see section 16).

Why? Click a record anywhere (a record chip in the impact panel, a row in Test rule) to see its full explanation. Each result names the rule that concluded it, in plain English, and below it the findings and record values it relied on, down to the record’s own fields.

Why: the chain of reasons behind a record's results

13. Using rules with AppGrid AI

AppGrid AI answers questions about your data, for example “Which Medicare claims have been pending for more than three weeks?”. The rules engine adds your policy to the answer:

  1. Ask AppGrid AI a question whose answer is a list of records.

  2. Click Evaluate Rules on the answer and pick a rule set.

  3. Each record in the answer shows its findings, recommended actions and priority, with Why? and What would it take?.

Screenshot to come: “Evaluate Rules” on an AppGrid AI answer, and the results shown per record. It becomes available with the release.

Good to know:

  • The rules engine reads the fields its rules need for those records itself, even if the answer did not show them. It reads only what you are allowed to see.

  • Evaluating rules never changes the answer or your records.

  • The AI does not decide the results. Rules are deterministic: the same records and the same published version always give the same results.

  • You can also run a rule set directly, without asking a question first, on a saved query’s records.

Screenshot to come: running a rule set directly on a list of records. It becomes available with the release.

14. Calling the rules engine from Flows and Apex

Your own Flows and Apex can call the rules engine, for example a scheduled Flow that evaluates the morning’s work queue and routes each recommended action to the right team.

14.1 The Flow action

In Flow Builder, add an Action and choose AgV2: Evaluate rules.

Screenshot to come: the action in Flow Builder, with its inputs and outputs. It becomes available with the release.

Inputs

Input

What to pass

Mode (required)

evaluate (results), explain (why for one result), whatIf (the effect of changed values), whatWouldItTake, or validate (check a rule set)

Rule set name

The stored rule set to run; its published version is used. (Coming with the release.)

Record IDs

The records to evaluate; the engine reads what the rules need. (Coming with the release.)

Rule set (JSON) (required until Rule set name arrives), Facts (JSON), Schema (JSON), Vocabulary (JSON)

The rule set, the records, their fields and the rule set’s words, passed directly as JSON. Until rule sets are stored in your org, this is how the action runs; afterwards, it serves testing and integration work.

As of

The day the evaluation is for (YYYY-MM-DD), returned with the answer. When the engine reads records itself (Record IDs), it counts days up to this day, and the default is today in the running user’s time zone.

Run id

Optional: your own ID, returned unchanged, to recognize a retry

Changes (JSON)

whatIf: the field changes to try, [{"id": "<fact id>", "set": {"<field>": <value>}}], where the fact id is the record’s type and key, for example claim:SYN-CLM-0000026

Record key, Target (JSON)

whatWouldItTake: the record and the result it did not get

Explain id

explain: the result to explain

Outputs

Output

What it holds

Status

Done, Refused (the request or rule set was not accepted; see Error), Incomplete (a limit was reached; the results are partial but every result shown is correct) or Error

Recommendations

A list you can loop over, one row per record and action: recordKey, actionCode, text, ruleIds, supports, conflictsWith, overriddenBy

Findings

One row per record and finding: recordKey, type, fieldsJson (the finding’s details), ruleIds, supports

Priorities

One row per record: recordKey, type, ruleIds, supports

Records, Findings count, Recommendations count, Unknowns count, Conflicts count, Overridden count, Unassigned count

Totals

Result (JSON)

The full answer, for logging or Apex

Error

Why it was refused or stopped, in a sentence

The three lists are filled in evaluate mode. For the other modes, read Result (JSON).

Example: routing the morning queue.

  1. A Schedule-Triggered Flow runs every morning.

  2. Get Records collects the open claims.

  3. The action AgV2: Evaluate rules runs, with Mode evaluate, the rule set name, and the record IDs (both inputs coming with the release).

  4. Decision on Status: if it is not Done, notify the rules owner with Error.

  5. Loop over Recommendations. A Decision on action code routes each one:

    • COMPARE_MATCHING_CLAIM → a subflow that creates a duplicate-review task;

    • WORK_PAST_DEADLINE → move the claim to the urgent queue;

    • anything else → create a follow-up task.

The rules engine never takes the action itself; your Flow does, under your own permissions and controls.

14.2 Apex

Map<String, Object> answer = AppGridAI.AgV2_Rules.run(new Map<String, Object>{

‘contractVersion’ => ‘1’,

‘mode’ => ‘evaluate’,

‘ruleSet’ => new Map<String, Object>{ ‘name’ => ‘claims-analyst-daily-queue’ }, // coming with the release

‘recordIds’ => claimIds, // coming with the release

‘runId’ => ‘morning-queue-‘ + String.valueOf(Date.today())

});

String status = (String) answer.get(‘status’); // Done, Refused, Incomplete or Error

The answer is grouped by record: for each record, its findings, recommendations (with action codes), priority and unknowns, plus totals. The call never throws an exception for a bad request: problems come back as a status and a stable code (see section 21). No Apex code can catch a Salesforce limit error, so the engine checks its CPU and memory as it runs, and normally stops with Incomplete first.

14.3 What you can rely on

  • Versioned. Requests and answers carry contractVersion; version 1 only ever gains things, never renames or removes them.

  • Repeatable. The same rules, records and day always give the same answer.

  • Route on action codes, not on wording.

  • Nothing silently lost. Totals always match; a result that names no record is listed under “unassigned”, never dropped. Each record shows one priority, the highest; lower priorities given by other rules are not listed.

15. Business Terms and the rules engine

Rules use your organization’s vocabulary: field names such as “days since received” or “plan type”, and computed values such as “payments total” or “revenue in the last 12 months”. They come from Business Terms, the same definitions AppGrid AI uses, so both describe your data the same way.

Computed values (counts, totals, day differences) are calculated for each record by AppGrid’s data tools. They respect your access and work with or without Data 360.

Plan type (claims example). The payment-deadline rules need each claim’s plan type, but organizations name their plans differently. A Business Term table maps each of your plan names to a plan type:

Your plan name

Plan type

Medicare Parts A and B

Medicare FFS

Medicare Advantage Complete

Medicare Advantage

Medicaid Standard

Medicaid

…

…

A plan with no entry gives an unknown plan type, and the answer says so. It is never guessed.

Screenshot to come: editing the plan-type table in Business Terms. It becomes available with the release. The claims example’s plan-type rules cannot be used until your plans are mapped.

16. Conflicting recommendations

Sometimes two recommendations contradict each other, for example “proceed with standard review” and “prioritize manual review”. The rules engine never silently drops one:

  • Declared as conflicting: a rule set can list pairs of action codes that contradict each other. A record that gets both shows both, marked as a conflict, with Why? for each.

  • One overrides another: a recommendation rule can declare that its action overrides another. The overridden recommendation is still shown, marked with what overrode it.

Both are declared in the rule set’s definition (exclusiveActions and supersedes). The rule editor does not edit them yet.

Screenshot to come: how a conflict and an override are shown on a record. It becomes available with the release.

17. Data, security and privacy

  • Read-only. Evaluating rules never creates, changes or deletes a record.

  • Your access applies. The engine reads records through AppGrid’s data tools in user mode, so sharing and field-level security apply. A field you cannot read is reported as unreadable and treated as missing, so the rule reports unknown rather than guessing.

  • No AI in the results. Rule results are computed deterministically from your rules and records.

  • Results are not stored in the first release. Why? is recalculated when you ask. Storing results, and your team’s accept or override decisions, is planned.

  • Audit. Publishes and rollbacks are recorded with who, when and what changed.

  • Example data. The example rule sets come with sample records from a test organization; they are not your data.

18. Limits and performance

  • Size. A single on-screen evaluation is meant for a work queue or an AI answer, up to a few thousand records with a typical rule set. Larger populations will run in the background in a later release.

  • Stopping cleanly. If an evaluation nears a Salesforce limit, it stops with status Incomplete, naming the reason (the number of firings, memory or CPU) and the rule where it stopped. Every result it does show is correct: results from a rule that did not finish are withdrawn, never shown half-done.

  • Fewer fields, more records. When rules run from Flows and Apex, the engine is meant to read only the fields your rules use [PLACEHOLDER: the fact builder that does this is not built yet]. The rules editor sends every field it offers.

  • Storage. No limit on the size of a rule set: versions are stored in pieces (1,026 rules ≈ 850,000 characters took 7 pieces in a test, read back exactly).

  • The editor’s records. While you edit, every change re-runs the rule set over the records the editor has read, in one synchronous Salesforce call. So a rule set on your own object reads at most the first 1,000 records (by record ID); the example rule sets carry their own sample. This is the editor’s sample, not a limit on running rules.

  • Debug logs slow it down. Salesforce debug logging on the running user roughly doubles the engine’s processing time, so about half as many records fit in one evaluation. Switch it off when you are not investigating.

  • Rule set size. Tested with up to 100 rules. Processing time grows in proportion to the number of rules and the number of records.

19. Using the rules engine in other industries

The rules engine is the same for every industry. A rule set says what its records are (claims, accounts, cases…), which related records it uses, and the words it shows. The screens, the engine, testing, versions, Flows and Apex all work the same way.

For example, the Account manager example rule set (Sales › Account management) judges sales agreements that under-deliver or end without a renewal, draft orders left too long, and customers whose ordering has gone quiet or declined. It recommends next steps, and sets Act this week and Review this month priorities.

The Account Rule Builder: the same screens on a different kind of record

20. Troubleshooting

Symptom

Likely cause

What to do

I don’t see Rules on the left rail.

You have no rules permission set, or Rules View is off for you. You need both.

An admin assigns you a rules permission set in Setup, and turns on Rules View in AppGrid’s Permissions panel. Reload the page afterwards.

The rules screen says it needs stored rule sets and the fact builder.

The rule set or your records cannot be read yet.

Make sure the rules feature is installed and set up, and that you have the rules permission sets.

Publish is greyed out.

No changes; a test case fails; or the draft has an error.

Hover the button to see which. Fix the failing test (or Accept new result if the change was intended), or the error.

A rule never fires.

A condition never holds; it uses a finding only inactive rules make; or it is inactive.

Check its warnings; use What would it take? on a record you expected to match.

Lots of unknown results.

Missing data; a plan with no plan type; an evidence check not met; or fields you cannot read.

Click Why? to see the field; fill the data, map the plan, or check field access. Make the first condition decide which records the rule is about.

A record got a recommendation I didn’t expect.

Another rule concluded it.

Why? shows every rule behind it.

The live impact count looks wrong.

The impact uses the records shown in the header (a sample or work queue), not your whole org.

Check the header’s record description.

Two contradictory recommendations on one record.

Two rules fire.

Declare them conflicting, or make one override the other (see section 16), or add an “unless”.

My test cases fail after I switched a rule off.

Other rules depend on its finding.

Switch them off too, or switch the rule back on.

I deleted a rule and now nothing runs (Tests: 0 of N pass, The draft cannot run).

Other rules use its finding.

Discard changes, then switch the rule to Inactive instead, or change the rules that use its finding before deleting it.

A Flow returns Refused.

The request or the rule set was not accepted.

Read Error; the codes are listed in section 21.

A Flow returns Incomplete.

A Salesforce limit was neared.

Evaluate fewer records per call (background runs come in a later release). Check that debug logging is off.

The results differ from what an analyst decided.

The rule’s threshold or conditions differ from practice.

Review the rule with the analyst using Why?; adjust; test; publish.

21. Message and error reference

Statuses

Status

Meaning

Done

Complete.

Refused

The request or the rule set was not accepted; errors lists why (code, rule, place, why, fix). Nothing was evaluated.

Incomplete

A limit was neared; reason is firings, heap or cpu. stoppedAt names the rule where it stopped and, in evaluate mode, notRun lists the rules that did not run. Every result shown is correct.

Error

Something unexpected; message explains. No results are shown.

Rule-set errors (block loading and publishing)

Code

Meaning

Fix

E-SHAPE

The rule set is not in the expected format (for example an unknown comparison or an extra property).

Correct the named part.

E-DUP-ID

Two rules share an ID.

Rename one.

E-ALIAS-DUP

A rule uses one record name twice.

Give each record its own name.

E-UNJOINED

A related record is not joined to the records before it.

Join it on a shared key (the screens do this automatically).

E-JOIN-REF

A join points at a record not named earlier in the rule.

Point it at an earlier record.

E-THEN-REF

The result copies a value from a name that is not a record in “When” (an “unless” record, or a name the rule does not have).

Copy from a record in “When”.

E-UNKNOWN-TYPE

Nothing produces the record or finding the rule uses.

Use an existing one.

E-UNKNOWN-FIELD

The field does not exist on that record, or no rule that makes the finding sets it.

Pick an existing field.

E-OP-TYPE

The comparison does not fit the field (for example “more than” on text).

Use a comparison for that field type.

E-VALUE-TYPE

The value does not fit the field (for example “yes” as text on a yes/no field).

Use the right kind of value.

E-RESERVED

A result field uses a reserved name: id, type, supports, constructor or prototype.

Rename it.

E-CONCLUSION-IS-INPUT

A finding is named like a record type.

Rename the finding.

E-UNLESS-INPUT

“Unless” names a record type instead of a finding.

Make a finding first, then use it.

E-LOOP

A rule depends on its own finding.

Remove one link, or split the finding.

E-ACTION-CODE-UNKNOWN

A conflict or override names an action code no rule uses.

Use an existing code.

E-SUPERSEDE-NO-CODE

A rule overrides others but has no action code itself.

Give it an action code.

E-SUPERSEDE-LOOP

Overrides form a circle.

Remove one so one action clearly wins.

E-ACTION-CODE-PLACE

A rule with several results has an action code (or override) on the rule itself, so it does not say which recommended action it belongs to; or the code is given both on the rule and on its result.

Put each action code on the recommended action it belongs to. (The screens do this for you.)

Warnings (do not block)

Code

Meaning

W-SCOPE

The rule applies to every record; add a condition that decides which records it is about.

W-GUARD-FIRST

An evidence check comes first, so nothing decides which records the rule applies to.

W-PARTIAL-FIELD

A field the rule reads is not set by every rule that makes the finding.

W-NO-ACTION-CODE

A recommended action has no action code.

W-READS-INACTIVE

The rule uses a finding that only inactive rules make.

Request errors (Flows and Apex)

Code

Meaning

Fix

E-CONTRACT

Unknown contractVersion or mode, or a missing or unreadable input.

Send contractVersion “1”, a valid mode, and the inputs it needs.

E-NOT-AVAILABLE

You asked for something this org cannot provide yet, such as a stored rule set or record IDs before the rules feature is set up.

Check that the rules feature is installed and set up, or pass the rule set and records as JSON.

22. Frequently asked questions

Do rules change my records? No. The rules engine is read-only. It recommends; people or your own Flows act.

Can I control the order rules run in? You don’t need to. The engine works out the order from which findings each rule uses, and the result is the same whatever order the rules are listed in.

Why does my rule say “unknown” instead of “no”? A value it needs is missing, an evidence check is not met, or you cannot read the field. “Unknown” tells you the record could not really be judged. Click Why? to see which field.

Can two rules conclude the same thing? Yes. The finding appears once, and Why? lists every rule that concluded it.

Can one rule give more than one result? Yes. Add results in Then, for example a finding, a recommended action and a priority. All of them are given whenever the rule’s conditions hold (see section 7.7).

Can I use OR? Write two rules with the same result, or use is one of for several values of one field.

What if two recommendations contradict each other? Both are shown and marked. Declare which codes conflict, or which overrides which (see section 16).

Does organizing rules into processes change what runs? No. Every published, active rule runs. Processes help people find, review and test rules.

Is AI used to decide the results? No. Results come only from your rules and your records.

Does it work without Data 360? Yes. Data 360 objects are used when your org has them.

Does it respect sharing and field security? Yes. It reads records through AppGrid’s data tools in user mode.

Can I run it on a schedule? Yes, from a schedule-triggered Flow (see section 14).

Are results kept? Not in the first release; Why? is recalculated on request. Keeping results is planned.

How do I move rules from a sandbox to production? This is not available yet.

Can I undo a publish? Yes: Roll back publishes the earlier rules as a new version.

Why can’t I publish? No changes, a failing test case, or an error in the draft. Hover Publish for the reason.

Are the example thresholds advice? No. Example rules arrive with their thresholds blank. The typical values shown, with their sources where one exists, are guidance; your policy decides.

23. Glossary

Term

Meaning

Action code

The stable code of a recommended action, for example REQUEST_CORRECTED_CLAIM, used by Flows and reports.

Area

A group of business processes under a business function, for example Account management.

Business function

The top level of organization, for example Sales or Claims operations.

Business process

A group of rules for one piece of work, for example Payment deadline. Organizes rules for people; never limits what runs.

Condition

A test on a field: field, comparison, value.

Conflict

Two recommendations your rule set declares as contradictory, both shown and marked.

Draft

Your unpublished changes.

Evidence check

A condition marked “if not met, unknown”: the rule only judges when the data is good enough.

Example rule set

A rule set AppGrid ships to start from; it arrives inactive, with its thresholds blank.

Finding (judgment)

A rule’s statement about a record.

Incomplete

An evaluation stopped at a limit; every result shown is correct, and the rules that did not run are named.

Layer

The step in which a rule runs, worked out by the engine from which findings it uses.

Live impact

The right-hand panel showing a rule’s effect while you edit.

Rule map

The Map view: how rules link, drawn from the rules themselves.

Override

A recommendation that wins over another; the other is still shown, marked.

Priority

A ranking of a record, for example Work first.

Publish

Make the draft the new live version.

Recommended action

What someone should do next, with an action code.

Related record

A record linked to the subject, for example a claim’s payment.

Roll back

Publish an earlier version’s rules as a new version.

Rule

One policy statement: when conditions hold, conclude a finding, recommended action or priority.

Rule set

All the rules for one kind of record, organized into processes, published together.

Status

Active (runs) or Inactive (kept, not run).

Subject

The kind of record a rule set is about, for example claims.

Supports

How many record combinations support a result.

Test case

An expectation that a record should or should not get a rule’s result.

Test rule

The view comparing a draft with a version, record by record.

Unknown

A result that could not be decided because data was missing or not good enough.

Unless

Holds a rule back when another finding is present.

Version

A published, read-only copy of the rule set.

What would it take?

The conditions standing between a record and a result it did not get.

What-if

The effect of a changed rule or changed record values, before anything changes.

24. Coming later

These are planned and will build on what you configure today:

  • A button to carry out a recommendation: each action code mapped to one of your own Flows or Agentforce actions, run with the user’s confirmation.

  • Automatic actions for proven, low-risk recommendations, with an allow-list, an audit trail and an off switch. Never for decisions that are human by law or policy.

  • Notifications when a record gets a new recommendation, so your Flows and systems can react.

  • Multi-stage processes whose steps are decided by rules.

  • Scheduled background runs, stored results, and your team’s accept and override history.

  • Rule versions that take effect on a date.