mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-24 09:58:09 +08:00
增加了自定义parser的扩展
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package com.thebeastshop.liteflow.test;
|
||||
|
||||
import com.thebeastshop.liteflow.parser.ClassXmlFlowParser;
|
||||
|
||||
public class TestCustomParser extends ClassXmlFlowParser {
|
||||
|
||||
@Override
|
||||
public String parseCustom() {
|
||||
System.out.println("进入自定义parser,这里只做进入作用,不返回具体xml");
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -28,4 +28,13 @@
|
||||
</property>
|
||||
<property name="zkNode" value="/lite-flow/customFlow"/>这个不配置就用默认的/lite-flow/flow节点
|
||||
</bean> -->
|
||||
|
||||
<!-- 这种是自定义Class方式配置 -->
|
||||
<!-- <bean id="flowExecutor" class="com.thebeastshop.liteflow.core.FlowExecutor">
|
||||
<property name="rulePath">
|
||||
<list>
|
||||
<value>com.thebeastshop.liteflow.test.TestCustomParser</value>
|
||||
</list>
|
||||
</property>
|
||||
</bean> -->
|
||||
</beans>
|
||||
Reference in New Issue
Block a user