Item Property Copy
Last updated
Last updated
Valve for copying item properties. The operation is performed on one item at a time and does not support copying between items.
Use item_include_expr
to control which items are processed (see ).
src
Property to copy from.
dest
Property to copy to.
replace
Replace destination. If true existing value of dest will be replaced with new values (overwritten), otherwise new values will be added.
false
filter
Include value predicate. Expression controlling if a value should be copied or not. If not specified, all values are copied. For more information see below.
Predicate expression that determines whether a value should be copied. The expression is written in JavaScript and must return true
(to copy the value) or false
(to skip it).
The following scopes are available:
value
The current value
"value.startsWith('__')"
item
The current item
"item.id === 'tmp'"
session
The current session
"session.addProp === true"
state
The current pipe state
"state.itemComplete === false"
request
The current pipe (NOT HTTP) request. Contains all parameters sent to the pipe.
"request.username != null"
items
The current set of items
"items.size > 1"
exports
The current exported (from authenticators or other valves) properties
"!exports.done"