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

Method get

extensions/script/python/PyProcessSession.cpp:38–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38std::shared_ptr<script::ScriptFlowFile> PyProcessSession::get() {
39 if (!session_) {
40 throw std::runtime_error("Access of ProcessSession after it has been released");
41 }
42
43 auto flow_file = session_->get();
44
45 if (flow_file == nullptr) {
46 return nullptr;
47 }
48
49 auto result = std::make_shared<script::ScriptFlowFile>(flow_file);
50 flow_files_.push_back(result);
51
52 return result;
53}
54
55void PyProcessSession::transfer(std::shared_ptr<script::ScriptFlowFile> script_flow_file,
56 core::Relationship relationship) {

Callers 3

configureMethod · 0.45
getScriptEngineMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected