test/ft_27_getflowpos.rb in openwferu-0.9.11 vs test/ft_27_getflowpos.rb in openwferu-0.9.12

- old
+ new

@@ -43,17 +43,35 @@ fei = @engine.launch(TestDefinition0) sleep 0.500 - l = @engine.get_expression_pool.get_flow_position(fei.wfid) + l = @engine.get_process_stack(fei.wfid) #print_exp_list(l) assert_equal \ - l.size, 3, "get_flow_position() returned #{l.size} elements" + l.size, 3, "get_process_stack() returned #{l.size} elements" + ps = @engine.get_process_status + #puts + #puts ps[fei.parent_wfid].to_s + #puts + + assert_equal ps[fei.parent_wfid].errors.size, 0 + assert_equal ps[fei.parent_wfid].expressions.size, 1 + assert_kind_of ParticipantExpression, ps[fei.parent_wfid].expressions[0] + + ps = @engine.get_process_status fei.wfid[0, 4] + + assert_equal ps[fei.parent_wfid].errors.size, 0 + assert_equal ps[fei.parent_wfid].expressions.size, 1 + assert_kind_of ParticipantExpression, ps[fei.parent_wfid].expressions[0] + + # + # resume process + wi = sp.first_workitem sp.forward(wi) @engine.wait_for fei @@ -79,10 +97,11 @@ #fei = @engine.launch TestDefinition0 fei = @engine.launch Gfp27b sleep 0.500 - l = @engine.get_flow_position(fei.wfid) + #l = @engine.get_process_stack(fei.wfid) + l = @engine.get_process_stack(fei) # # shortcut version #print_exp_list l