@@ -41,4 +41,11 @@ public class SubstituteSpringbootTest extends BaseTest {
LiteflowResponse response = flowExecutor.execute2Resp("chain2", "arg");
Assert.assertTrue(response.isSuccess());
}
+
+ //测试特殊命名的节点
+ @Test
+ public void testSub3() throws Exception{
+ LiteflowResponse response = flowExecutor.execute2Resp("chain3", "arg");
+ Assert.assertTrue(response.isSuccess());
+ }
@@ -0,0 +1,21 @@
+/**
+ * <p>Title: liteflow</p>
+ * <p>Description: 轻量级的组件式流程框架</p>
+ * @author Bryan.Zhang
+ * @email weenyc31@163.com
+ * @Date 2020/4/1
+ */
+package com.yomahub.liteflow.test.substituteNode.cmp;
+import com.yomahub.liteflow.core.NodeComponent;
+import org.springframework.stereotype.Component;
+@Component("88-ffc")
+public class DCmp extends NodeComponent {
+ @Override
+ public void process() {
+ System.out.println("DCmp executed!");
+}
@@ -7,4 +7,8 @@
<chain name="chain2">
THEN(node("a"), node("b"), node("93-nodeTEST"));
</chain>
+ <chain name="chain3">
+ THEN(a, b, node("88-ffc"));
+ </chain>
</flow>