feature #I64T29 增加脚本语言Lua的支持

This commit is contained in:
everywhere.z
2022-12-06 11:14:42 +08:00
parent 579d05a7c3
commit 940fbff68a
18 changed files with 289 additions and 5 deletions

View File

@@ -0,0 +1 @@
liteflow.rule-source=common/flow.xml

View File

@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<flow>
<nodes>
<node id="s1" name="普通脚本1" type="script">
<![CDATA[
local a=6
local b=10
if(a>5) then
b=5
else
b=2
end
defaultContext:setData("s1",a*b)
defaultContext:setData("s2",_meta:get("nodeId"))
]]>
</node>
</nodes>
<chain name="chain1">
THEN(a, b, c, s1);
</chain>
</flow>