4. Places to Trigger Scripts

Scripts can be triggered at different places, by different events.

In openidm/conf/sync.json
Triggered by situation

onCreate, onUpdate, onDelete, onLink, onUnlink

Object filter

vaildSource, validTarget

Correlating objects

correlationQuery

Triggered on any reconciliation

result

Scripts inside properties

condition, transform

sync.json supports only one script per hook. If multiple scripts are defined for the same hook, only the last one is kept.

In openidm/conf/managed.json

onCreate, onRead, onUpdate, onDelete, onValidate, onRetrieve and onStore

managed.json supports only one script per hook. If multiple scripts are defined for the same hook, only the last one is kept.

In openidm/conf/router.json

onRequest, onResponse, onFailure

router.json supports multiple scripts per hook.