Skip to content

Commit

Permalink
squash: result variable when output exists to process
Browse files Browse the repository at this point in the history
  • Loading branch information
abdul99ahad committed Dec 11, 2024
1 parent aef4558 commit 46b8d83
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/zeebe/VariableResolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default class ZeebeVariableResolver extends BaseVariableResolver {
}

async getVariablesForElement(element, moddleElement) {
const variables = await super.getVariablesForElement(element);
let variables = await super.getVariablesForElement(element);

const bo = getBusinessObject(element);

Expand All @@ -32,14 +32,14 @@ export default class ZeebeVariableResolver extends BaseVariableResolver {
isOutputVariable(variable, variable.origin[0]) && variable.scope === bo
);

if (outputExists && !moddleElement) {
if (outputExists) {

// remove script variable if exists from variables.
const filteredVariables = variables.filter(
variables = variables.filter(
variable => !isScriptResultVariable(variable, variable.origin[0])
);

return filteredVariables;
// return filteredVariables;
}

if (!moddleElement) {
Expand Down

0 comments on commit 46b8d83

Please sign in to comment.