application.yml
spring:
activiti:
# 自动建表
database-schema-update: true
history-level: full
db-history-used: true
copy-variables-to-local-for-tasks: false
datasource:
url: jdbc:mysql:///activiti?characterEncoding=utf-8&serverTimezone=GMT
username: root
password: 123456
driver-class-name: com.mysql.jdbc.Driver
注意事项:
spring.activiti.database-schema-update:此项可以不配置,默认为:true
spring.activiti.history-level:保存历史数据级别设置为full最高级别,建议为:full,否则生成的表格不全
spring.activiti.db-history-used:检查历史表是否存在,建议为:true
copy-variables-to-local-for-tasks: 控制是否将当前任务变量复制到下一任务的本地变量中,建议为:false 若设置为true,会生成多余切无效的流程变量。