@bpmn-io/dmn-migrate
Advanced tools
Comparing version 0.4.2 to 0.4.3
@@ -9,2 +9,6 @@ # Changelog | ||
## 0.4.3 | ||
* `FIX`: gracefully handle missing `biodi:Edge#source` ([#18](https://github.com/bpmn-io/dmn-migrate/issues/18)) | ||
## 0.4.2 | ||
@@ -11,0 +15,0 @@ |
@@ -364,2 +364,10 @@ import DmnModdle from 'dmn-moddle'; | ||
if (is(extensionElement, 'biodi:Edge')) { | ||
const dmnElementRef = getDMNElementRef(semantic, extensionElement.get('source')); | ||
// referenced DMN element does not exist, | ||
// we can happily ignore this: https://github.com/bpmn-io/dmn-migrate/issues/18 | ||
if (!dmnElementRef) { | ||
return; | ||
} | ||
const waypoints = extensionElement.get('waypoints').map(waypoint => { | ||
@@ -372,4 +380,2 @@ return moddle.create('dc:Point', { | ||
const dmnElementRef = getDMNElementRef(semantic, extensionElement.get('source')); | ||
const edge = moddle.create('dmndi:DMNEdge', { | ||
@@ -376,0 +382,0 @@ dmnElementRef, |
@@ -370,2 +370,10 @@ 'use strict'; | ||
if (is(extensionElement, 'biodi:Edge')) { | ||
const dmnElementRef = getDMNElementRef(semantic, extensionElement.get('source')); | ||
// referenced DMN element does not exist, | ||
// we can happily ignore this: https://github.com/bpmn-io/dmn-migrate/issues/18 | ||
if (!dmnElementRef) { | ||
return; | ||
} | ||
const waypoints = extensionElement.get('waypoints').map(waypoint => { | ||
@@ -378,4 +386,2 @@ return moddle.create('dc:Point', { | ||
const dmnElementRef = getDMNElementRef(semantic, extensionElement.get('source')); | ||
const edge = moddle.create('dmndi:DMNEdge', { | ||
@@ -382,0 +388,0 @@ dmnElementRef, |
{ | ||
"name": "@bpmn-io/dmn-migrate", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"description": "Migrate DMN diagrams to the latest DMN standard.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23054
751