Lehel44 commented on code in PR #7019: URL: https://github.com/apache/nifi/pull/7019#discussion_r1165964062
########## nifi-nar-bundles/nifi-salesforce-bundle/nifi-salesforce-processors/src/main/java/org/apache/nifi/processors/salesforce/QuerySalesforceObject.java: ########## @@ -560,6 +566,27 @@ private SalesforceSchemaHolder getConvertedSalesforceSchema(String sObject, Stri } } + private void handleError(ProcessSession session, FlowFile originalFlowFile, AtomicBoolean isOriginalTransferred, List<FlowFile> outgoingFlowFiles, + Exception e, String errorMessage) { + if (originalFlowFile != null) { + session.transfer(originalFlowFile, REL_FAILURE); + isOriginalTransferred.set(true); + } + getLogger().error(errorMessage, e); + session.remove(outgoingFlowFiles); + outgoingFlowFiles.clear(); + } + + private StateMap getState(ProcessContext context) { + StateMap state; + try { + state = context.getStateManager().getState(Scope.CLUSTER); Review Comment: I agree but there's a different JIRA for that. -- 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. To unsubscribe, e-mail: issues-unsubscr...@nifi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org