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