You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by fj...@apache.org on 2024/11/14 12:14:52 UTC
(incubator-kie-kogito-runtimes) branch main updated: Node instance Mvel evaluation error message (#3765)
This is an automated email from the ASF dual-hosted git repository.
fjtiradosarti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-kogito-runtimes.git
The following commit(s) were added to refs/heads/main by this push:
new e9e3c4893d Node instance Mvel evaluation error message (#3765)
e9e3c4893d is described below
commit e9e3c4893db279c371b5992486602ee897200383
Author: Francisco Javier Tirado Sarti <65...@users.noreply.github.com>
AuthorDate: Thu Nov 14 13:14:47 2024 +0100
Node instance Mvel evaluation error message (#3765)
A nitpick, but calling three consecutives times logger.error looks
pretty bad
---
.../main/java/org/jbpm/workflow/instance/impl/NodeInstanceImpl.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/jbpm/jbpm-flow/src/main/java/org/jbpm/workflow/instance/impl/NodeInstanceImpl.java b/jbpm/jbpm-flow/src/main/java/org/jbpm/workflow/instance/impl/NodeInstanceImpl.java
index fd78e89418..b7e6e07307 100755
--- a/jbpm/jbpm-flow/src/main/java/org/jbpm/workflow/instance/impl/NodeInstanceImpl.java
+++ b/jbpm/jbpm-flow/src/main/java/org/jbpm/workflow/instance/impl/NodeInstanceImpl.java
@@ -714,9 +714,8 @@ public abstract class NodeInstanceImpl implements org.jbpm.workflow.instance.Nod
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);
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org