mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 04:02:09 +08:00
37 lines
1.3 KiB
XML
37 lines
1.3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
||
<flow>
|
||
<!-- 如果和spring集成,以下<nodes>配置可以不要 -->
|
||
<nodes>
|
||
<node id="a" class="com.thebeastshop.liteflow.test.component.AComponent"/>
|
||
<node id="b" class="com.thebeastshop.liteflow.test.component.BComponent"/>
|
||
<node id="c" class="com.thebeastshop.liteflow.test.component.CComponent"/>
|
||
<node id="d" class="com.thebeastshop.liteflow.test.component.DComponent"/>
|
||
<node id="e" class="com.thebeastshop.liteflow.test.component.EComponent"/>
|
||
<node id="f" class="com.thebeastshop.liteflow.test.component.FComponent"/>
|
||
<node id="g" class="com.thebeastshop.liteflow.test.component.GComponent"/>
|
||
<node id="cond" class="com.thebeastshop.liteflow.test.component.CondComponent"/>
|
||
</nodes>
|
||
|
||
<chain name="chain1">
|
||
<then value="a,cond(b|d)"/> <!-- cond是条件节点,根据cond里的逻辑决定路由到b节点还是d节点,可以配置多个 -->
|
||
<then value="e,f,g"/>
|
||
</chain>
|
||
|
||
<chain name="chain2">
|
||
<then value="a,c"/> <!-- then表示串行 -->
|
||
<when value="b,d"/> <!-- when表示串行 -->
|
||
<then value="e,f,g"/>
|
||
</chain>
|
||
|
||
<chain name="chain3">
|
||
<then value="a,c,h,g"/>
|
||
</chain>
|
||
|
||
<chain name="strategy1">
|
||
<then value="m(m1|m2|m3)"/>
|
||
</chain>
|
||
|
||
<chain name="strategy2">
|
||
<then value="p(p1|p2)"/>
|
||
</chain>
|
||
</flow> |