bpmn-io / form-js

View and visually edit JSON-based forms.
https://bpmn.io/toolkit/form-js/
Other
419 stars 109 forks source link

Forms with cyclical expression fields cannot be loaded #1151

Closed Skaiir closed 7 months ago

Skaiir commented 7 months ago

Describe the Bug

Cyclical expressions cause issues where the importer never returns done. This leads to infinite loops which completely break a form from loading.

Steps to Reproduce

  1. Create a form with two cyclical expressions (key a = b + 1, key b = a +1 for example)
  2. Try to instantiate a form with it
  3. The code enters an infinite loop and instantiation never finishes

Expected Behavior

  1. Instantiation should complete and the loop should be resolved somehow.

Environment

ALL

Context

Related to https://github.com/bpmn-io/form-js/issues/1150