nifi-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Braddy <rbra...@softnas.com>
Subject Re: Run process after getting a file
Date Fri, 25 Sep 2015 23:59:41 GMT
Expression language in ExecuteStreamProcess could be your friend here to use the filename attribute
to set the process arguments.


On Sep 25, 2015, at 6:12 PM, Odin Guillermo Caudillo Gallegos <odin.guillermo@gmail.com<mailto:odin.guillermo@gmail.com>>
wrote:

Great it works, now, is it possible to get like a .txt from the GetFile flow and use it to
execute a java -jar <file from flow> as an input value?

2015-09-25 17:56 GMT-05:00 Odin Guillermo Caudillo Gallegos <odin.guillermo@gmail.com<mailto:odin.guillermo@gmail.com>>:
Ok i'll give it a try

2015-09-25 17:40 GMT-05:00 Rick Braddy <rbraddy@softnas.com<mailto:rbraddy@softnas.com>>:
I think I misread your inquiry.  ExecuteProcess is scheduled only by Timer or Cron schedule
today; however, ExecuteStreamCommand support the "Event" trigger method, which may meet your
needs.

Rick

-----Original Message-----
From: Rick Braddy [mailto:rbraddy@softnas.com<mailto:rbraddy@softnas.com>]
Sent: Friday, September 25, 2015 5:32 PM
To: users@nifi.apache.org<mailto:users@nifi.apache.org>
Subject: Re: Run process after getting a file

Not today.  GetFile must start a flow.

There are discussions underway on a proposal to introduce some new file processors that are
event triggered and dynamically configured (incoming FlowFile contains path to file)

Rick

> On Sep 25, 2015, at 5:28 PM, Odin Guillermo Caudillo Gallegos <odin.guillermo@gmail.com<mailto:odin.guillermo@gmail.com>>
wrote:
>
> Hi, is it possible to run the ExecuteProcess after using GetFile? The idea is to not
use the scheduling feature but trigger it with GetFile.
>
> Thanks



Mime
View raw message