当前位置: 首页 > news >正文

setting up Activiti BPMN Workflow Engine with Spring Boot

spring.activiti.database-schema-update: true

  • Controls how Activiti handles its database tables on startup.

  • Options:

    • true – Default. Creates or updates tables automatically if missing. ✅ Good for development.

    • false – Disables auto-update. Throws an error if tables are missing or version mismatch. ❌ For production.

    • create_dropCreates tables on start and drops them on shutdown. ⚠️ Risky, only for testing.

    • drop-create – Drops existing tables and creates new ones every time app starts.


📚 spring.activiti.db-history-used: true

  • Enables Activiti's history tables.

  • These store past process execution info (like who approved what and when).

  • Without this, even with history-level set, no history tables are created.


🕘 spring.activiti.history-level: full

  • Defines how much history Activiti saves.

  • Options:

    • none – No history (best performance).

    • activity – Saves basic activity instance data.

    • audit – Adds task info like who did what.

    • full – Saves everything, including variables and execution details. ✅ Best for debugging/auditing.


🔍 spring.activiti.check-process-definitions: false

  • Whether to automatically scan and deploy BPMN process files from resources/processes/.

  • false – You must manually deploy processes (e.g., via code or REST).

  • ✅ Useful when you don’t want automatic redeployments (e.g., in production).


🚫 spring.activiti.deployment-mode: never-fail

  • Controls deployment conflict handling:

    • default – May fail if process definition is already deployed.

    • single-resource – Deploys each file separately.

    • never-failIgnores duplicate deployments, avoids errors.

  • ✅ Safer option to prevent deployment exceptions during startup.


spring.activiti.async-executor-activate: false

  • Controls whether the async executor is started.

  • Async executor handles asynchronous jobs and timers in workflows.

  • false – Disables it.

  • ✅ Disable if you don’t use timers/events to avoid unnecessary thread usage.


✅ Summary (recommended for dev)

SettingValueMeaning
database-schema-updatetrueAuto-create/update tables
db-history-usedtrueEnable history tables
history-levelfullSave full execution history
check-process-definitionsfalseDon’t auto-load BPMN files
deployment-modenever-failAvoid deployment errors on startup
async-executor-activatefalseDon’t start async job processor
http://www.lqws.cn/news/120007.html

相关文章:

  • 一起学Spring AI:核心概念
  • 沉金PCB电路板制造有哪些操作要点需要注意?
  • 中小制造企业转型:低成本国产工业软件替代方案实践
  • 力扣刷题Day 70:在排序数组中查找元素的第一个和最后一个位置(34)
  • 如何借助Hyper - V在Windows 10中构建安全软件测试环境
  • parquet :开源的列式存储文件格式
  • [蓝桥杯]密文搜索
  • ios版本的Tiktok二次安装不上,提示:Unable to Install “TikTok”
  • AI 时代下语音与视频伪造的网络安全危机
  • vue-16(Vuex 中的模块)
  • Python 中 Django 中间件:原理、方法与实战应用
  • stm32——UART和USART
  • Mac/iOS 如何解压 RAR 格式压缩包:常用工具与详细操作步骤
  • [Java 基础]抽象类和接口
  • SSM spring Bean基础配置
  • C++课设:银行账户管理系统
  • SAP学习笔记 - 开发22 - 前端Fiori开发 数据绑定(Jason),Data Types(数据类型)
  • VSCode 工作区配置文件通用模板(CMake + Ninja + MinGW/GCC 编译器 的 C++ 或 Qt 项目)
  • 【免费数据】1980-2022年中国2384个站点的水质数据
  • Monorepo架构: 项目管理模式对比与考量
  • 学习笔记(23): 机器学习之数据预处理Pandas和转换成张量格式[1]
  • Java设计模式深度解析:策略模式的核心原理与实战应用
  • 网页前端开发(基础进阶3--Vue)
  • 机器学习简介
  • Asp.Net Core基于StackExchange Redis 缓存
  • Flutter、React Native 项目如何搞定 iOS 上架?从构建 IPA 到上传 App Store 的实战流程全解析
  • 【unity游戏开发入门到精通——通用篇】从零掌握UnityWebRequest:文件下载、表单提交、超时处理、断点续传
  • 【发布实录】云原生+AI,助力企业全球化业务创新
  • [特殊字符] 在 React Native 项目中封装 App Icon 一键设置命令(支持参数与默认路径)
  • go语言学习 第5章:函数