GitHub user martin-mucha opened a pull request:
https://github.com/apache/nifi/pull/2425
Emit failures array
2 patches:
1st is proposal on small refactoring of ValidateRecord, which should
significantly simplify inner structure
2nd is introduction of new property; if set, array of validation errors
will be stored in FlowFile attribute named accordingly to new property value.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/martin-mucha/nifi emitFailuresArray
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/nifi/pull/2425.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #2425
----
commit cc62bd8d743496932c1fec71ed973378b4ed27b4
Author: Martin Mucha <alfonz19@...>
Date: 2018-01-22T10:59:01Z
NIFI-4745: validate record refactoring
all potential future expansion of this class is made pointlessly
harder, due to its questionable structure, therefore I decided to
provide refactor of it
Signed-off-by: Martin Mucha <[email protected]>
commit 548c1fe6d88dfd72a487a48e998f4eea1da57220
Author: Martin Mucha <alfonz19@...>
Date: 2018-01-23T08:03:21Z
NIFI-4745: new property to store validation errors
added new property. If set, array of failures will be stored into
attribute named according to value of this property
Signed-off-by: Martin Mucha <[email protected]>
----
---