Dropping unwanted records
You can drop records from the flow at each stage by defining required fields or preconditions for a record to enter a stage.
Required fields
A required field is a field that must exist in a record to allow it into the stage for processing. When a record does not include all required fields, it is processed based on the error handling configured for the flow. You can define required fields for any processor, executor, and most target stages.
Configure required fields as part of the overall flow logic or to minimize processing
errors. For example, if a Field Hasher processor encodes social security data in the
SSN field. To ensure all records include social security numbers, you can
make SSN a required field for the stage.
Preconditions
Preconditions are conditions that a record must satisfy to enter the stage for processing. Stages process all preconditions before passing a record to the stage or to error handling. When a record does not meet all configured preconditions, it is processed based on the error handling configured for the stage.
You can define preconditions for any processor, executor, and most target stages. You can use most functions, flow constants, and runtime properties in preconditions.
${record:value('/COUNTRY') == 'US'}Error records include information about failed preconditions in the errorMessage record header attribute.