Item
The Flow Items valves
Introduction
The Flow Items API defines how to create, remove and iterate over uniquely identified objects stored in the currently executing Flow's state called items.
Valves that support item iteration is executed on each item surviving item filtering.
Common configuration
These configuration properties applies to all valves that support item iteration
Name | Description |
---|---|
| Predicate expression for controlling if an item should be included in iteration ("item filtering"). |
Iteration
To control which items that are included in iteration you can enable item filtering. Filtering is based on a predicate expression (a boolean expression that returns true
or false
) deciding if the current item should be included or not.
The actual filter is an ECMA-script (JavaScript) that MUST evaluate to true
, false
or a function
returning true
or false
.
During expression evaluation data is made available in scopes. A scope is a map (i.e key-values or hash) where values are accessed using a name and plain dot notation.
The following scopes are available:
Name | Description | Case-insensitive |
---|---|---|
| The current item. All item properties are multi-value except for | |
| The current session | |
| The current state |
Last updated