mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-15 20:42:09 +08:00
31 lines
720 B
XML
31 lines
720 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<flow>
|
|
<nodes>
|
|
<node id="s1" name="普通脚本" type="script">
|
|
<![CDATA[
|
|
a=3;
|
|
b=2;
|
|
slot.setData("s1",a*b);
|
|
]]>
|
|
</node>
|
|
|
|
<node id="s2" name="条件脚本" type="cond_script">
|
|
<![CDATA[
|
|
count = slot.getData("count");
|
|
if(count > 100){
|
|
return "a";
|
|
}else{
|
|
return "b";
|
|
}
|
|
]]>
|
|
</node>
|
|
</nodes>
|
|
|
|
<chain name="chain1">
|
|
<then value="a,b,c,s1"/>
|
|
</chain>
|
|
|
|
<chain name="chain2">
|
|
<then value="d,s2(a|b)"/>
|
|
</chain>
|
|
</flow> |