Triggers
Explicit trigger (button)
triggers ({ on }) {
return on('manual')
.for('compose:record')
.uiProp('app', 'compose')
},
Implicit trigger (automatic)
// Before something
triggers ({ before }) {
// You can pass in multiple events: create, update, delete
return before('create', 'update')
.for('compose:record')
.where('module', 'Module1')
},
// After something
triggers ({ after }) {
// You can pass in multiple events: create, update, delete
return after('create', 'update')
.for('compose:record')
.where('module', 'Module1')
},
Deferred (interval)
// Every day at 2AM
triggers ({ on }) {
return on('interval')
.every('0 2 * * *')
},