Handles a signal. A signal is a way of broadcasting to other parts of the project that a particular event has occurred.
See Signals for more information.
<!-- Moya fires a number of signals itself, for various system events --><handle signal="sys.startup"><log>This code executes on startup, prior to any requests</log></handle><!-- Handle a custom signal --><handle signal="mordor.arrived"><log>${hobbit} has arrived in Mordor!</log></handle>
name | purpose | type | required? | default | choices |
---|---|---|---|---|---|
sender |
Only handle the signal(s) if sent from this element(s). | comma list | No | ||
signal |
Signal name to handle. Multiple names may be specified to handle more than one signal. | comma list | Yes |
name | purpose | type | required? | default | choices |
---|---|---|---|---|---|
if |
Conditional expression | expression | No | yes |