# File lib/ruote/exp/fe_concurrent_iterator.rb, line 128 def add_branches (list) if h.times_iterator && list.size == 1 count = (list.first.to_i rescue nil) list = (h.list_size + 1..h.list_size + count) if count end list.each do |val| h.list_size += 1 workitem = Ruote.fulldup(h.applied_workitem) variables = { 'ii' => h.list_size - 1 } if h.to_v variables[h.to_v] = val else #if to_f workitem['fields'][h.to_f] = val end launch_sub( "#{h.fei['expid']}_0", tree_children[0], :workitem => workitem, :variables => variables) end end