if (jobExecutor!=null) {
Transaction transaction = environment.get(Transaction.class);
if (transaction==null) {
throw new JbpmException("no transaction in environment");
}
JobAddedNotification jobNotificator = new JobAddedNotification(jobExecutor);
transaction.registerSynchronization(jobNotificator);
}
}
return deleteThisJob;