On Fri, Apr 23, 2010 at 10:29 AM, John Mettraux <[email protected]> wrote:
>
> On Fri, Apr 23, 2010 at 7:49 AM, Olle <[email protected]> wrote:
>>
>> Was "set" intended for setting array elements of process variables?
>> Example below tries to set first element of variable 'v1'. It doesn't
>> work unlike setting field. Another thing is that setting of process
>> variable doesn't parse compound keys.
>>
>> ---
>>  require 'rubygems'
>>  require 'ruote'
>>  require 'ruote/storage/hash_storage'
>>
>>
>>  engine = Ruote::Engine.new(
>>    Ruote::Worker.new(
>>      Ruote::HashStorage.new()))
>>
>>  pdef = Ruote.process_definition :name => 'set test' do
>>      echo 'This works: set f:f1.0'
>>      set :field => 'f1.0', :value => 'val'
>>      echo 'f1[0]: ${f:f1.0}'
>>      echo 'This doesn\'t: set v:v1.0'
>>      set :var => 'v1.0', :value => 'val'
>>      echo 'v1[0]: ${v:v1.0}'
>>  end
>>
>>  wfid = engine.launch  pdef, { 'f1' => [] }, { 'v1' => [] }
>>  engine.wait_for(wfid)
>> ------
>
> I will investigate/fix that. I think it's good to have the same behaviour for 
> process variables and workitem fields.

Hello Oleg,

it should be OK now :

  
http://github.com/jmettraux/ruote/commit/5e80ea679ee2ffb3f2acd9f26c423529e115c099


Many thanks,

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