Reputation: 3
I need help in dynamically updating the RouteonAttribute processor properties using Nifi.
For example, if I send Sensor_value:50
the RouteonAttribute must automatically set a property like
${Sensor_value:equals(50)}
Can you guys help me?
Thank you guys
Upvotes: 0
Views: 7609
Reputation: 12103
You'll need to add a dynamic property with the name of your desired relationship and the Expression Language expression ${Sensor_value:equals(50)}
as the value of that property. The User Guide has an example of how to do this.
Upvotes: 1