Skip to content

Commit

Permalink
Update jbpm/jbpm-flow/src/main/java/org/jbpm/workflow/instance/impl/W…
Browse files Browse the repository at this point in the history
…orkflowProcessInstanceImpl.java

Co-authored-by: Gonzalo Muñoz <gonzalo51429@gmail.com>
  • Loading branch information
fjtirado and gmunozfe committed Sep 23, 2024
1 parent f8de3b8 commit d614e03
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1163,7 +1163,8 @@ public void setErrorState(NodeInstance nodeInstanceInError, Exception e) {
this.nodeIdInError = nodeInstanceInError.getNodeDefinitionId();
this.nodeInstanceIdInError = nodeInstanceInError.getId();
this.errorCause = Optional.of(e);
this.errorMessage = getRootException(e).getMessage();
Throwable rootException = getRootException(e);
this.errorMessage = rootException.getMessage() == null ? rootException.getClass().getCanonicalName() : rootException.getMessage();
setState(STATE_ERROR);
logger.error("Unexpected error while executing node {} in process instance {}", nodeInstanceInError.getNode().getName(), this.getStringId(), e);
((InternalProcessRuntime) getKnowledgeRuntime().getProcessRuntime()).getProcessEventSupport().fireOnError(this, nodeInstanceInError, getKnowledgeRuntime(), e);
Expand Down

0 comments on commit d614e03

Please sign in to comment.