iterate
attributeThe iterate
attribute is allowed on all action elements. It takes an XPath expression and
executes once for each node that matches the expression.
In this example the first button executes a message
action for all of the messages in the instance using a little delay.
The second button creates 10 messages in a row while incrementing a counter.
The iterate attribute can be useful to 'empty out' a set of nodes, sort it, or apply all kinds of conditions to it.