Search in sources :

Example 1 with JobAddedNotification

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);
}
Also used : TransactionListener(org.activiti.engine.impl.cfg.TransactionListener) JobExecutor(org.activiti.engine.impl.jobexecutor.JobExecutor) JobAddedNotification(org.activiti.engine.impl.jobexecutor.JobAddedNotification) AsyncJobAddedNotification(org.activiti.engine.impl.jobexecutor.AsyncJobAddedNotification)

Aggregations

TransactionListener (org.activiti.engine.impl.cfg.TransactionListener)1 AsyncJobAddedNotification (org.activiti.engine.impl.jobexecutor.AsyncJobAddedNotification)1 JobAddedNotification (org.activiti.engine.impl.jobexecutor.JobAddedNotification)1 JobExecutor (org.activiti.engine.impl.jobexecutor.JobExecutor)1