Configure OR condition in DataFlow filter while processing Kafka messages

Hello everyone,

I am consuming messages from a Kafka topic and applying a filter in my dataflow to process only specific incoming messages.

I want to configure an OR condition in the dataflow filter criteria, but I do not see an OR option available in the filter settings.

I have attempted to implement the OR logic using a “when” condition, but it has not worked as expected.

Any guidance or suggestions on how to achieve this would be greatly appreciated.

Pega Version: PRPC-8.7.6

Thank you!

@AnandrajT7685

Please check with @pxIsInListOfValues(.eventType,“start,end”). This function will return true if property values match any one value in comparing comma separated values. Attached screenshot for reference.

@AnandrajT7685 In a Data Flow Filter, multiple rows behave like AND, so you won’t see an OR toggle. The easiest way to do OR is to make a single condition that returns true when the incoming property matches any allowed value. In Pega 8.7, you can use the built-in function @pxIsInListOfValues(.eventType,"start,end") which checks if .eventType matches any value in that comma-separated list. Replace .eventType with your property name and update the list with all values you want to allow (for example start,end,update). Use this function directly in the filter condition (or call it from a When rule) and keep the record only when it evaluates to true. Then preview the Data Flow shape to confirm only the matching Kafka messages pass through.