Providing provenance fork event for the created segments generated by SplitJson.

This commit is contained in:
Aldrin Piri 2015-02-28 16:04:43 -05:00
parent 6a89745ec8
commit 57aa5dd63f
1 changed files with 2 additions and 0 deletions

View File

@ -138,6 +138,8 @@ public class SplitJson extends AbstractJsonPathProcessor {
segments.add(split);
}
processSession.getProvenanceReporter().fork(original, segments);
processSession.transfer(segments, REL_SPLIT);
processSession.transfer(original, REL_ORIGINAL);
logger.info("Split {} into {} FlowFiles", new Object[]{original, segments.size()});