bakaid commented on a change in pull request #718: MINIFICPP-1132 - CWEL should 
stop committing further flowfiles in cas…
URL: https://github.com/apache/nifi-minifi-cpp/pull/718#discussion_r372912092
 
 

 ##########
 File path: libminifi/src/core/ProcessSession.cpp
 ##########
 @@ -965,6 +965,18 @@ std::shared_ptr<core::FlowFile> ProcessSession::get() {
   return NULL;
 }
 
+bool ProcessSession::outgoingConnectionsFull(const std::string& relationship) {
+  std::set<std::shared_ptr<Connectable>> connections = 
process_context_->getProcessorNode()->getOutGoingConnections(relationship);
+  Connection * connection = nullptr;
+  for (const auto& conn : connections) {
+    connection = dynamic_cast<Connection*>(conn.get());
 
 Review comment:
   I like the defensiveness of checking whether this is nullptr, and I want to 
keep it this way, but I am just curious: what can these Connectables be in this 
case other than Connections?

----------------------------------------------------------------
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]


With regards,
Apache Git Services

Reply via email to