The inspector marks an item as “Fails” and, at the end, leaves the result as “Compliant.” It may be a wrong tap or a criterion applied badly.
Whatever the cause, the report says two opposite things. The distributor returns it.
The rule
- Checks
- The installation result and each checklist item.
- Blocks when
- The result is Compliant and some item is marked Fails, NC, Critical or Non-critical.
- Message to the inspector
- “When the status is Compliant you can’t mark the following items as Fails or NC: Shut-off valve, Upper ventilation.”
- Applies to
- Forms with a result and a checklist.
Test cases
This is how it’s simulated before saving: if a case doesn’t give the expected result, nothing is saved.
| Situation | Result |
|---|---|
| Compliant · all items pass | Passes |
| Compliant · one item fails | Blocks |
| Non-compliant · one item fails | Passes |
Variant: the other way around too
A Non-compliant report must have at least one failed item. If it has none, the result doesn’t add up either.
Ask your assistant for it
With the RETGAS connector in Claude, all you have to write is:
«Make a rule so that a Compliant report can’t have items marked Fails or NC, and have the message say which ones.»
Why it matters
-
It says which items to review
The message lists the conflicting items. The inspector goes straight to them.
-
The person decides
The rule doesn’t change the result. It flags the contradiction and the inspector decides whether to fix the item or the result.
The engine flags and the person decides. Rules only run when they’re active and linked to the form. How they’re configured
Result consistency is the first thing whoever receives the report looks at. Better to have the engine check it first.
Other examples
- Times The start time comes before the end time
- Times The visit lasts at least the minimum time
- Photos The photos were taken on the day of the visit
- Distributors The meter serial on the bill matches the actual meter
- Tables Exposed piping has length, diameter and type
- Calculations The appliances’ power adds up
- Distributors The inspection fee is the one agreed with each distributor
- Appliance census The census code follows each distributor’s format
- Appliance census The census type matches the flue (D.E.P.C.) column
- Appliance census Planned points in the census are marked as planned
- Appliance census Every appliance is in a registered room