集成在springboot的工作流框架


https://blog.csdn.net/puhaiyang/article/details/79845248

一个可以集成在springboot的工作流框架,好像挺好用的

转载于:https://www.cnblogs.com/zxgy/articles/11010800.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Spring Boot中集成工作流引擎Flowable可以通过以下步骤实现: 1. 导入Flowable的依赖,可以在项目的pom.xml文件中添加以下代码来导入Flowable的依赖: ```xml <dependency> <groupId>org.flowable</groupId> <artifactId>flowable-spring-boot-starter</artifactId> <version>6.3.0</version> </dependency> ``` 2. 创建Flowable的配置类,可以在项目中创建一个名为FlowableConfig的配置类,并在该类中设置一些Flowable的配置信息,例如设置字体样式等。可以参考以下代码: ```java import org.flowable.spring.SpringProcessEngineConfiguration; import org.flowable.spring.boot.EngineConfigurationConfigurer; import org.springframework.context.annotation.Configuration; @Configuration public class FlowableConfig implements EngineConfigurationConfigurer<SpringProcessEngineConfiguration> { @Override public void configure(SpringProcessEngineConfiguration engineConfiguration) { engineConfiguration.setActivityFontName("宋体"); engineConfiguration.setLabelFontName("宋体"); engineConfiguration.setAnnotationFontName("宋体"); } } ``` 3. 配置数据库信息,可以在项目的配置文件中(application.yml或application.properties)添加以下代码来配置Flowable的数据库连接信息: ```yaml spring: datasource: url: jdbc:mysql://localhost:3306/flowable?serverTimezone=Asia/Shanghai&useSSL=false&nullCatalogMeansCurrent=true username: root password: password driver-class-name: com.mysql.cj.jdbc.Driver flowable: standalone: server: enabled: false async-executor-activate: false idm: enabled: false database-schema-update: true ``` 4. 设计流程图,可以使用Flowable Modeler或者通过编程方式来设计流程图。设计完成后,将流程图部署到Flowable引擎中。 通过以上步骤,你可以在Spring Boot中成功集成工作流引擎Flowable,并使用Flowable来管理和执行流程。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* *3* [SpringBoot整合Flowable工作流引擎框架](https://blog.csdn.net/m0_56750901/article/details/126625790)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 100%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值