Skip to content

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

PropertyTypeRequiredNotes
entityTypestringyesThe EntityDefinition.name this rule fires against.
namestringyes
descriptionstring
triggerEventstringyesone of: BEFORE_CREATE, AFTER_CREATE, BEFORE_UPDATE, AFTER_UPDATE, BEFORE_DELETE, AFTER_DELETE
priorityintegerLower runs first when multiple rules match the same trigger.
activeboolean
conditions#/definitions/conditionyes
actionsarrayyes

Named sub-definitions

condition, action