test/ft_2b_concurrence.rb in openwferu-0.9.8 vs test/ft_2b_concurrence.rb in openwferu-0.9.9
- old
+ new
@@ -146,7 +146,31 @@
</sequence>
</process-definition>
""".strip
end
+
+ #
+ # TEST 2
+
+ class Isolate01 < OpenWFE::ProcessDefinition
+ N = 3
+ sequence do
+ #concurrence :merge_type => :isolate do
+ concurrence :merge_type => "isolate" do
+ N.times do |x|
+ set :field => "f", :value => "#{x}"
+ end
+ end
+ #pp_workitem
+ N.times do |x|
+ _print "${r:wi.attributes['#{x}']['f']}"
+ end
+ end
+ end
+
+ def test_2
+ dotest(Isolate01, "0\n1\n2", true)
+ end
+
end