martinzink commented on code in PR #2166:
URL: https://github.com/apache/nifi-minifi-cpp/pull/2166#discussion_r3186726912
##########
libminifi/src/minifi-c.cpp:
##########
@@ -435,6 +435,18 @@ MINIFI_OWNED MinifiFlowFile*
MinifiProcessSessionCreate(MinifiProcessSession* se
return MINIFI_NULL;
}
+MinifiStatus MinifiProcessSessionPenalize(MinifiProcessSession* session,
MinifiFlowFile* flowfile) {
+ gsl_Assert(session != MINIFI_NULL);
+ gsl_Assert(flowfile != MINIFI_NULL);
+ try {
+ reinterpret_cast<minifi::core::ProcessSession*>(session)->penalize(
+ *reinterpret_cast<std::shared_ptr<minifi::core::FlowFile>*>(flowfile));
Review Comment:
we cant do dynamic casts because its not polymorphic here, but
@adamdebreceni had a great idea which can be helpful
https://issues.apache.org/jira/browse/MINIFICPP-2805
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]