On Wed, Feb 23, 2011 at 10:19:36AM -0800, Nando Sola wrote:
>
> I'm trying to implement a process definition that fires and forgets
> subprocesses, while the main branch continues. After reading the docs,
> I've come up with the following:
>
> --8--
> Ruote.process_definition :name => 'lousy example', :revision => '0.1'
> do
> concurrence do
> listen :to => 'foxtrot', :upon =>'reply', :wfid => true do
> sequence :forget => true do
> bravo
> subprocess :ref => 'foo'
> tango
> end
> end
> sequence do
> foxtrot
> delta
> end
> end
>
> define 'foo' do
> papa
> hotel
> end
>
> end
> --8--
Hello Nando,
this is not an answer to your initial question, but just a simplification of
your process definition :
--8<--
Ruote.process_definition :name => 'lousy example', :revision => '0.1' do
sequence do
foxtrot
sequence :forget => true do
bravo
subprocess :ref => 'foo'
tango
end
delta
end
define 'foo' do
papa
hotel
end
end
-->8--
Starting with ruote 2.1.x, you can also do
--8<--
Ruote.process_definition :name => 'lousy example', :revision => '0.1' do
foxtrot
sequence :forget => true do
bravo
subprocess :ref => 'foo'
tango
end
delta
define 'foo' do
papa
hotel
end
end
-->8--
(implicit sequence for the body of the process)
Now moving on to analyzing and answering your real question.
Best regards,
John
--
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