說明
flowable提供了常用的查詢CRUD操作,但是大多數情況我們需要自定義sql完成查詢 flowable提供api的方式:
processEngine.getManagementService().executeCustomSql
但是我個人更傾向於自定義mapper擴展的方式
配置方式
配置文件配置
flowable:
customMybatisXMLMappers: #自定義mybatismapperxml 源碼處:ProcessEngineConfigurationImpl#init->initSqlSessionFactory
- org/flowable/db/mapping/entity/CommentExt.xml
- org/flowable/db/mapping/entity/IdentityLinkExt.xml
- org/flowable/db/mapping/entity/AttachmentExt.xml