LiteFlow的新官网
bryan31 / liteflow-homepage Goto Github PK
View Code? Open in Web Editor NEWthe doc for LiteFlow framwork
License: MIT License
the doc for LiteFlow framwork
License: MIT License
LiteFlow的新官网
// 这里主要是做了封装CompletableFuture对象,用lumbda表达式做了很多事情,这句代码要仔细理清
lumbda -》 lambda
错误的资源释放顺序导致,项目抛出java.sql.SQLException: 关闭的语句问题(是发生在调用缓存的SQL时,如项目启动加载了一次规则,调用reloadRule方法,重新加载规则,就会抛异常,导致无法刷新)。排查后发现spring-jdbc释放资源的顺序为 rs pstmt conn。而liteflow的释放顺序为conn pstmt rs。
请问与或非表达式能支持短路操作吗?明明前面的节点已经返回false了,但是在同一AND()里面的后续节点还是会运行,现在只能每一个节点都要单独写一个IF来判断操作,嵌套的层数太多了
SWITCH(x).TO(a, b, c).DEFAULT(y);
这个default 的 y组件,是否框架可以提供一个公用的空组件,避免如下报错,使用方也不必都自己定义一个空组件
【com.yomahub.liteflow.exception.NullParamException: data slot can't accept null param】
1.同名类组件和同名方法组件
目前来看是类组件优先
2.两个同名类组件
无法启动
3.两个同名方法组件
目前看是启动其中一个,不会报错。
这边是不是可以做一下方法组件级别的校验?
我希望通过sql加载组件,但我想在保存数据进表前,能验证创建组件数据的准确性。
或者脚本创建组件能通过组件id删除吗
官网文档中声明式组件这一模块的类级别式声明内容的条件组件声明的代码模块有误,LiteFlowMethodEnum.PROCESS_SWITCH应该改为LiteFlowMethodEnum.PROCESS_IF
官方文档
根据nodeId进行选择
比如如下表达式:
@LiteflowComponent("a")
public class ACmp extends NodeSwitchComponent {
@Override
public String processSwitch() throws Exception {
System.out.println("Acomp executed!");
return "c";
}
}
选择到了c节点,那b呢?直接return c,那b的逻辑体现在哪?
是多个根据逻辑,多个return吗?
我直接在java代码写if,switch不用这个规则引擎是不是一样?
初学者没用过规则引擎无从下手啊
我希望在Springboot项目中使用db存储,但是数据库的连接并非常规连接方式。可以直接注入spring容器中已经生成好的dataSource的bean实例吗
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.