| 53 | } |
| 54 | |
| 55 | void 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 | |
| 70 | void PyProcessSession::read(std::shared_ptr<script::ScriptFlowFile> script_flow_file, |
| 71 | py::object input_stream_callback) { |
nothing calls this directly
no test coverage detected