sdff
stopped
DefaultHandlerWrapper
after
0
Visa_12345
Lufthansa
["Mariott","Ibis","Ibis"]
Vienna
Prague
1936.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
call :a1, :bookAir, { :label => "blaa", :method => :post, :parameters => {:from => data.from, :to => data.to, :persons => data.persons} }, <<-end
data.airline = result.value('id')
data.costs += result.value('costs').to_f
status.update 1, 'Hotel'
end
parallel do
loop pre_test{data.persons > 0} do
parallel_branch data.persons do |p|
call :a2, :bookHotel, { :method => :post, :parameters => {:to => data.to} }, <<-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, { :method => :post, :parameters => {:costs => data.costs} }
end
end
:post
data.from
data.to
data.persons
data.airline = result.value('id')
data.costs += result.value('costs').to_f
status.update 1, 'Hotel'
:post
data.to
data.hotels << result.value('id')
data.costs += result.value('costs').to_f
data.persons -= 1
:post
data.costs
0
undefined
:post
data.from
data.to
data.persons
data.airline = result.value('id')
data.costs += result.value('costs').to_f
status.update 1, 'Hotel'
:post
data.to
data.hotels << result.value('id')
data.costs += result.value('costs').to_f
data.persons -= 1
:post
data.costs