mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-06-18 00:28:04 +08:00
enhancement #I64T00 希望给SWITCH增加一个default特性
This commit is contained in:
@@ -60,7 +60,6 @@ public class LiteFlowChainELBuilder {
|
||||
EXPRESS_RUNNER.addFunctionAndClassMethod(ChainConstant.TO, Object.class, new ToOperator());
|
||||
EXPRESS_RUNNER.addFunctionAndClassMethod(ChainConstant.TO.toLowerCase(), Object.class, new ToOperator());
|
||||
EXPRESS_RUNNER.addFunctionAndClassMethod(ChainConstant.DEFAULT, Object.class, new DefaultOperator());
|
||||
EXPRESS_RUNNER.addFunctionAndClassMethod(ChainConstant.DEFAULT.toLowerCase(), Object.class, new DefaultOperator());
|
||||
EXPRESS_RUNNER.addFunctionAndClassMethod(ChainConstant.TAG, Object.class, new TagOperator());
|
||||
EXPRESS_RUNNER.addFunctionAndClassMethod(ChainConstant.ANY, Object.class, new AnyOperator());
|
||||
EXPRESS_RUNNER.addFunctionAndClassMethod(ChainConstant.ID, Object.class, new IdOperator());
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
<chain name="chain7">
|
||||
THEN(
|
||||
a,
|
||||
SWITCH(i).to(b, c).default(d)
|
||||
SWITCH(i).to(b, c).DEFAULT(d)
|
||||
);
|
||||
</chain>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user