您现在的位置是:首页 > 文章详情

🎉smart-flow v1.1.4 便利性优化发布

日期:2023-12-03点击:137

1、smart-flow 简介

smart-flow 是一个轻量、灵活的业务流程编排框架,支持业务流程中常见的条件分支控制、子流程、业务组件异步和降级等功能。同时 smart-flow 也是一款具备可观测性的流程编排框架,流程结构拓扑、执行路径跟踪、链路分析等功能能帮助您洞察整个业务流程和执行。

smartboot 开源组织,一个容易被误认为是在 “重复造轮子” 的低调组织。曾获得 2020 年度 OSC 中国开源项目「优秀 Gitee 组织 」荣誉。

该组织内的明星项目包括:

  • smart-socket
    历时 5 年精炼出 2 千多行代码,轻松实现百万级长连接的 AIO 通信框架。

  • smart-http
    基于 smart-socket 实现的 HTTP/1.1 web 服务。

  • smart-servlet
    基于 smart-http 实现的 Servlet 3.1 容器服务。

  • smart-mqtt

    基于 smart-socket 实现的 MQTT 3.1.1/5.0 Broker&Client 服务。
  • smart-flow
    一款具备可观测性的轻量级业务编排框架。

组织地址:https://smartboot.tech/
代码仓库:https://gitee.com/smartboot

2、 版本更新

v1.1.4 版本更新主要是一些使用体验上的优化。

具体内容特性如下:

 

管理后台新增docker启动方式

 docker run -p 8076:8076 smartboot/smart-flow-admin

 

新增dependsAll标准属性 

新增dependsAll标准属性,开启后在组件执行前将等待所有前置异步组件完成执行。属性开启方式详见:标准属性

 <component name="final_step" execute="statisticComponent" dependsAll="true"/> 

XML编排文件快速解析

提供ParseHelper可以快速解析获取引擎对象,ParseHelper支持多种路径混合使用。

  • classpath类路径
  • 文件绝对路径
  • 文件相对路径

同时ParseHelper也支持对解析器进行自定义设置。

 FlowEngine<Object, Object> testEngine = ParseHelper .classpath("/parse/flow-example-simple-with-resolver.xml") .addAbsolute("/Users/xxx/xxx.xml") .withResolver(new DefaultPlaceholderAttributeValueResolver()) .get("testEngine");

 

3、如何使用 smart-flow

3.1 源码

3.2 Maven 依赖

  • smart-flow-core 核心包,可单独使用
 <dependency> <groupId>org.smartboot.flow</groupId> <artifactId>smart-flow-core</artifactId> <version>1.1.4</version> </dependency>
  • smart-flow-spring-extension spring 扩展
 <dependency> <groupId>org.smartboot.flow</groupId> <artifactId>smart-flow-spring-extension</artifactId> <version>1.1.4</version> </dependency>
  • smart-flow-manager 管理功能包
 <dependency> <groupId>org.smartboot.flow</groupId> <artifactId>smart-flow-manager</artifactId> <version>1.1.4</version> </dependency>

3.3 使用

点击查看快速接入

3.4、示例地址

demo 工程地址

管理控制台体验地址

原文链接:https://www.oschina.net/news/269334/smart-mqtt-1-1-4
关注公众号

低调大师中文资讯倾力打造互联网数据资讯、行业资源、电子商务、移动互联网、网络营销平台。

持续更新报道IT业界、互联网、市场资讯、驱动更新,是最及时权威的产业资讯及硬件资讯报道平台。

转载内容版权归作者及来源网站所有,本站原创内容转载请注明来源。

文章评论

共有0条评论来说两句吧...

文章二维码

扫描即可查看该文章

点击排行

推荐阅读

最新文章