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
with initial payload:
{ "key0": {'subkey1': 'subvalue1'} }
and post it, I would expect to have participant bravo get executed.
However, what actually occurs is charly is the first participant to
run. On the other hand, if I post with an initial payload of:
{ "key0": "{'subkey1' => 'subvalue1'}" }
bravo runs first. Is this the expected behavior? It seems wrong to
have to mix json and ruby like that... Maybe there's another way I
should be accessing nested hashes in my conditional?
Thanks!
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
-~----------~----~----~----~------~----~------~--~---