On Wed, May 27, 2009 at 8:31 PM, Patrick <[email protected]> wrote:
>
> I seem to be having some issues with nested hashes and conditionals in
> my process definitions, posted through ruote-rest. If I take the
> following process definition:
>
> class Test0 < OpenWFE::ProcessDefinition
> sequence do
> _if :test => "${field:key0}['subkey1'] == 'subvalue1'" do
> participant :ref => "bravo"
> end
> participant :ref => "charly"
> end
> end
Hi Patrick
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
So the checks are ${field:as.deep.as.you.need.to.go}. I have to note I only
go two levels deep like you do, but in theory it should work. I'm sure John
will correct me if needed :)
Best
--
Kenneth Kalmer
[email protected]
http://opensourcery.co.za
@kennethkalmer
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---