nifi-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Koji Kawamura <>
Subject Re: execute process
Date Thu, 23 May 2019 00:30:25 GMT

Which version of NiFi are you using?
The relationship "nonzero status" is available since 1.5.0.
NIFI-4559: ExecuteStreamCommand should have a failure relationship

I hope you can try that.


On Wed, May 22, 2019 at 11:15 PM Michael Di Domenico
<> wrote:
> i'm a little confused over running external commands on flowfiles.
> what i want to do is pick up a file from the filesystem (getfile) and
> virus scan it.  based on the results of the virus scan (pass/fail) i
> want to move the file to a different directory.
> is this possible?  i looked at the executeprocess/script processors,
> but none of them seem to do that.  the executestream seemed close, but
> doesn't seem to have success/fail based on the exit code of the
> process.  in fact my process failed to run and the processor still
> "succeed" which is not what i want.
> i think what i want is a "routeonattribute" after the "executestream".
> but before i go down that road in the documentation i wanted to just
> check and see if there were any other ideas.

View raw message