I receive and load a templated text content from external application with placeholder like below to a flowFile attribute, called app_template:
Hello ${firstname} ${lastname},
thanks for contacting ${repname} and ${company}.
the placeholder in the template needs to be replaced with NiFi attributes, initialized upstream and these attributes are not pre-defined upfront. Basically, that template can contain any attribute names.
Is it possible to evaluate that template and resolve attributes so NiFi will substitute ${firstname} and ${lastname} with corresponding attribute values without using replace string functions?
Something as simple as ${app_template:evaluateAttributes()}...
Thanks!
Hello ${firstname} ${lastname}
should work. where is the problem? - daggett