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