Skip to content

On Clause

An On Clause specifies how to handle a particular kind of message or situation as part of the definition of a handler. An On Clause is associated with a specific message definition and contains statements that define the handling of that message by the handler's parent. The containing Processor is the receipient of the message and the sender of any statements that send messages.

There are fours kinds of On Clauses: * Initialization - when the definition is created and initialized * Termination - when the definition is terminated * Message - when the definition receives a specific kind of message * Other - whenthe definition receives a message not otherwise handled

Occurs In

  • Handlers - the handler to which the On clause is applied

Contains

  • Statement - specifies what should happen when the event occurs