flowable-流程中心设计之自定义sql(十)
说明
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