当前位置: 首页 > 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

相关文章:

  • 霍夫曼编码详解
  • 2025Mybatis最新教程(三)
  • 【向量化模型如何私有化部署】一文说清原理、流程与最佳实践
  • KTH5772游戏手柄摇杆专用 3D 霍尔位置传感器
  • JavaWeb:前后端分离开发-登录认证
  • uniapp uni-id-co errCode“:“uni-id-captcha-required“,“errMsg“:“Captcha required
  • 《Offer来了:Java面试核心知识点精讲》大纲
  • 第十一部分:进程通信
  • 通过ca证书的方式设置允许远程访问Docker服务
  • Docker慢慢学
  • FreeCAD:开源世界的三维建模利器
  • 如何通过akshare库,获取股票数据,并生成TabPFN这个模型 可以识别、处理的格式(并进行了训练、推理)
  • 告别无效号码,精准营销从空号过滤开始
  • HarmonyOS NEXT应用开发-Notification Kit(用户通知服务)更多系统能力
  • 近端策略优化(PPO,Proximal Policy Optimization)
  • 第二章 进程管理
  • 在java中不同数据类型的运算与内存占用分析
  • 2025年文件加密软件推荐,最新款文档加密系统排名
  • dvwa9——Weak Session IDs
  • 将音频数据累积到缓冲区,达到阈值时触发处理
  • 网站建设公司的业务规划/b站怎么推广
  • 做网站会遇到的问题/网页怎么制作
  • nba网站建设/天津seo管理平台
  • 如何做视频网站的广告推广/手机上可以创建网站吗
  • 找人开发软件去什么网站/网站建设的基本
  • 网站空间域名申请网站/seo公司优化