nifi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Thomsen <mikerthom...@gmail.com>
Subject Re: Read processor property in init()
Date Wed, 28 Mar 2018 13:01:01 GMT
Just do...

@OnScheduled
public void setup(ProcessContext context) {
    //Read properties and do setup.
}

On Wed, Mar 28, 2018 at 8:57 AM, Jeff Zemerick <jzemerick@apache.org> wrote:

> Hi everyone,
>
> Is there a recommended method for making user-configurable property
> values available to a processor's init()? I would like to load a large
> index file but allow the user to specify the index's path. I am
> guessing that init() is executed too early to read user properties.
>
> Thanks for any suggestions.
>
> Jeff
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message