UpdateAttribute 2025.10.2.19¶
捆绑包¶
org.apache.nifi | nifi-update-attribute-nar
描述¶
使用属性表达式语言更新一个 FlowFile 的属性和/或根据正则表达式删除属性
输入要求¶
REQUIRED
支持敏感的动态属性¶
false
属性¶
属性 |
描述 |
|---|---|
删除属性表达式 |
Regular expression for attributes to be deleted from FlowFiles. Existing attributes that match will be deleted regardless of whether they are updated by this processor. |
有状态变量初始值 |
如果使用状态来设置/引用变量,则此值用于设置有状态变量的初始值。仅当状态不包含变量值时,才会在 @OnScheduled 方法中使用此方法。如果采用有状态的方式运行,则此属性为必填,但如果需要,也可以为空。 |
存储状态 |
Select whether or not state will be stored. Selecting 'Stateless' will offer the default functionality of purely updating the attributes on a FlowFile in a stateless manner. Selecting a stateful option will not only store the attributes on the FlowFile but also in the Processors state. See the 'Stateful Usage' topic of the 'Additional Details'section of this processor's documentation for more information |
canonical-value-lookup-cache-size |
指定缓存中应存储多少规范查找值 |
状态管理¶
范围 |
描述 |
|---|---|
LOCAL |
提供选项,不仅将值存储在 FlowFile 上,还会存储为有状态变量,以便以递归方式引用。 |
关系¶
名称 |
描述 |
|---|---|
success |
所有成功的 FlowFiles 都将路由到此关系 |
写入属性¶
名称 |
描述 |
|---|---|
查看更多详细信息 |
该处理器可以写入或移除零个或多个属性,如更多详细信息中所述 |
用例¶
添加新 FlowFile 属性 |
用新值覆盖 FlowFile 属性 |
重命名文件 |