On
const { on } = require('decorators')
class Handler {
@on('axon__task.completed', { name: 'axon__task_completed_event' })
onCompleted( task, str ) {
// str === "another param"
}
}
const task = completeATask()
script.fire('axon__task.completed', task, "another param")Last updated
Was this helpful?