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
2.98k stars 419 forks source link

为什么一个文件配置错了,导致整个项目启动不起来,能不能忽略呢 #54

Closed pigzhuzhu55 closed 7 months ago

pigzhuzhu55 commented 8 months ago

Error creating bean with name 'liteflowExecutorInit' defined in class path resource [com/yomahub/liteflow/springboot/config/LiteflowMainAutoConfiguration.class]: Invocation of init method failed; nested exception is com.yomahub.liteflow.exception.FlowExecutorNotInitException: init flow executor cause error for path [com.yomahub.liteflow.parser.sql.SQLXmlELParser],reason: An exception occurred while building the node[bluetoothIrrigateControllerScript],component[bluetoothIrrigateControllerScript(蓝牙状态控制器 状态解析)] register error script loading error for node[bluetoothIrrigateControllerScript],error msg:Line 33, Column 22: A method named "onlineState" is not declared in any enclosing class nor any supertype, nor through a static import at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1804)

pigzhuzhu55 commented 8 months ago

补充下,因为项目中liteflow用的数据源是来自数据库,通过配置,经常有人配错了,导致项目启动的时候就失败了。这个应该是可以忽略因为加载某个配置节错误,不影响整体的使用。

bryan31 commented 7 months ago

加node关键字

THEN(node("a"),b,c)

如果a不存在,不影响启动,执行时才会报错