Appearance
entity-rule-definition schema
A declarative entity-lifecycle rule (engine-rule) — conditions/actions firing at BEFORE_CREATE/AFTER_UPDATE/etc.
Pull the full JSON Schema: erp schema pull entity-rule-definition · MCP: erp_get_schema {"name":"entity-rule-definition"}
Top-level properties
| Property | Type | Required | Notes |
|---|---|---|---|
entityType | string | yes | The EntityDefinition.name this rule fires against. |
name | string | yes | |
description | string | ||
triggerEvent | string | yes | one of: BEFORE_CREATE, AFTER_CREATE, BEFORE_UPDATE, AFTER_UPDATE, BEFORE_DELETE, AFTER_DELETE |
priority | integer | Lower runs first when multiple rules match the same trigger. | |
active | boolean | ||
conditions | #/definitions/condition | yes | |
actions | array | yes |
Named sub-definitions
condition, action