BRE connector — rule lifecycle
A rule is the connector's stateful resource. It has a status (DRAFT, ACTIVE, INACTIVE)
and an integer version. How each operation is implemented is in
the architecture reference; how to call them is in endpoints.
Status
- A rule is created
ACTIVEby default;status: DRAFTmay be supplied on create. - Only
ACTIVErules can be evaluated —evaluatelooks the rule up byACTIVEstatus, so aDRAFTorINACTIVErule returns404 BRE004001(see the implementation notes). DELETEis a soft delete: it setsINACTIVEand keeps the row; a laterPUTwithstatus: ACTIVEre-activates it.
Versioning
Each PUT increments version (it starts at 1 on create). An update invalidates the cached
compiled decision, so the next evaluation recompiles from the new JDM
(see the architecture reference).