yeah the sub_wfid works fine, I just needs something unique.

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 from this group, send email to 
openwferu-users+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to