use of org.activiti.engine.impl.jobexecutor.JobAddedNotification in project Activiti by Activiti.
the class JobEntityManager method hintJobExecutor.
protected void hintJobExecutor(JobEntity job) {
JobExecutor jobExecutor = Context.getProcessEngineConfiguration().getJobExecutor();
// notify job executor:
TransactionListener transactionListener = new JobAddedNotification(jobExecutor);
Context.getCommandContext().getTransactionContext().addTransactionListener(TransactionState.COMMITTED, transactionListener);
}
Aggregations