mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 20:22:07 +08:00
支持绝对路径的模糊匹配
This commit is contained in:
@@ -23,6 +23,7 @@ public class AbsoluteConfigPathTest extends BaseTest {
|
||||
public static void init() {
|
||||
LiteflowConfig config = new LiteflowConfig();
|
||||
config.setRuleSource("/usr/local/flow2.xml");
|
||||
// config.setRuleSource("/usr/**/*.xml");
|
||||
flowExecutor = FlowExecutorHolder.loadInstance(config);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--这里只是内容,在这个测试用例中这个文件请移到/usr/local/flow.xml中-->
|
||||
<!--这里只是内容,在这个测试用例中这个文件请移到/usr/local/flow.xml中,文件目录支持绝对路径的模糊匹配,也可以将此文件移入任意/usr/**/*.xml中-->
|
||||
<flow>
|
||||
<nodes>
|
||||
<node id="a" class="com.yomahub.liteflow.test.absoluteConfigPath.cmp.ACmp"/>
|
||||
<node id="b" class="com.yomahub.liteflow.test.absoluteConfigPath.cmp.BCmp"/>
|
||||
<node id="c" class="com.yomahub.liteflow.test.absoluteConfigPath.cmp.CCmp"/>
|
||||
</nodes>
|
||||
|
||||
<chain name="chain1">
|
||||
WHEN(a,b,c);
|
||||
</chain>
|
||||
|
||||
Reference in New Issue
Block a user