/** * Inherits the attributes from the given source flow file into another flow * file. The UUID of the source becomes the parent UUID of this flow file. * If a parent uuid had previously been established it will be replaced by * the uuid of the given source * * @param source the FlowFile from which to copy attributes * @param destination the FlowFile to which to copy attributes */ private FlowFile inheritAttributes(final FlowFile source, final FlowFile destination) { if (source == null || destination == null || source == destination) { return destination; // don't need to inherit from ourselves } final FlowFile updated = putAllAttributes(destination, source.getAttributes()); getProvenanceReporter().fork(source, Collections.singletonList(updated)); return updated; }
session.getProvenanceReporter().fork(original, transformedFlowFiles.keySet(), elapsedMillis);
flowFile = FragmentAttributes.copyAttributesToOriginal(session, flowFile, fragmentId, unpacked.size()); session.transfer(flowFile, REL_ORIGINAL); session.getProvenanceReporter().fork(flowFile, unpacked); logger.info("Unpacked {} into {} and transferred to success", new Object[]{flowFile, unpacked}); } catch (final Exception e) {
/** * Inherits the attributes from the given source flow file into another flow * file. The UUID of the source becomes the parent UUID of this flow file. * If a parent uuid had previously been established it will be replaced by * the uuid of the given source * * @param source the FlowFile from which to copy attributes * @param destination the FlowFile to which to copy attributes */ private FlowFile inheritAttributes(final FlowFile source, final FlowFile destination) { if (source == null || destination == null || source == destination) { return destination; // don't need to inherit from ourselves } final FlowFile updated = putAllAttributes(destination, source.getAttributes()); getProvenanceReporter().fork(source, Collections.singletonList(updated)); return updated; }
session.getProvenanceReporter().fork(original, transformedFlowFiles.keySet(), elapsedMillis);
flowFile = FragmentAttributes.copyAttributesToOriginal(session, flowFile, fragmentId, unpacked.size()); session.transfer(flowFile, REL_ORIGINAL); session.getProvenanceReporter().fork(flowFile, unpacked); logger.info("Unpacked {} into {} and transferred to success", new Object[]{flowFile, unpacked}); } catch (final Exception e) {