简体   繁体   中英

Best approach to intercept task creation in Activiti for updating a parallel search index?

We are embedding Activiti in an application and have some specific requirements towards searching for tasks that go beyond the out of the box Task query capabilities of Activiti. I'm currently considering integrating ElasticSearch and maintaining a specialized index of tasks. For that to work I need to intercept task creation in Activiti.

I haven't found a "native" and transparent (in that I should not have to explicitly model this into my workflows) Activiti mechanism for this (like an interceptor mechanism). At the moment my best bet looks to be to write an myBatis intercepter plugin.

Before I commit to this I wanted to make sure I'm not missing a cleaner/easier method.

如果您使用的是CDI(焊接),请查看《 Activiti用户指南》的“接收流程事件”部分: http : //activiti.org/userguide/index.html#N12DA5

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM