Skip to content

Commit

Permalink
Node instance Mvel evaluation error message (apache#3765)
Browse files Browse the repository at this point in the history
A nitpick, but calling three consecutives times logger.error looks
pretty bad
  • Loading branch information
fjtirado authored and rgdoliveira committed Nov 18, 2024
1 parent c5b1b12 commit c6491bd
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -714,9 +714,8 @@ protected Object resolveValue(String expression, Function<Map<String, Object>, O
Object variableValue = MVELProcessHelper.evaluator().eval(paramName, new NodeInstanceResolverFactory(this));
replacements.put(paramName, variableValue);
} catch (Exception t) {
logger.error("Could not find variable scope for variable {}", paramName);
logger.error("when trying to replace variable in processId for node {}", getNodeName());
logger.error("Continuing without setting process id.");
logger.error("MVEL failed to replace variable {} in process {} for node {}. Continuing without setting process id", paramName, processInstance.getProcessId(),
getNodeName(), t);
}
}
}
Expand Down

0 comments on commit c6491bd

Please sign in to comment.