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

Method transfer

extensions/script/python/PyProcessSession.cpp:55–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55void PyProcessSession::transfer(std::shared_ptr<script::ScriptFlowFile> script_flow_file,
56 core::Relationship relationship) {
57 if (!session_) {
58 throw std::runtime_error("Access of ProcessSession after it has been released");
59 }
60
61 auto flow_file = script_flow_file->getFlowFile();
62
63 if (!flow_file) {
64 throw std::runtime_error("Access of FlowFile after it has been released");
65 }
66
67 session_->transfer(flow_file, relationship);
68}
69
70void PyProcessSession::read(std::shared_ptr<script::ScriptFlowFile> script_flow_file,
71 py::object input_stream_callback) {

Callers

nothing calls this directly

Calls 1

getFlowFileMethod · 0.80

Tested by

no test coverage detected