mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 20:22:07 +08:00
Chain中增加chainName
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -5,7 +5,7 @@
|
||||
<artifactId>liteflow</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<version>1.2.10</version>
|
||||
<version>1.2.11</version>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
|
||||
@@ -13,9 +13,12 @@ import java.util.List;
|
||||
|
||||
public class Chain {
|
||||
|
||||
private String chainName;
|
||||
|
||||
private List<Condition> conditionList;
|
||||
|
||||
public Chain(List<Condition> conditionList) {
|
||||
public Chain(String chainName, List<Condition> conditionList) {
|
||||
this.chainName = chainName;
|
||||
this.conditionList = conditionList;
|
||||
}
|
||||
|
||||
@@ -26,4 +29,12 @@ public class Chain {
|
||||
public void setConditionList(List<Condition> conditionList) {
|
||||
this.conditionList = conditionList;
|
||||
}
|
||||
|
||||
public String getChainName() {
|
||||
return chainName;
|
||||
}
|
||||
|
||||
public void setChainName(String chainName) {
|
||||
this.chainName = chainName;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user