Github user mattyb149 commented on a diff in the pull request:
https://github.com/apache/nifi/pull/2056#discussion_r133019133
--- Diff:
nifi-nar-bundles/nifi-extension-utils/nifi-processor-utils/src/main/java/org/apache/nifi/processor/util/bin/Bin.java
---
@@ -173,4 +174,19 @@ public long getBinAge() {
final long ageInNanos = System.nanoTime() - creationMomentEpochNs;
return TimeUnit.MILLISECONDS.convert(ageInNanos,
TimeUnit.NANOSECONDS);
}
+
+ /**
+ * @return the UUID of the flow file generated by the merge of this
bin's content
+ */
+ public String getUuid() {
+ return uuid;
+ }
+
+ /**
+ * Set the UUID of the flow file generated by the merge of this bin's
content
+ * @param uuid UUID to set
+ */
+ public void setUuid(String uuid) {
--- End diff --
Is this the only place the association can be done? Would be nicer if the
UUID could be added at transfer time rather than extending the Bin API.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---