nifi-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Geercken" <uwe.geerc...@web.de>
Subject Aw: Re: Re: nifi 1.4 - variables
Date Wed, 04 Oct 2017 15:45:15 GMT
<html><head></head><body><div style="font-family: Verdana;font-size:
12.0px;"><div>&nbsp;
<div>
<div>cool. I will check.</div>

<div>&nbsp;</div>

<div>I really like this - to get rid of the hardcoding of paths e.g.</div>

<div>&nbsp;</div>

<div>Nifi gets better and better.</div>

<div>&nbsp;</div>

<div>Rgds,</div>

<div>&nbsp;</div>

<div>Uwe</div>

<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px
solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b>&nbsp;Mittwoch, 04.
Oktober 2017 um 17:39 Uhr<br/>
<b>Von:</b>&nbsp;&quot;Bryan Bende&quot; &lt;bbende@gmail.com&gt;<br/>
<b>An:</b>&nbsp;users@nifi.apache.org<br/>
<b>Betreff:</b>&nbsp;Re: Re: nifi 1.4 - variables</div>

<div name="quoted-content">Thanks!<br/>
<br/>
There is a JIRA to add additional documentation to the user guide [1].<br/>
For the previously existing capabilities with the properties file,<br/>
there is some mention in the admin guide [2].<br/>
<br/>
The variables work in a hierarchical manner, meaning if a variable<br/>
&quot;foo&quot; is declared at the root group and also declared inside a process<br/>
group, components inside the process group will use the value of &quot;foo&quot;<br/>
from within the process group.<br/>
<br/>
If you test this out, the UI should indicate which one is being<br/>
used... In the above example, if you looked at the variables from<br/>
within the process group, you should see &quot;foo&quot; listed twice, but the<br/>
one from the root group would have a line through it indicating that<br/>
it is being overridden.<br/>
<br/>
-Bryan<br/>
<br/>
[1] <a href="https://issues.apache.org/jira/browse/NIFI-4462" target="_blank">https://issues.apache.org/jira/browse/NIFI-4462</a><br/>
[2] <a href="https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#custom_properties"
target="_blank">https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#custom_properties</a><br/>
<br/>
<br/>
On Wed, Oct 4, 2017 at 11:26 AM, Uwe Geercken &lt;uwe.geercken@web.de&gt; wrote:<br/>
&gt; thank you Bryan.<br/>
&gt;<br/>
&gt; is there documentation around for the variables?<br/>
&gt;<br/>
&gt; If I add variables to the processor group and I want to reference a variable<br/>
&gt; of the parent flow, will I have to add the scope somehow like<br/>
&gt; &#36;{scope.variable}?<br/>
&gt;<br/>
&gt; If I have variables in different hierarchies of the flow with the same name,<br/>
&gt; which one will be used?<br/>
&gt;<br/>
&gt;<br/>
&gt; P.S. I really like your blog :-)<br/>
&gt;<br/>
&gt; Rgds,<br/>
&gt;<br/>
&gt; Uwe<br/>
&gt;<br/>
&gt;<br/>
&gt; Gesendet: Mittwoch, 04. Oktober 2017 um 16:40 Uhr<br/>
&gt; Von: &quot;Bryan Bende&quot; &lt;bbende@gmail.com&gt;<br/>
&gt; An: users@nifi.apache.org<br/>
&gt; Betreff: Re: nifi 1.4 - variables<br/>
&gt; Hello,<br/>
&gt;<br/>
&gt; You can use them in any fields that support expression language, just<br/>
&gt; like variables in a properties file<br/>
&gt; (nifi.variable.registry.properties= in nifi.properties) or system<br/>
&gt; properties in bootstrap.conf.<br/>
&gt;<br/>
&gt; In the properties file approach you had to restart NiFi for any<br/>
&gt; changes in the properties to be picked up.<br/>
&gt;<br/>
&gt; In the new approach you no longer need to restart anything yourself,<br/>
&gt; it will be handled for you.<br/>
&gt;<br/>
&gt; -Bryan<br/>
&gt;<br/>
&gt; On Wed, Oct 4, 2017 at 8:20 AM, Uwe Geercken &lt;uwe.geercken@web.de&gt;
wrote:<br/>
&gt;&gt; Hello,<br/>
&gt;&gt;<br/>
&gt;&gt; in 1.4 when you right-click the processor group then there is an entry<br/>
&gt;&gt; &quot;variables&quot;. I have defined some, but I wonder how I can
use them.<br/>
&gt;&gt;<br/>
&gt;&gt; I have not found documentation on this. Does somebody have details or a<br/>
&gt;&gt; link to documentation or an example?<br/>
&gt;&gt;<br/>
&gt;&gt; Rgds,<br/>
&gt;&gt;<br/>
&gt;&gt; Uwe</div>
</div>
</div>
</div></div></body></html>

Mime
View raw message