Ordered policies evaluated from top to bottom.
#1 IF priority >= 4 AND status = open THEN notify → #2 IF updatedAt < -30d THEN route
[
{
"priority": 1,
"name": "Escalate urgent",
"conditions": "priority >= 4 AND status = open",
"effect": "notify",
"enabled": true
},
{
"priority": 2,
"name": "Auto-close stale",
"conditions": "updatedAt < -30d",
"effect": "route",
"enabled": true
},
{
"priority": 3,
"name": "Block archived edits",
"conditions": "status = archived",
"effect": "deny",
"enabled": false
}
]Waiting for action
Copy this complete component into a page file. Edit and run it in the Playground.
Loading editor…
Ordered policy rules with enable toggles and effects.
| Prop | Type | Default | Description |
|---|---|---|---|
rules | RuleDefinition[] | — | Ordered rules. |
onChange | (rules) => void | — | Update handler. |