test/ft_12_blockparticipant.rb in openwferu-0.9.7 vs test/ft_12_blockparticipant.rb in openwferu-0.9.8

- old
+ new

@@ -67,7 +67,31 @@ dotest( BpDef1, """bp1a : OpenWFE::ParticipantExpression""") end + + # + # Test 2 + # + + class BpDef2 < OpenWFE::ProcessDefinition + sequence do + bp + _print "${f:__result__}" + end + end + + def test_bp_2 + + @engine.register_participant("bp") do |fexp, wi| + "a string result" + # + # the 'return' value of a block participant is stored + # in the "__result__" field of the workitem + end + + dotest(BpDef2, "a string result") + end + end