On Fri, Aug 20, 2010 at 01:25:28PM -0400, Cappelaere Patrice wrote: > > Should the XML version of this be? > <concurrence merge_type='mix"> > ... > </concurrence>
Hello, both merge-type and merge_type work : http://gist.github.com/541411 ---8<--- require File.join(File.dirname(__FILE__), 'base') #require 'ruote/part/hash_participant' class EftConcurrenceTest < Test::Unit::TestCase include FunctionalBase def test_issue #pdef = Ruote.process_definition do # sequence do # concurrence :merge_type => :mix do # alpha # bravo # end # charlie # end #end pdef = %{ <process-definition> <sequence> <concurrence merge-type="mix"> <alpha/> <bravo/> </concurrence> <charlie/> </sequence> </process-definition> } alpha = @engine.register_participant :alpha do |workitem| workitem.fields['alpha_entry'] = 'done' end bravo = @engine.register_participant :bravo do |workitem| workitem.fields['bravo_entry'] = 'done' end charlie = @engine.register_participant :charlie do |workitem| #p workitem.fields end wfid = @engine.launch(pdef) r = @engine.wait_for(wfid) assert_equal 'done', r['workitem']['fields']['alpha_entry'] assert_equal 'done', r['workitem']['fields']['bravo_entry'] end end --->8--- Cheers, -- 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
