bpmn-io / bpmn-js-element-templates

The element template extension for bpmn-js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Infinite loop when applying element template

philippfromme opened this issue · comments

Describe the Bug

After this commit and with element templates that contain properties with duplicate property IDs (here, here) and conditions depending on those applying an element template results in an infinite loop.

Steps to Reproduce

  1. Check out infinite-loop branch
  2. Run npm start
  3. Test case fails

Expected Behavior

Test case passes. Deduplication IDs fixes it but also removing condition fixes it.

Environment

  • Library version: 1.14.2

Additional Context

Initially reported via this thread

Error only occurs when applying element template to existing element. Creating using bpmn-js-create-append-anything works.

brave_nUrqr5baep

Added ready as we should fix this as soon as possible, either by validating IDs to be unique or by preventing the infinite loop.

Fix via #82.