mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 20:22:07 +08:00
enhancement #I61RI0 希望可以开放对 QLExpress 的一些操作!
This commit is contained in:
@@ -53,7 +53,7 @@ public class LiteFlowChainELBuilder {
|
||||
/**
|
||||
* EL解析引擎
|
||||
*/
|
||||
private final static ExpressRunner EXPRESS_RUNNER = new ExpressRunner();
|
||||
public final static ExpressRunner EXPRESS_RUNNER = new ExpressRunner();
|
||||
|
||||
static {
|
||||
//初始化QLExpress的Runner
|
||||
@@ -135,6 +135,9 @@ public class LiteFlowChainELBuilder {
|
||||
//往上下文里放入所有的node,使得el表达式可以直接引用到nodeId
|
||||
FlowBus.getNodeMap().keySet().forEach(nodeId -> context.put(nodeId, FlowBus.getNode(nodeId)));
|
||||
|
||||
//放入当前主chain的ID
|
||||
context.put(ChainConstant.CURR_CHAIN_ID, this.chain.getChainId());
|
||||
|
||||
//解析el成为一个Condition
|
||||
//为什么这里只是一个Condition,而不是一个List<Condition>呢
|
||||
//这里无论多复杂的,外面必定有一个最外层的Condition,所以这里只有一个,内部可以嵌套很多层,这点和以前的不太一样
|
||||
|
||||
@@ -64,4 +64,6 @@ public interface ChainConstant {
|
||||
String DATA = "data";
|
||||
|
||||
String MONITOR_BUS = "monitorBus";
|
||||
|
||||
String CURR_CHAIN_ID = "currChainId";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user