On Thu, May 28, 2009 at 7:52 AM, Patrick Clark
<[email protected]> wrote:
>
>> I was looking for the unit/functional test that demonstrates how to use
>> nested variables and couldn't find it. But here is your process definition
>> with the correct checks:
>>
>> class Test0 < OpenWFE::ProcessDefinition
>>  sequence do
>>    _if :test => "${field:key0.subkey1} == 'subvalue1'" do
>>      participant :ref => "bravo"
>>    end
>>    participant :ref => "charly"
>>  end
>> end
>
> Hi Kenneth,
>
> Hmm....  That process definition produces the same results as mine
> did: the process skips "bravo" and goes right to "charly".  If that
> works for you, it sounds like it isn't a syntax error, so maybe
> there's something wrong with my install that's tripping me up?  I'll
> try investigating that, see if I messed something up along the way,
> though I haven't tweaked it very much...

Hi Patrick and Kenneth,

if you're really in a bind, you can do

  test="${r:wi.key['subkey']} == 'x'"

The ${r:xxxx} notation allows for ruby code. The :ruby_eval_allowed
engine parameter must be set to true for it to work.

Those comparisons are string based.

Not much battery left, sorry for the minimal reply.

-- 
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to