mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 20:22:07 +08:00
feature #I64PDW 增加Python脚本支持
This commit is contained in:
@@ -0,0 +1 @@
|
||||
liteflow.rule-source=common/flow.xml
|
||||
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<flow>
|
||||
<nodes>
|
||||
<node id="s1" name="普通脚本1" type="script">
|
||||
<![CDATA[
|
||||
a=6
|
||||
b=10
|
||||
if a>5:
|
||||
b=5
|
||||
print 'hello'
|
||||
else:
|
||||
print 'hi'
|
||||
defaultContext.setData("s1",a*b)
|
||||
]]>
|
||||
</node>
|
||||
</nodes>
|
||||
|
||||
<chain name="chain1">
|
||||
THEN(a, b, c, s1);
|
||||
</chain>
|
||||
</flow>
|
||||
Reference in New Issue
Block a user