nifi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Burgess <mattyb...@gmail.com>
Subject Re: Posting a bulletin from a script in ExecuteScript
Date Tue, 30 Aug 2016 13:30:05 GMT
Jake,

log.error("My error message") should cause a bulletin to be posted. If
you have an exception you can pass that in as a second parameter, the
stack trace will be logged (not in the bulletin but in the
logs/nifi-app.log file).


Regards,
Matt

On Tue, Aug 30, 2016 at 9:24 AM, Jake Kugel
<jake_kugel@yahoo.com.invalid> wrote:
> Hello,
>
> I've created a Python script to process flowfiles within an ExecuteScript
> processor following the good example from here:
>
> http://funnifi.blogspot.com/2016/03/executescript-json-to-json-revisited.html
>
> I'm curious if it is possible for my script to post a bulletin to the
> ExecuteScript processor in the event of an error.  Is it possible for a
> script within ExecuteScript to post a bulletin, or are bulletin only
> intended for the nifi framework itself to display errors?
>
> Thank you,
> Jake
>

Mime
View raw message