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

Function transfer_to_relationship

nanofi/src/api/nanofi.cpp:780–787  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

778}
779
780int transfer_to_relationship(flow_file_record * ffr, processor_session * ps, const char * relationship) {
781 if(ffr == nullptr || ffr->ffp == nullptr || ps == nullptr || relationship == nullptr || strlen(relationship) == 0) {
782 return -1;
783 }
784 auto ff_sptr = reinterpret_cast<std::shared_ptr<core::FlowFile>*>(ffr->ffp);
785 ps->transfer(*ff_sptr, core::Relationship(relationship, "desc"));
786 return 0;
787}

Callers 2

custom_ontrigger_logicFunction · 0.85
custom_processor_logicFunction · 0.85

Calls 2

RelationshipClass · 0.85
transferMethod · 0.45

Tested by 1

custom_ontrigger_logicFunction · 0.68