nifi-users mailing list archives

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

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
https://issues.apache.org/jira/browse/NIFI-4559

I hope you can try that.

Thanks,
Koji

On Wed, May 22, 2019 at 11:15 PM Michael Di Domenico
<mdidomenico4@gmail.com> 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.

Mime
View raw message