flow.xml 488 B

123456789101112131415161718192021
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <flow>
  3. <nodes>
  4. <node id="s1" name="选择脚本" type="switch_script" language="js">
  5. <![CDATA[
  6. var count = defaultContext.getData("count");
  7. if(count > 100){
  8. return "a";
  9. }else{
  10. return "b";
  11. }
  12. ]]>
  13. </node>
  14. </nodes>
  15. <chain name="chain1">
  16. THEN(d, SWITCH(s1).to(a,b));
  17. </chain>
  18. </flow>