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

Method updateAttribute

extensions/script/ScriptFlowFile.cpp:63–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63bool ScriptFlowFile::updateAttribute(std::string key, std::string value) {
64 if (!flow_file_) {
65 throw std::runtime_error("Access of FlowFile after it has been released");
66 }
67
68 return flow_file_->updateAttribute(std::move(key), std::move(value));
69}
70
71bool ScriptFlowFile::removeAttribute(std::string key) {
72 if (!flow_file_) {

Calls

no outgoing calls

Tested by

no test coverage detected