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 destination stages. You can use most functions, pipeline constants, and runtime properties in preconditions.
${record:value('/COUNTRY') == 'US'}
Error records include information about failed preconditions in the errorMessage record header attribute. You can also view error messages when viewing recent error records in Monitor mode, while the pipeline is running.