| 45 | } |
| 46 | |
| 47 | bool ScriptFlowFile::addAttribute(const std::string &key, const std::string &value) { |
| 48 | if (!flow_file_) { |
| 49 | throw std::runtime_error("Access of FlowFile after it has been released"); |
| 50 | } |
| 51 | |
| 52 | return flow_file_->addAttribute(key, value); |
| 53 | } |
| 54 | |
| 55 | bool ScriptFlowFile::setAttribute(const std::string &key, const std::string &value) { |
| 56 | if (!flow_file_) { |
no outgoing calls