hey - wow

The iterate attribute

The 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.

This is the first message! And the second! And the third! 1 There is a message! {.} message {instance()/cnt}

Some examples using iterate

The iterate attribute can be useful to 'empty out' a set of nodes, sort it, or apply all kinds of conditions to it.