Hi, I can't figure out the process syntax to also use this sub_wfid
pattern.
I used to use this:
set :f => 'args', :value => "--filter ${f:filter} --filter_seq
${f:__ip__}"
I looked here and didn't see any documentation on the reserved or
special fields, does this documentation exists some where, or more
information about the workitem object. I also want to find how out
how to get more error information from the wfe, currently it clunky
for me to always look at the error logs, I'd like to dump the errors
to console as well.
http://ruote.rubyforge.org/dollar.html
On Mar 28, 6:06 pm, John Mettraux <[email protected]> wrote:
> On Mon, Mar 29, 2010 at 9:54 AM, kiko <[email protected]> wrote:
>
> > 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.
>
> Hello,
>
> yes, it vanished for now.
>
> > (...)
>
> > define :java_exec do
> > sequence do
> > java
> > _if :test => "${f:__result__} == 1" do
> > _cancel_process
> > end
> > end
> > end
>
> You could write :
>
> ---8<---
> define :java_exec do
> sequence do
> java
> cancel_process :if => '${__result__} == 1'
> end
> end
> --->8---
>
>
>
> > 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.
>
> I could bring back __ip__ if you want, but if your purpose is only to
> "differentiate", then you can write something like :
>
> ---8<---
> --filter_seq #{workitem.fei.sub_wfid}
> --->8---
>
> sub_wfid is different for each branch.
>
> wdyt ?
>
> --
> 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
To unsubscribe, reply using "remove me" as the subject.