PROCEED-Labs / proceed

Business Process Management System
MIT License
5 stars 9 forks source link

Opening a collapsed subprocess directly after creation leads to reload loop #253

Closed jjoderis closed 8 months ago

jjoderis commented 8 months ago

Describe the bug

When creating a collapsed subprocess and then opening it, it can happen that the modeler starts alternating between the root layer and the subprocess layer while constantly reloading after a message pops up that the subprocess does not exist.

To Reproduce Steps to reproduce the behavior:

  1. Open the modeler
  2. Add a task
  3. Change the task to a collapsed subprocess
  4. Quickly open the subprocess

Expected behavior

The subprocess plane should be opened. Optimally there is no reload of the modeler server component since that leads to a reimport of the process bpmn that is not necessary.

Screenshots

https://github.com/PROCEED-Labs/proceed/assets/58050428/204f6702-685a-4445-a3b6-0b345c3bfbb2

Desktop (please complete the following information):

jjoderis commented 8 months ago

Fixed by 5b065f680ed5921ed64c9b6c1ed83abf1814e8b3