You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by GitBox <gi...@apache.org> on 2019/12/13 18:19:32 UTC

[GitHub] [nifi] m-hogue commented on a change in pull request #3930: NIFI-6851: Added FlowFileAcquisitionMethod to fetch/receive methods i…

m-hogue commented on a change in pull request #3930: NIFI-6851: Added FlowFileAcquisitionMethod to fetch/receive methods i…
URL: https://github.com/apache/nifi/pull/3930#discussion_r357770870
 
 

 ##########
 File path: nifi-nar-bundles/nifi-provenance-repository-bundle/nifi-persistent-provenance-repository/src/main/java/org/apache/nifi/provenance/schema/LookupTableEventRecord.java
 ##########
 @@ -278,6 +281,17 @@ public static StandardProvenanceEventRecord getEvent(final Record record, final
         }
         builder.setEventType(eventType);
 
+        // Determine acquisition method
+        final Integer flowFileAcquisitionOrdinal = (Integer) record.getFieldValue(EventFieldNames.FLOW_FILE_ACQUISITION_METHOD);
 
 Review comment:
   Ah, I did see this approach with the `ProvenanceEventType` enumeration, but i suppose it is possible for ordinals to change over time. You're right. I'll update the PR so that the approach is consistent with serialization of `ProvenanceEventType` in the events. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services