| 35 | } |
| 36 | |
| 37 | std::string ScriptFlowFile::getAttribute(const std::string &key) { |
| 38 | if (!flow_file_) { |
| 39 | throw std::runtime_error("Access of FlowFile after it has been released"); |
| 40 | } |
| 41 | |
| 42 | std::string value; |
| 43 | flow_file_->getAttribute(key, value); |
| 44 | return value; |
| 45 | } |
| 46 | |
| 47 | bool ScriptFlowFile::addAttribute(const std::string &key, const std::string &value) { |
| 48 | if (!flow_file_) { |
no outgoing calls
no test coverage detected