The process definition cache problem of Activiti under multi-database

Source: Internet
Author: User
We use Activiti (5.14 version) as the process engine, and today we find a problem in the product, the approval record of a process,
The activity name recorded in the Activity instance table (Act_name of the Act_hi_actinst table) is the name of the activity that does not exist in the process.
Confirmed that the process has not been modified.
Later discovered is the problem of Activiti cache, our products are supported by multi-company use, each company uses a different database,
Therefore, the process definition IDs generated by Activiti under different companies may be duplicated (act_re_procdef id_ fields), for example, company A and Company B have processes called proc:1:104.
At this point, Activiti's caching mechanism only loads one of them into memory (first loaded first), so a company uses the B company process.

Solution: When defining a process, add the identity of a company ID to the process definition ID so that the system can be unique.

The process definition cache problem of Activiti under multi-database

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.