Ver Fonte

feature #IBL9CK 增加bind关键字,能够在任何地方bind key和value

everywhere.z há 2 meses atrás
pai
commit
ef6f53bd08

+ 1 - 0
liteflow-testcase-el/liteflow-testcase-el-springboot/src/test/resources/bindData/application1.properties

@@ -0,0 +1 @@
+liteflow.rule-source=bindData/flow1.xml

+ 23 - 0
liteflow-testcase-el/liteflow-testcase-el-springboot/src/test/resources/bindData/flow1.xml

@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE flow PUBLIC  "liteflow" "liteflow.dtd">
+<flow>
+    <chain id="chain1">
+        THEN(a.bind("k1", "test"), b);
+    </chain>
+
+    <chain id="chain2">
+        THEN(a,b).bind("k1","test");
+    </chain>
+
+    <chain id="chain3">
+        THEN(SWITCH(y).TO(d,c), WHEN(a, b), IF(x, c, d)).bind("k1", "test")
+    </chain>
+
+    <chain id="sub">
+        THEN(a,IF(NOT(x), b, c));
+    </chain>
+
+    <chain id="chain4">
+        THEN(d, sub.bind("k1", "test2"))
+    </chain>
+</flow>