On
class Foo {
@on('axon__task.completed', {
environment: 'development',
})
static check(...params, runtime) {
const {
weight,
source, // "script" or "event"
metadata,
event,
context // the event document, when fired by a user event.
} = runtime
console.log('checking')
}
}script.fire(event, ...params)
@on(event, options)
Examples
Last updated
Was this helpful?