On Thu, Apr 9, 2009 at 3:05 PM, Makarand <[email protected]> wrote:
>
> In this case, can we somehow reuse P1 in P2 and P3 ?

Hi Makarand,

thanks for having read my answer at
http://groups.google.com/group/openwferu-users/browse_frm/thread/932a053e8ad56b59/ef90fef299bb9c83

p1.rb :

OpenWFE.process_definition :name => 'p1' do
  sequence do
    participant "a"
    participant "b"
    participant "c"
  end
end


p2.rb :

OpenWFE.process_definition :name => 'p2' do
  sequence do
    subprocess :ref => 'p1.rb'
    participant "d"
  end
end

There is also :

OpenWFE.process_definition :name => 'p1' do
  sequence do
    ('a'..'c').to_a.each { |ref| participant ref }
  end
end

  http://openwferu.rubyforge.org/expressions.html#exp_subprocess


Best regards,

-- 
John Mettraux   -   http://jmettraux.wordpress.com

--~--~---------~--~----~------------~-------~--~----~
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to