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

This commit is contained in:
everywhere.z
2025-02-21 17:31:53 +08:00
parent 96061dd5d3
commit ef6f53bd08
2 changed files with 24 additions and 0 deletions

View File

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

View File

@@ -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>