Github user phrocker commented on a diff in the pull request:
https://github.com/apache/nifi-minifi-cpp/pull/417#discussion_r225500703
--- Diff: libminifi/src/capi/api.cpp ---
@@ -361,6 +396,18 @@ processor *add_processor(flow *flow, const char
*processor_name) {
}
return nullptr;
}
+
+processor *add_processor_with_linkage(flow *flow, const char
*processor_name) {
+ ExecutionPlan *plan = static_cast<ExecutionPlan*>(flow->plan);
+ auto proc = plan->addProcessor(processor_name, processor_name,
core::Relationship("success", "description"), true);
--- End diff --
Do you think it's better to avoid a linkage function and make the default
plan variant of link to previous be true? I believe we may have discussed
wanting to run processors independently -- that's not something I want to
inhibit, but then a function of create_processor would be used versus
add_processor, whose nomenclature implies that it's being added to the flow.
---