@@ -956,10 +956,10 @@ states:
956
956
assert .True (t , strings .Contains (string (b ), "{\" name\" :\" ParallelExec\" ,\" type\" :\" parallel\" ,\" transition\" :{\" nextState\" :\" CheckVisaStatusSwitchEventBased\" },\" branches\" :[{\" name\" :\" ShortDelayBranch\" ,\" actions\" :[{\" subFlowRef\" :{\" workflowId\" :\" shortdelayworkflowid\" ,\" invoke\" :\" sync\" ,\" onParentComplete\" :\" terminate\" },\" actionDataFilter\" :{\" useResults\" :true}}],\" timeouts\" :{\" actionExecTimeout\" :\" PT5H\" ,\" branchExecTimeout\" :\" PT6M\" }},{\" name\" :\" LongDelayBranch\" ,\" actions\" :[{\" subFlowRef\" :{\" workflowId\" :\" longdelayworkflowid\" ,\" invoke\" :\" sync\" ,\" onParentComplete\" :\" terminate\" },\" actionDataFilter\" :{\" useResults\" :true}}]}],\" completionType\" :\" atLeast\" ,\" numCompleted\" :13,\" timeouts\" :{\" stateExecTimeout\" :{\" single\" :\" PT2S\" ,\" total\" :\" PT1S\" },\" branchExecTimeout\" :\" PT6M\" }}" ))
957
957
958
958
// Switch State
959
- assert .True (t , strings .Contains (string (b ), "{\" name\" :\" CheckVisaStatusSwitchEventBased\" ,\" type\" :\" switch\" ,\" defaultCondition\" :{\" transition\" :{\" nextState\" :\" HelloStateWithDefaultConditionString\" }},\" eventConditions\" :[{\" name\" :\" visaApprovedEvent\" ,\" eventRef\" :\" visaApprovedEventRef\" ,\" metadata\" :{\" mastercard\" :\" disallowed\" ,\" visa\" :\" allowed\" },\" end \" :null, \" transition\" :{\" nextState\" :\" HandleApprovedVisa\" }},{\" eventRef\" :\" visaRejectedEvent\" ,\" metadata\" :{\" test\" :\" tested\" },\" end \" :null, \" transition\" :{\" nextState\" :\" HandleRejectedVisa\" }}], \" dataConditions \" :null ,\" timeouts\" :{\" stateExecTimeout\" :{\" single\" :\" PT20S\" ,\" total\" :\" PT10S\" },\" eventTimeout\" :\" PT10H\" }}" ))
959
+ assert .True (t , strings .Contains (string (b ), "{\" name\" :\" CheckVisaStatusSwitchEventBased\" ,\" type\" :\" switch\" ,\" defaultCondition\" :{\" transition\" :{\" nextState\" :\" HelloStateWithDefaultConditionString\" }},\" eventConditions\" :[{\" name\" :\" visaApprovedEvent\" ,\" eventRef\" :\" visaApprovedEventRef\" ,\" metadata\" :{\" mastercard\" :\" disallowed\" ,\" visa\" :\" allowed\" },\" transition\" :{\" nextState\" :\" HandleApprovedVisa\" }},{\" eventRef\" :\" visaRejectedEvent\" ,\" metadata\" :{\" test\" :\" tested\" },\" transition\" :{\" nextState\" :\" HandleRejectedVisa\" }}],\" timeouts\" :{\" stateExecTimeout\" :{\" single\" :\" PT20S\" ,\" total\" :\" PT10S\" },\" eventTimeout\" :\" PT10H\" }}" ))
960
960
961
961
// Switch State with string DefaultCondition
962
- assert .True (t , strings .Contains (string (b ), "{\" name\" :\" HelloStateWithDefaultConditionString\" ,\" type\" :\" switch\" ,\" defaultCondition\" :{\" transition\" :{\" nextState\" :\" SendTextForHighPriority\" }},\" eventConditions \" :null, \" dataConditions\" :[{\" condition\" :\" ${ true }\" ,\" end \" :null, \" transition\" :{\" nextState\" :\" HandleApprovedVisa\" }},{\" condition\" :\" ${ false }\" , \" end \" :null ,\" transition\" :{\" nextState\" :\" HandleRejectedVisa\" }}]}" ))
962
+ assert .True (t , strings .Contains (string (b ), "{\" name\" :\" HelloStateWithDefaultConditionString\" ,\" type\" :\" switch\" ,\" defaultCondition\" :{\" transition\" :{\" nextState\" :\" SendTextForHighPriority\" }},\" dataConditions\" :[{\" condition\" :\" ${ true }\" ,\" transition\" :{\" nextState\" :\" HandleApprovedVisa\" }},{\" condition\" :\" ${ false }\" ,\" transition\" :{\" nextState\" :\" HandleRejectedVisa\" }}]}" ))
963
963
964
964
// Foreach State
965
965
assert .True (t , strings .Contains (string (b ), "{\" name\" :\" SendTextForHighPriority\" ,\" type\" :\" foreach\" ,\" transition\" :{\" nextState\" :\" HelloInject\" },\" inputCollection\" :\" ${ .messages }\" ,\" outputCollection\" :\" ${ .outputMessages }\" ,\" iterationParam\" :\" ${ .this }\" ,\" batchSize\" :45,\" actions\" :[{\" name\" :\" test\" ,\" functionRef\" :{\" refName\" :\" sendTextFunction\" ,\" arguments\" :{\" message\" :\" ${ .singlemessage }\" },\" invoke\" :\" sync\" },\" eventRef\" :{\" triggerEventRef\" :\" example1\" ,\" resultEventRef\" :\" example2\" ,\" resultEventTimeout\" :\" PT12H\" ,\" invoke\" :\" sync\" },\" actionDataFilter\" :{\" useResults\" :true}}],\" mode\" :\" sequential\" ,\" timeouts\" :{\" stateExecTimeout\" :{\" single\" :\" PT22S\" ,\" total\" :\" PT11S\" },\" actionExecTimeout\" :\" PT11H\" }}" ))
0 commit comments