simonbence commented on a change in pull request #4824:
URL: https://github.com/apache/nifi/pull/4824#discussion_r585660958
##########
File path:
nifi-nar-bundles/nifi-splunk-bundle/nifi-splunk-processors/src/main/java/org/apache/nifi/processors/splunk/QuerySplunkIndexingStatus.java
##########
@@ -234,4 +244,18 @@ private String generateContent(final Map<Long, FlowFile>
undetermined) throws IO
return Optional.empty();
}
}
+
+ private static boolean isAlreadyChecked(FlowFile flowFile) {
+ return extractBoolean(flowFile.getAttribute(ACK_CHECKED_ATTRIBUTE));
+ }
+
+ private static boolean extractBoolean(final String value) {
+ return Boolean.parseBoolean(value);
+ }
+
+ private void setAckCheckedToTrue(final ProcessSession session, final
FlowFile flowFile) {
+ final Map<String, String> attributes = new
HashMap<>(flowFile.getAttributes());
+ attributes.put(ACK_CHECKED_ATTRIBUTE, String.valueOf(Boolean.TRUE));
+ session.putAllAttributes(flowFile, attributes);
Review comment:
You are correct, FFs are immutable by design.
----------------------------------------------------------------
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:
[email protected]