1
0

flow_update.xml 972 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <flow>
  3. <nodes>
  4. <node id="s1" name="普通脚本" type="script">
  5. <![CDATA[
  6. def a=3;
  7. def b=2;
  8. slot.setData("s1",a*b);
  9. ]]>
  10. </node>
  11. <node id="s2" name="条件脚本_改" type="cond_script">
  12. <![CDATA[
  13. count = slot.getData("count");
  14. if(count > 150){
  15. return "b";
  16. }else{
  17. return "a";
  18. }
  19. ]]>
  20. </node>
  21. <node id="s3" name="普通脚本_新增" type="script">
  22. <![CDATA[
  23. def a=3;
  24. def b=2;
  25. def c=10;
  26. slot.setData("s1",a*b+c);
  27. ]]>
  28. </node>
  29. </nodes>
  30. <chain name="chain1">
  31. <then value="a,b,c,s1"/>
  32. </chain>
  33. <chain name="chain2">
  34. <then value="d,s2(a|b),s3"/>
  35. </chain>
  36. </flow>