Upstream conversion fails on D11.1

Created on 18 December 2024, 4 days ago

Problem/Motivation

Due to a change in the AssertResolver (see attached issues), the js-libraries are loaded differently over time. First "bpmn_io/core" and "bpmn_io/ui", and then "bpmn_io/convert". The difference between the first two and "convert" is the fact that they also contain css, which results in a higher prio.

Normally, this wouldn't pose a problem, but because the initial model is already "opened" (in "bpmn_io/ui") before the convert-library is attached to the page, the "root.set"-event is missed. This event is essential to start the conversion.

Steps to reproduce

The mean difference is the change to the AssetResolver that got introduced in D11.1.

Proposed resolution

- Create a BPMN.io-CommandInterceptor and listen to the "root.set"-event
- Attach this interceptor as additional module

🐛 Bug report
Status

Active

Version

2.1

Component

Code

Created by

🇧🇪Belgium lammensj

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024