test/functional/eft_3_participant.rb in ruote-2.1.11 vs test/functional/eft_3_participant.rb in ruote-2.2.0

- old
+ new

@@ -66,11 +66,11 @@ pdef = Ruote.process_definition do delta :tag => 'whatever' end - delta = @engine.register_participant :delta, Ruote::HashParticipant.new + delta = @engine.register_participant :delta, Ruote::StorageParticipant @engine.launch(pdef) wait_for(:delta) assert_equal( @@ -86,11 +86,11 @@ gamma end %w[ eecho fox gamma ].each do |pname| @engine.register_participant pname do |workitem| - @tracer << "#{pname}\n" + @tracer << "#{workitem.participant_name}\n" end end #noisy @@ -102,23 +102,21 @@ pdef = Ruote.process_definition do notify 'commander of the left guard', :if => 'true' echo 'done.' end - atts = nil - @engine.register_participant :notify do |wi, fe| #p fe.attribute_text - atts = fe.attributes + stash[:atts] = fe.attributes end #noisy assert_trace 'done.', pdef assert_equal( { "commander of the left guard"=>nil, "if"=>"true", "ref"=>"notify" }, - atts) + stash[:atts]) end def test_dispatched @engine.register_participant :hotel do