Skip to content

Commit

Permalink
Fix compatibility with Camunda Modeler >5
Browse files Browse the repository at this point in the history
This (partly) fixes issue #405.
  • Loading branch information
pSub committed Feb 26, 2025
1 parent 707be4e commit 291bb74
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ function DmnCheckJsExtension(eventBus, drd, elementRegistry, moddle, overlays, c
function validate() {
const map = {};

moddle.toXML(drd._definitions, {}, (err, xml) => {
moddle.toXML(drd._definitions, {}).then((result) => {
log("Start validation.");

xml = result.xml;

fetch('http://localhost:42000/validate', {
method: "POST",
body: xml
Expand Down

0 comments on commit 291bb74

Please sign in to comment.