feat #I64L3Q 增加 @ScriptMethod 注解

This commit is contained in:
gaibu
2022-12-10 18:11:04 +08:00
parent 2adda1fdf2
commit b863908d78
35 changed files with 848 additions and 6 deletions

View File

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

View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<flow>
<nodes>
<node id="d" type="script" language="js">
<![CDATA[
var str = demo.getDemoStr1();
defaultContext.setData("demo", str);
]]>
</node>
<node id="e" type="script" language="js">
<![CDATA[
var str = demo2.getDemoStr2("kobe");
defaultContext.setData("demo", str);
]]>
</node>
</nodes>
<chain name="chain1">
THEN(a,b,c,d);
</chain>
<chain name="chain2">
THEN(a,b,c,e);
</chain>
</flow>