I'm not sure if this helps, but you mentioned not being able to use
the variable.registry because it requires a restart.

That is true for the file-based variable registry, however it is not
true for the UI-based variable registry [1].

Keep in mind that neither of the variable registries are really
intended to store sensitive values like your DB password, but since
you are already seemed ok with putting your password unencrypted into
the file-based variable registry, it wouldn't be much different
putting it unencrypted into the UI-based variable registry.

[1] https://nifi.apache.org/docs/nifi-docs/html/user-guide.html#Variables_Window

On Mon, Apr 23, 2018 at 7:41 AM, Mike Thomsen <mikerthom...@gmail.com> wrote:
> Rishab,
>
>> Also, is there a way where we can postpone the evaluation of expression
> language used til the processor starts running?
>
> No because the controller service is a dependency of the processor and
> evaluating the expression language in the CS property descriptors must be
> done when enabling the controller service to satisfy the aforementioned
> dependency.
>
> Thanks,
>
> Mike
>
> On Mon, Apr 23, 2018 at 7:31 AM rishabprasad005 <rishabprasad...@gmail.com>
> wrote:
>
>> Hi,
>>
>> Thanks for the reply. From the above replies I understand that the flowfile
>> attributes were not available by the DBCPConnectionPool service because the
>> expression langugage used by me were evaluated at the time of service
>> enable. Thus, the service is starting before any other processor used in
>> the
>> flow and at the time of service enable the file containing the properties
>> has not been read by the GetFile processor, and hence the expression
>> language doesn't even have the content to extract from.
>>
>> So basically, the connection to the database is being established even
>> before the processors have started to run. So my question here is, why does
>> Nifi establishes the connection even before any other processor starts
>> running. Also, is there a way where we can postpone the evaluation of
>> expression language used til the processor starts running? If we can do
>> that, we can certainly make the flowfile attributes available to the
>> controller service. Ultimately, I am looking for a way where we can make
>> the
>> flowfile attributes available to the controller services. (I know we can
>> achieve that using 'variable.registry' but every time their is change in
>> the
>> file, it requires a restart. I need to avoid the restart)
>>
>>
>>
>> --
>> Sent from: http://apache-nifi-developer-list.39713.n7.nabble.com/
>>

Reply via email to