In Apache NiFi, can I evaluate expression language without an attribute?
问题 For instance, in a custom processor I may wish to evaluate simply the expression in the String "${UUID()}" (just as an example). I don't want to expose an attribute to the user, I just want to evaluate the expression. Can I do that? 回答1: in a custom processor (or script processor) import org.apache.nifi.components.PropertyValue; ... String expression = "${UUID()}"; PropertyValue myValue = context.newPropertyValue( expression ); in this case it's enough to call this to evaluate expression