The following job control methods are available at the event level, and can be accessed via the @event script object:
For proper syntax and parameters, see Event Object.
The following code example illustrates how the event-level job controls may be used:
#####################################################
# Performing job control based on the $reply variable
#####################################################
IF ($reply == “DelinkMe”)
# Set all notifications for the $recipient to DELINKED
@event::delink($recipient)
ELSE-IF ($reply == “DeliverMe”)
# Set all notifications for the $recipient to DELIVERED
@event::delivered($recipient)
ELSE-IF ($reply == “Complete”)
# Terminate the event
@event::terminate()
ENDIF
#####