MCPcopy Create free account
hub / github.com/apache/nifi-minifi-cpp / add_processor

Function add_processor

nanofi/src/api/nanofi.cpp:573–578  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

571}
572
573processor *add_processor(flow *flow, const char *processor_name) {
574 NULL_CHECK(nullptr, flow, processor_name);
575
576 auto proc = flow->addProcessor(processor_name, processor_name, core::Relationship("success", "description"), flow->hasProcessor());
577 return static_cast<processor*>(proc.get());
578}
579
580int add_failure_callback(flow *flow, void (*onerror_callback)(flow_file_record*)) {
581 return flow->setFailureCallback(onerror_callback) ? 0 : 1;

Callers 3

CAPITests.cppFile · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 4

RelationshipClass · 0.85
hasProcessorMethod · 0.80
addProcessorMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected