On
User events are overridden by name and weight, sorted by weight (desc) and must be namespaced.
script.fire(event, ...params)
Execute events registered with @on
in the same script context as the current principal.
Arguments
event
{ String[] } The custom event name. eg.axon__task.completed.before
...params
{ *[] } Options object to pass toscript.arguments
@on(event, options)
Arguments
event
{ String } Eventoptions
{ Object } Options objectactive
{ Boolean = true }name
{ String }label
{ String }environment
{ String = "*" }if
{ Expression }weight
{ Number = 0 }
Examples
Last updated