相关文章推荐
个性的小马驹  ·  python ...·  1 年前    · 
瘦瘦的熊猫  ·  python 双指针法_python ...·  1 年前    · 
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

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

What are you trying to do with that expression? There's no function in between. If you meant ${Sensor_value:equals(${Sensor_value})} that should always be true. Do you mean that if RouteOnAttribute "sees" a new value for Sensor_value then it adds a new relationship? That isn't possible as the dynamic properties must be defined (and populated) before the processor is started. – mattyb Jan 31, 2020 at 3:27 Not while the processor is running, you'd have to stop it, update the property values, and restart – mattyb Feb 3, 2020 at 17:30

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.