test/ft_27_getflowpos.rb in openwferu-0.9.6 vs test/ft_27_getflowpos.rb in openwferu-0.9.7

- old
+ new

@@ -43,23 +43,21 @@ fei = @engine.launch(TestDefinition0) l = @engine.get_expression_pool.get_flow_position(fei.wfid) - #l.each do |fexp| - # puts " - #{fexp.fei.to_debug_s}" - #end + #print_exp_list(l) assert \ l.size == 3, "get_flow_position() returned #{l.size} elements" wi = sp.first_workitem sp.forward(wi) - assert sp.size == 0 + assert_equal sp.size, 0 end #def xxxx_gfp_0b def test_gfp_0b @@ -70,20 +68,32 @@ l = @engine.get_flow_position(fei.wfid) # # shortcut version - #l.each do |fexp| - # puts " - #{fexp.fei.to_debug_s}" - #end + #print_exp_list l - assert l.size == 3 + assert_equal l.size, 3 + l = @engine.list_processes() + assert_equal l.size, 1 + + l = @engine.list_processes(false, "nada") + assert_equal l.size, 0 + + l = @engine.list_workflows(false, fei.wfid[0, 3]) + assert_equal l.size, 1 + + # + # resume flow and terminate it + wi = sp.first_workitem + assert wi + sp.forward(wi) - assert sp.size == 0 + assert_equal sp.size, 0 end end