>>> class Test0 < OpenWFE::ProcessDefinition
>>> sequence do
>>> _if :test => "${field:key0.subkey1} == 'subvalue1'" do
>>> participant :ref => "bravo"
>>> end
>>> participant :ref => "charly"
>>> end
>>> end
> 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.
Hi John and Kenneth,
Nick and I managed to track down the problem; it looks like, at least
when you use subkeys in a dictionary or ruby evaluation, the value
returned by the lookup doesn't have quotes around it even though it's
a string. Both
"${field:key0.subkey1} == subvalue1"
and
"${r:wi['key0']['subkey1']} == subvalue1"
work just fine. Problem solved, thanks for all the quick help, guys!
Patrick
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---