Skip to main content

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 ACTIVE by default; status: DRAFT may be supplied on create.
  • Only ACTIVE rules can be evaluatedevaluate looks the rule up by ACTIVE status, so a DRAFT or INACTIVE rule returns 404 BRE004001 (see the implementation notes).
  • DELETE is a soft delete: it sets INACTIVE and keeps the row; a later PUT with status: ACTIVE re-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).