On Wed, Mar 5, 2008 at 5:24 PM, harshal <[EMAIL PROTECTED]> wrote:
>
> I think Rufus is already good.
> Slight concern is about complexity of expression language, which I am
> sure, need not be a show-stopper.
>
> I also need your help to understand the concurrent-iterator a little
> better.
> If you provide a couple of examples (similar that of earlier case), it
> would be of great help to me.
A concurrent-iterator is a kind of "parallel for".
---8<---
concurrent_iterator :on_value => "a, b, c" :to_field => "f" do
participant :ref => "toto"
end
--->8---
is thus equivalent to
---8<---
concurrence do
sequence do
set :field => "f", :value => "a"
participant :ref => "toto"
end
sequence do
set :field => "f", :value => "b"
participant :ref => "toto"
end
sequence do
set :field => "f", :value => "c"
participant :ref => "toto"
end
end
--->8---
Something more useful maybe :
---8<---
concurrent_iterator :on_value => "employee, assistant, boss,
employee", :to_field => "target" do
participant :field_ref => "target"
end
--->8---
which is equivalent to
---8<---
concurrence do
participant :ref => "employee"
participant :ref => "assistant"
participant :ref => "boss"
participant :ref => "employee"
end
--->8---
You will find many example at : http://openwferu.rubyforge.org/patterns.html
> One immediate feedback is - Rufus' Ruby syntax is great idea, against
> XML, in fact one very good demonstration of domain-specific languages
> using Ruby. Thanks for bringing it to us.
Oh thanks. Yes, there are many many possibilities :)
Best regards,
--
John Mettraux -///- http://jmettraux.openwfe.org
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"OpenWFEru dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/openwferu-dev?hl=en
-~----------~----~----~----~------~----~------~--~---