.getProcessEngineConfiguration()
.getCommandExecutor();
commandContext.getTransactionContext().addTransactionListener(
TransactionState.ROLLED_BACK,
new FailedJobListener(commandExecutor, jobId, exception));
// Dispatch an event, indicating job execution failed in a try-catch block, to prevent the original
// exception to be swallowed
if (commandContext.getEventDispatcher().isEnabled()) {
try {