You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@nifi.apache.org by Jairo Henao <ja...@gmail.com> on 2020/05/01 14:30:31 UTC
Extract the validation details in ValidateRecord
Hi all,
Is there a way to copy into an attribute the details of a validation when
it fails using a ValidateRecord?
The only thing I find is related to reporting tasks, which involve a series
of extra steps.
The only thing I need is to prepare an email with the details of the
failure.
Thanks,
Re: Extract the validation details in ValidateRecord
Posted by Jairo Henao <ja...@gmail.com>.
Thanks Cris,
It would be great if the ValidateRecord had a configuration parameter where
you define the name of the attribute to save the details.
On Fri, May 1, 2020 at 10:12 AM Chris Sampson <ch...@naimuri.com>
wrote:
> Unfortunately, that's the only way currently with the existing
> ValidateRecord processor - the details are added to the ROUTE Provenance
> Event, which you can query via the REST API or (generally better) export
> via the Site-to-Site Reporting Task.
>
> There was an PR opened a while back to make a change but it went stale
> after comments were made. I know because we wanted to do the same thing for
> our own project, so I made some customisations for our project directly
> (effectively using parts of the aforementioned PRs, accepting the issues
> raised in the PR comments).
>
>
> *Chris Sampson*
> IT Consultant
> chris.sampson@naimuri.com
>
>
>
> On Fri, 1 May 2020 at 15:30, Jairo Henao <ja...@gmail.com>
> wrote:
>
>> Hi all,
>>
>> Is there a way to copy into an attribute the details of a validation when
>> it fails using a ValidateRecord?
>>
>> The only thing I find is related to reporting tasks, which involve a
>> series of extra steps.
>>
>> The only thing I need is to prepare an email with the details of the
>> failure.
>>
>> Thanks,
>>
>>
>>
--
Saludos
Jairo Henao
*Chat Skype: jairo.henao.05*
Re: Extract the validation details in ValidateRecord
Posted by Chris Sampson <ch...@naimuri.com>.
Unfortunately, that's the only way currently with the existing
ValidateRecord processor - the details are added to the ROUTE Provenance
Event, which you can query via the REST API or (generally better) export
via the Site-to-Site Reporting Task.
There was an PR opened a while back to make a change but it went stale
after comments were made. I know because we wanted to do the same thing for
our own project, so I made some customisations for our project directly
(effectively using parts of the aforementioned PRs, accepting the issues
raised in the PR comments).
*Chris Sampson*
IT Consultant
chris.sampson@naimuri.com
On Fri, 1 May 2020 at 15:30, Jairo Henao <ja...@gmail.com> wrote:
> Hi all,
>
> Is there a way to copy into an attribute the details of a validation when
> it fails using a ValidateRecord?
>
> The only thing I find is related to reporting tasks, which involve a
> series of extra steps.
>
> The only thing I need is to prepare an email with the details of the
> failure.
>
> Thanks,
>
>
>