diff --git a/pom.xml b/pom.xml
index fa5355b8d..5dd7529f8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
liteflow
jar
4.0.0
- 1.2.10
+ 1.2.11
UTF-8
diff --git a/src/main/java/com/thebeastshop/liteflow/entity/config/Chain.java b/src/main/java/com/thebeastshop/liteflow/entity/config/Chain.java
index 1c4f22a81..bd28dcf5f 100644
--- a/src/main/java/com/thebeastshop/liteflow/entity/config/Chain.java
+++ b/src/main/java/com/thebeastshop/liteflow/entity/config/Chain.java
@@ -13,9 +13,12 @@ import java.util.List;
public class Chain {
+ private String chainName;
+
private List conditionList;
- public Chain(List conditionList) {
+ public Chain(String chainName, List conditionList) {
+ this.chainName = chainName;
this.conditionList = conditionList;
}
@@ -26,4 +29,12 @@ public class Chain {
public void setConditionList(List conditionList) {
this.conditionList = conditionList;
}
+
+ public String getChainName() {
+ return chainName;
+ }
+
+ public void setChainName(String chainName) {
+ this.chainName = chainName;
+ }
}
diff --git a/src/main/java/com/thebeastshop/liteflow/parser/FlowParser.java b/src/main/java/com/thebeastshop/liteflow/parser/FlowParser.java
index ef3aa4804..6537e376c 100644
--- a/src/main/java/com/thebeastshop/liteflow/parser/FlowParser.java
+++ b/src/main/java/com/thebeastshop/liteflow/parser/FlowParser.java
@@ -127,7 +127,7 @@ public class FlowParser {
conditionList.add(new WhenCondition(chainNodeList));
}
}
- FlowBus.addChain(chainName, new Chain(conditionList));
+ FlowBus.addChain(chainName, new Chain(chainName,conditionList));
}
} catch (Exception e) {
LOG.error("FlowParser parser exception: {}", e);