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

Method getAttribute

extensions/script/ScriptFlowFile.cpp:37–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37std::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
47bool ScriptFlowFile::addAttribute(const std::string &key, const std::string &value) {
48 if (!flow_file_) {

Callers 15

onFrameMethod · 0.45
make_dynamic_attrFunction · 0.45
make_allAttributesFunction · 0.45
make_anyAttributeFunction · 0.45
onTriggerFunction · 0.45
onTriggerMethod · 0.45
onTriggerMethod · 0.45
OPCData2FlowFileMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected