Item Property Add
Configuration reference for the Item Property Add Pipes valve and its supported options.
Valve to create or add a new property on one or more existing items.
Control target items with item_include_expr. If not specified property will be added to all items. (see Item)
Configuration
Section titled “Configuration”| Name | Description | Default | Mandatory | Expanded |
|---|---|---|---|---|
name | Name of property to add. | |||
value | Property value. | |||
values | List of properties to add. Configured as a json object. | {} |
Add one property:
{ "name": "ItemPropertyAdd", "config": { "item_include_expr": "item.id.startsWith('tmp_')", "name": "timeStamp", "value": "${utils.now}" }}Add several properties:
{ "name": "ItemPropertyAdd", "config": { "values": { "jwt": "{{{session.jwt}}}", "name": "{{{item.givenName}}}" } }}