Support Article
Declarative rules are not triggered on running Real Time events
Summary
Declare trigger and Declare expressions do not work. User has Kafka and messages are focused on a few topics. The messages are picked by Real Time events and processed through the activity in the destination of the data flow. The message structure is JSON. However, the Declare rules are not triggered when the Real Time events run. When the user runs the activity manually and passes the same message, the declare rules are triggered successfully.
Error Messages
Not Applicable
Steps to Reproduce
- Create a Kafka topic
- Add data flows for Real Time events
- Configure a data flow that processes the message from Kafka
Root Cause
This behavior is as per the Pega product design : multi-thread environments.
Resolution
Here’s the explanation for the reported behavior:
Data flows do not support Declare expressions. When an activity is being run in the data flow context, the inference engine is disabled ( this is the one responsible for triggering the Declare expressions).
Published December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.