Skip to content

Tag: apache-nifi

Use pattern in getAttribute in NiFi

How can I use a pattern in getAttribute of a FlowFile? I’m going to write a processor that receives flowfiles from ListenTCP and ListenUDP processors. ListenTCP has tcp.sender property and ListenUDP has udp.sender property. How can I get the sender property of a FlowFile? The current solution is: How can I avoid using if? I need something like this: Answer