Hi,
I did lots of research, but still can't get how to simply define a
process with back/jump to participant easy.
In my case, every participant could decide back to any participant
completed before, which may looks like this:
OpenWFE.process_definition :name => 'pdname' do
cursor do
participant 'a'
participant 'b'
jump :step => 0, :if => "${f:back_to_a}"
_if :test => "${f:xxx}" do
participant 'c'
jump :step => 0, :if => "${f:back_to_a}"
jump :step => 1, :if => "${f:back_to_b}"
end
participant 'd'
jump :step => 0, :if => "${f:back_to_a}"
jump :step => 1, :if => "${f:back_to_b}"
jump :step => 3, :if => "${f:back_to_c}"
participant 'e'
jump :step => 0, :if => "${f:back_to_a}"
jump :step => 1, :if => "${f:back_to_b}"
jump :step => 3, :if => "${f:back_to_c}"
jump :step => 4, :if => "${f:back_to_d}"
participant 'f'
jump :step => 0, :if => "${f:back_to_a}"
jump :step => 1, :if => "${f:back_to_b}"
jump :step => 3, :if => "${f:back_to_c}"
jump :step => 4, :if => "${f:back_to_d}"
jump :step => 8, :if => "${f:back_to_e}"
end
end
Is there any way could specify get the participant step number easier?
or use a name to tag the participant, so that I could use a variable
to store what's step want to jump instead of specifying the step
number which would be changed once I add new step, for example, if I
add a new step participant '0' before the participant 'a', the I need
to change lots of jump step.
something like:
OpenWFE.process_definition :name => 'pdname' do
cursor do
participant 'a'
participant 'b'
jump ${f:backTarget}, :if => "${f:back}"
_if :test => "${f:xxx}" do
participant 'c'
jump ${f:backTarget}, :if => "${f:back}"
end
participant 'd'
jump ${f:backTarget}, :if => "${f:back}"
participant 'e'
jump ${f:backTarget}, :if => "${f:back}"
participant 'f'
jump ${f:backTarget}, :if => "${f:back}"
end
end
or it is not correct that I define the process.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---