Skip to content

Commit

Permalink
fix: same name output and result variable scope
Browse files Browse the repository at this point in the history
  • Loading branch information
abdul99ahad authored and nikku committed Jan 2, 2025
1 parent 37ba2cf commit d48df0a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/zeebe/extractors/extractResultVariables.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ export default function(options) {

// 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) {
Expand Down

0 comments on commit d48df0a

Please sign in to comment.