| 90 | } |
| 91 | |
| 92 | Expression make_dynamic_attr(const std::string &attribute_id) { |
| 93 | return make_dynamic([attribute_id](const Parameters ¶ms, const std::vector<Expression>& /*sub_exprs*/) -> Value { |
| 94 | |
| 95 | std::string result; |
| 96 | const auto cur_flow_file = params.flow_file.lock(); |
| 97 | if (cur_flow_file && cur_flow_file->getAttribute(attribute_id, result)) { |
| 98 | return Value(result); |
| 99 | } else { |
| 100 | auto registry = params.registry_.lock(); |
| 101 | if (registry && registry->getConfigurationProperty(attribute_id , result)) { |
| 102 | return Value(result); |
| 103 | } |
| 104 | } |
| 105 | return Value(); |
| 106 | }); |
| 107 | } |
| 108 | |
| 109 | Value resolve_user_id(const std::vector<Value> &args) { |
| 110 | std::string name; |
nothing calls this directly
no test coverage detected