| 94 | } |
| 95 | |
| 96 | std::shared_ptr<script::ScriptFlowFile> LuaProcessSession::create() { |
| 97 | if (!session_) { |
| 98 | throw std::runtime_error("Access of ProcessSession after it has been released"); |
| 99 | } |
| 100 | |
| 101 | auto result = std::make_shared<script::ScriptFlowFile>(session_->create()); |
| 102 | flow_files_.push_back(result); |
| 103 | return result; |
| 104 | } |
| 105 | |
| 106 | std::shared_ptr<script::ScriptFlowFile> LuaProcessSession::create(const std::shared_ptr<script::ScriptFlowFile> &flow_file) { |
| 107 | if (!session_) { |