Skip to content

Commit

Permalink
[RHPAM-4822] Add info about node instance id where node id changed ca…
Browse files Browse the repository at this point in the history
…using a ClassCastException
  • Loading branch information
Alberto Fanjul committed Oct 17, 2023
1 parent 175e6b9 commit 2d38565
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,16 @@ public void removeTimerListeners() {
}

public EventNode getEventNode() {
return (EventNode) getNode();
EventNode node;
try {
node = (EventNode) getNode();
} catch (ClassCastException e) {
long id = getProcessInstance().getId();
long nodeInstanceId = getId();
logger.debug("node definition changed for process instance "+id+". EventNode not found on node id: "+getNodeId()+" searching with node instance id: "+nodeInstanceId);
throw e;
}
return node;
}

public void triggerCompleted() {
Expand Down

0 comments on commit 2d38565

Please sign in to comment.