1.3.4. Storage Trigger Sequences

Triggers are executed in the following order:

Object Retrieval Sequence

  1. Retrieve the raw object from the data store

  2. Call object onRetrieve trigger

  3. Per-property within the object:

    • Call property onRetrieve trigger

    • Perform schema validation if _schema_rev does not match (see the Schema Validation section)

Object Storage Sequence

  1. Per-property within the object:

    • Call property onValidate trigger

    • Call object onValidate trigger

  2. Per-property trigger within the object:

    • Call property onStore trigger

    • Call object onStore trigger

    • Store the object with any resulting changes to the data store