Dave,

Both options are possible, though note the scripting processors use
Jython not Python, so hopefully the scripts would work but might need
a little refactor.

The first option is probably best solved with the ExecuteScript
processor, the second is probably best solved with
InvokeScriptedProcessor. I have examples of similar use cases and of
using Jython on my blog:

http://funnifi.blogspot.com/

Regards,
Matt

On Mon, Jul 18, 2016 at 12:30 PM, DAVID SMITH
<[email protected]> wrote:
> Hi
>
> I have a question from a colleague who is using nifi 0.5.1, he has some files 
> coming in which he needs to break up into 3 constituent parts.
> He has a python script which should do this but what he wants to know is can 
> he either
>
> 1)   send all three parts down one relationship as three separate flowfiles, 
> from his python script, or
> 2) can he create three relationships from within his python script, to send a 
> flowfile down each?
>
> Does anyone have any examples of doing either option or can advise how to do 
> this.
>
> Many thanks
> Dave
>
> Sent from Yahoo! Mail on Android
>

Reply via email to