I used to use the __ip__ field to distinguish the different parallel
processes being executed. It seams like the field is not longer being
set and I can't find an equivalent in the debugger.
Below it the subprocess code of how I split the processes on the
filter variable:
define :java_run do
sequence do
_if :test => "${f:synchronous} is set" do
iterator :on_value => "${f:filters}", :to_field => "filter" do
subprocess :ref => 'java_exec'
end
concurrent_iterator :on_value => "${f:filters}", :to_field =>
"filter" do
subprocess :ref => 'java_exec'
end
end
end
end
define :java_exec do
sequence do
java
_if :test => "${f:__result__} == 1" do
_cancel_process
end
end
end
This is how I use the variable in the block participant :java
$engine.register_participant :java do |workitem|
args = workitem.fields['args'] ?
"#{workitem.fields['args'].gsub('"', '\"')}" : ""
if (workitem.fields['filter'])
if (args.length == 0)
args = " --filter #{workitem.fields['filter']} --filter_seq
#{workitem.fields['__ip__'].to_s}"
else
args = "#{args} --filter #{workitem.fields['filter']} --
filter_seq #{workitem.fields['__ip__'].to_s}"
end
end
__ip__ is always blank now.
--
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
To unsubscribe from this group, send email to
openwferu-users+unsubscribegooglegroups.com or reply to this email with the
words "REMOVE ME" as the subject.