Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using derived attributes in same processor in Apache Nifi

Tags:

apache-nifi

I am adding two attributes in update attribute in which one depends on the other.
For example: say I create an attribute a = "Hello" and another attribute b=${a}.
Then the value of "b" is set to an empty string.
Is there any way in Nifi to use the value of "a" in the same processor or do I always need to create a new processor to use it?

like image 574
Sarvesh Mahajan Avatar asked Feb 16 '26 21:02

Sarvesh Mahajan


1 Answers

Currently each UpdateAttribute property is evaluated independently of every other configured property (on the same processor). So in order to use "a" to create another property "b", you'd need to add a second UpdateAttribute processor.

like image 115
JDP10101 Avatar answered Feb 21 '26 01:02

JDP10101



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!