Find out which entities are stable within Bonita
blcham opened this issue · comments
Miroslav Blaško commented
It seems that IDs consist of 2 parts (see diff file).
A/C:
- we know which entites are changing
- we know how Id-s are generated
grigobog commented
grigobog commented
Before:
timer-test.bpmn.txt
After:
timer-test-updated.bpmn.txt
grigobog commented
Most item identifiers are generated and stored in a .proc file in Bonita. These identifiers are used when exporting to .bpmn format is being done, which means that the identifiers remain unchanged, making the export stable within Bonita.
However, there are some items that are missing in the .proc file and appear in the .bpmn file after export (e.g. model:performer). A new random identifier is generated for these items.
For current state of the bpmn2stamp converter it is not a problem, since such elements are not used during conversion.
- we know which entites are changing
- basically entities, which are not in proc file. Another way to check is to export to .bpmn file two times in a row and compare the results.
- we know how Id-s are generated
- it's possible to find out how exactly ids are generated during .bpmn export, but it will take some time to analyze Bonita code. In my opinion it is not needed now, since we can always verify what elements are affected and not to use such elements.