时间:2022-09-22 10:40:47 | 栏目:JAVA代码 | 点击:次
设置true后将代替那些老的Job executor
spring.activiti.async-executor-enabled=false spring.activiti.job-executor-activate=false
是指示activiti在流程引擎启动就激活AsyncExecutor,异步
spring.activiti.async-executor-activate=
默认校验resources下的processes文件夹里的流程文件
spring.activiti.check-process-definitions=
spring.activiti.custom-mybatis-mappers= spring.activiti.custom-mybatis-xmlmappers=
spring.activiti.database-schema=
flase
: 默认值。activiti在启动时,会对比数据库表中保存的版本,如果没有表或者版本不匹配,将抛出异常。true
: activiti会对数据库中所有表进行更新操作。如果表不存在,则自动创建。create_drop
: 在activiti启动时创建表,在关闭时删除表(必须手动关闭引擎,才能删除表)。drop-create
: 在activiti启动时删除原来的旧表,然后在创建新表(不需要手动关闭引擎)spring.activiti.database-schema-update=false
spring.activiti.db-history-used=false
spring.activiti.db-identity-used=false
spring.activiti.deployment-name=
可配置的历史级别有none, acitivity, audit, all
spring.activiti.history-level=
spring.activiti.jpa-enabled=false
spring.activiti.mail-server-default-from= spring.activiti.mail-server-host= spring.activiti.mail-server-password= spring.activiti.mail-server-port= spring.activiti.mail-server-use-ssl= spring.activiti.mail-server-use-tls= spring.activiti.mail-server-user-name=
spring.activiti.process-definition-location-prefix= spring.activiti.process-definition-location-suffixes=
spring.activiti.rest-api-enabled=false spring.activiti.rest-api-mapping= spring.activiti.rest-api-servlet-name=
<dependency> <groupId>org.activiti</groupId> <artifactId>activiti-spring-boot-starter-basic</artifactId> <version>6.0.0</version> </dependency>
此处配置可以解决报 未找到bpmn资源文件异常。
spring.activiti.process-definition-location-prefix=classpath*:/processes/
package com.oldguy.example.modules.workflow.configs; import com.oldguy.example.modules.common.utils.Log4jUtils; import org.activiti.spring.SpringProcessEngineConfiguration; import org.activiti.spring.boot.ProcessEngineConfigurationConfigurer; import org.springframework.stereotype.Component; @Component public class ProcessEngineConfiguration implements ProcessEngineConfigurationConfigurer { @Override public void configure(SpringProcessEngineConfiguration processEngineConfiguration) { processEngineConfiguration.setActivityFontName("宋体"); processEngineConfiguration.setLabelFontName("宋体"); processEngineConfiguration.setAnnotationFontName("宋体"); Log4jUtils.getInstance(getClass()).info("配置字体:" + processEngineConfiguration.getActivityFontName()); } }
File - settings-plugins-Browse-Repositories 搜索 actiBPM
如果出现图片乱码,就需要修改编辑器环境变量
添加环境变量(不能出现空格):-Dfile.encoding=UTF-8