We use the Activiti (5.14 version number) as the process engine, 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 actually the name of the activity that does not exist in the process.
Confirm 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 repeated (act_re_procdef id_ fields), such as A and b companies that have a process called proc:1:104.
At this point, Activiti's caching mechanism simply loads one into memory (first loaded first), so a company uses the B company process.
Workaround: When defining the process, add the identification of a company ID to the process definition ID, which guarantees the system-wide uniqueness.
The process definition cache problem of Activiti under multi-database