@bpmn-io/extract-process-variables
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "@bpmn-io/extract-process-variables", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A util for bpmn-js to extract Camunda BPM process variables from a BPMN 2.0 diagram.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -95,2 +95,3 @@ # extract-process-variables | ||
* `zeebe:calledDecision > resultVariable` | ||
* `zeebe:script > resultVariable` | ||
@@ -97,0 +98,0 @@ ## See also |
@@ -533,2 +533,15 @@ 'use strict'; | ||
// Checks if output variable exists, the scope gets redefined | ||
if (processVariables.some(x => x.origin[0] === element && x.scope === containerElement)) { | ||
// result variable will have local scope | ||
containerElement = element; | ||
// check if the output have same name as resultVariable, only proceed with output variable | ||
if (processVariables.some(variable => variable.name === resultVariable)) { | ||
return processVariables; | ||
} | ||
} | ||
if (resultVariable) { | ||
@@ -535,0 +548,0 @@ var newVariable = createProcessVariable( |
Sorry, the diff of this file is not supported yet
112306
9
3468
107