...
Note | ||
---|---|---|
| ||
The |
Use the following function blocks, in which the session variable is available, for Aggregation specific functions.
consume
in Batch and Real-Timecommand
only in Real-timesessionInit
in Batch and Real-Timetimeout
in Batch and Real-Time
consume - Batch and Real-Time
The consume
block is called each time a UDR that matches a session, or causes a new session to be created, arrives. Thus, the consume block is not necessarily called for each arriving UDR. The UDR will be available through the input variable and the session through the session variable.
command - Real-Time Only
The command block is called for all flushed sessions. The flush action is initiated with an Agent Command from the Command Tab of the Aggregation agent in the Workflow Monitor or through the Command Line Tool mzsh. Within this block the instruction variable is available and contains a string, optionally forwarded by the user. For further information, see Flush Sessions and Variables.
sessionInit - Batch and Real-Time
The sessionInit
block is called each time a new session is created. The UDR that caused the session to be created will be available through the input variable and the new session through the session variable. The sessionInit block is optional. It is, however, recommended that you use this block since it makes the code easier to follow.
timeout - Batch and Real-Time
The timeout
block handles sessions that for some reason have been left hanging in the system. For instance, if the stop UDR was not received within a timeout interval.
...