Enter info here CPEE default a7e82e6a-2dc6-4ab9-8bd2-92961fe9c742 ready DefaultHandlerWrapper 3 Visa_12345 null [] Vienna Prague 0 http://gruppe.wst.univie.ac.at/~mangler/services/airline.php http://gruppe.wst.univie.ac.at/~mangler/services/hotel.php http://gruppe.wst.univie.ac.at/~mangler/services/approval.php manipulate :a5 call :a1, :bookAir, parameters: { :label => nil, :method => :post, :arguments => {:from => data.from, :to => data.to, :persons => data.persons} }, finalize: <<-END, update: <<-END data.airline = result.value('id') data.costs += result.value('costs').to_f status.update 1, 'Hotel' END aaa END parallel do loop pre_test{data.persons > 0} do parallel_branch data.persons do |p| call :a2, :bookHotel, parameters: { :label => nil, :method => :post, :arguments => {:to => data.to} }, finalize: <<-END, update: <<-END data.hotels << result.value('id') data.costs += result.value('costs').to_f END end manipulate :a3, <<-END data.persons -= 1 END end end choose :inclusive do alternative "data.costs > 700" do call :a4, :approve, parameters: { :method => :post, :arguments => {:costs => data.costs} } end end data.airline = result.value('id') data.costs += result.value('costs').to_f status.update 1, 'Hotel' aaa data.hotels << result.value('id') data.costs += result.value('costs').to_f data.persons -= 1 :post data.costs 0 undefined data.airline = result.value('id') data.costs += result.value('costs').to_f status.update 1, 'Hotel' aaa data.hotels << result.value('id') data.costs += result.value('costs').to_f data.persons -= 1 :post data.costs