⚙️配置
# 定义你的组件
你需要定义并实现一些组件。
public class ACmp extends NodeComponent {
@Override
public void process() {
//do your business
}
}
以此类推再分别定义b,c组件:
public class BCmp extends NodeComponent {
@Override
public void process() {
//do your business
}
}
public class CCmp extends NodeComponent {
@Override
public void process() {
//do your business
}
}
# 规则文件的配置
<?xml version="1.0" encoding="UTF-8"?>
<flow>
<nodes>
<node id="a" class="com.yomahub.liteflow.test.component.AComponent"/>
<node id="b" class="com.yomahub.liteflow.test.component.BComponent"/>
<node id="c" class="com.yomahub.liteflow.test.component.CComponent"/>
</nodes>
<chain name="chain1">
THEN(a, b, c);
</chain>
</flow>
帮助我们改善此文档 (opens new window)
上次更新: 2024/04/09, 18:39:17