dromara / liteflow

Lightweight, fast, stable, and programmable component-based rule engine/process engine. Component reuse, synchronous/asynchronous orchestration, dynamic orchestration, multi-language scripting support, complex nested rules, hot deployment, smooth refreshing. Let you improve your development efficiency!
Apache License 2.0
3.04k stars 424 forks source link

SWITCH组件是否能支持常量字符串,而不是组件 #68

Closed shanafilan closed 2 months ago

shanafilan commented 2 months ago

比如我的a组件,返回的字符串是0 1 2 这样的常量,那么能否支持下面这个语法 SWITCH(a).TO(0 -> b, 1->b, 2->c).DEFAULT(d);

shanafilan commented 2 months ago

哦,好像可以通过id的方式解决