1.4.3 consume
The consume
function block is executed for each UDR or bytearray passing the agent. Within a consume
block, validation, modification and routing can be performed. Each UDR or bytearray is referred to by the special input variable.
Built-in Variables
Variable | Description | Example |
---|---|---|
input | Read-only variable containing the current UDR. Only available in the consume function block. | input.ANumber = 1234567; udrRoute(input); |
When handling several types of UDRs in the same Analysis agent, the APL code must first determine what type is currently handled, then cast it to the correct type. For an example, see 1.5 Data types.
Next: