-
Task
-
Resolution: Unresolved
-
L3 - Default
-
None
-
None
-
None
Problem
- In Webapps, bpmn-js and dmn-js have deprecated passing callbacks to some API methods.
- We should refactor our code before it breaks when bumping the bpmn-js or dmn-js versions
Steps to reproduce
- In Cockpit, view a DMN table on the deployments page
- Click on "Edit" in the upper right corner
- Click on the button "Download changed version"
- Observe the developer console
Observed behavior
Error: Passing callbacks to importXML is deprecated and will be removed in a future major release. Please switch to promises: https://bpmn.io/l/moving-to-promises.html at Viewer.importXML (deps.js?bust=1652447272164:139842:20) at renderTable (cam-widget-dmn-viewer.js:311:19) at cam-widget-dmn-viewer.js:209:15
Acceptance Criteria (Required on creation):
When interacting with the bpmn-js or dmn-js API, the Webapps use promises instead of callbacks.
Hints (optional):
-