...continue from part 1....
ramp (real, required)
- This parameter defines Rate of toleration of reject events in the number of records processed.
- When the reject-threshold parameter is set to Use limit/ramp, the component uses the values of the ramp and limit parameters in a formula to determine the component’s tolerance for reject events.
Default is 0.0.
logging (boolean, optional)
- This parameter specifies whether the component logs certain events.
log_input (choice, optional)
- This parameter specifies how often the component sends an input record to its log port. The logging parameter must be set to True for this parameter to be available.
- For example, if you select 100, the component sends every 100th input record to its log port.
log_output (choice, optional)
- This parameter specifies how often the component sends an output record to its log port. The logging parameter must be set to True for this parameter to be available.
- For example, if you select 100, the component sends every 100th output record to its log port.
log_reject (choice, optional)
- This parameter specifies how often the component sends a reject record to its log port. The logging parameter must be set to True for this parameter to be available.
Runtime behavior of FILTER BY EXPRESSION
FILTER BY EXPRESSION perform the following operations :
1. It reads data records from the in port.
- If the use_package parameter is false, applies the expression in the select_expr parameter to each record. It routes records as follows, based on how the expression evaluates:
- For a non-0 value, FILTER BY EXPRESSION writes the record to the out port.
- For 0, FILTER BY EXPRESSION writes the record to the deselect port. If you do not connect a flow to the deselect port, FILTER BY EXPRESSION discards the records.
- For NULL, FILTER BY EXPRESSION writes the record to the reject port and a descriptive error message to the error port.
- If the use_package parameter is true, executes the functions defined in the package:
- If the select function returns 1, the component writes the record to the out port.
- If the select function returns 0, the component writes the record to the deselect port.
2. If output_for_error or make_error is defined, executes them whenever an error event occurs. If log_error is defined and logging of rejects is turned on, executes log_error.
3. FILTER BY EXPRESSION stops execution of the graph according to the reject-threshold parameter. If its value is use limit/ramp, the graph stops when the number of reject events exceeds the result of the following formula:
limit + (ramp * number_of_records_processed_so_far)