...
Excerpt | ||
---|---|---|
| ||
stop(message) Will stop the analysis for the recordset, producing a warning message in the log. |
Function: stop()
Will cause The purpose of this function is to stop the processing of data.
It will cause the analysis for the recordset to stop , producing a and add the defined warning message in the log trace.
Syntax
stop(message)
Argument | Type | Description |
---|---|---|
message | String | Message to be output to the log trace. Can The message can be an attribute expression so long as it evaluates expression but must evaluate to a string. |
Examples
ifNull(in.rate,stop("Missing rate value"))
...
In this example, if the rate value is not found then there is no point continuing so a warning message is added to the log file and analysis for this recordset stops. No records are written to the database for this recordset.
Code Block |
---|
ifNull(in.rate,stop("Missing rate value")) |
In this example, an error() message is recorded in the log directly before the processing of records is stopped. This is useful where an error message is required in the logs.
Code Block |
---|
ifNull(in.rate,
do(
error("Missing rate value")
stop("Processing being stopped")
)
) |
Process Functions
Excerpt | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|