Hi Krzysztof,
Currently, NiFi variables cannot refer other variables. But you may be
able to achieve the expected result if you combine multiple variables
within a single Expression Language.
For example, if the "scratch_path" is the one you need to use at
ListFile processor's "Input directory", then you can set an EL there:
- Variables
-- env=staging
-- scratch_path=scratch
- ListFile Input directory = /${env}/${scratch_path}
Having said that, I agree with you, referring other variable
capability would be nice to have.
Please feel free to file a JIRA.
https://issues.apache.org/jira/projects/NIFI
Thanks,
Koji
On Tue, Nov 6, 2018 at 8:01 PM Krzysztof Zarzycki <[email protected]> wrote:
>
> Hi community,
> I'm using Nifi Variable Registry (through UI). I would like to define one
> variable using value from other variable, like:
> env = staging
> scratch_path=/${env}/scratch
>
> I tried exactly that approach, but it didn't work, the variable scratch_path
> gets value literally /${env}/scratch.
>
> Do you know if it should or should not be possible? Maybe it's a good idea
> for a feature request?
>
> Thanks,
> Krzysztof