| Class | OpenWFE::LoopExpression |
| In: |
lib/openwfe/expressions/fe_cursor.rb
|
| Parent: | CursorExpression |
The ‘loop’ expression is like ‘cursor’ but it doesn‘t exit until it‘s broken (with ‘break’ or ‘cancel’).
<loop>
<participant ref="toto" />
<break if="${f:done} == true" />
</loop>
or, in a Ruby process definition :
_loop do
participant "toto"
_break :if => "${f:done} == true"
end
(notice the _ (underscores) to distinguish the OpenWFEru expressions from the native Ruby ones).