Looking for the best way to get the Execution when using a custom incident handler
suggestions?
Looking for the best way to get the Execution when using a custom incident handler
suggestions?
Based on the IncidentEntity class it seems to be something such as:
public ExecutionEntity getExecution() {
if(executionId != null) {
ExecutionEntity execution = Context.getCommandContext()
.getExecutionManager()
.findExecutionById(executionId);
if (execution == null) {
LOG.executionNotFound(executionId);
}
return execution;
}
else {
return null;
}
}