Search in sources :

Example 1 with MessageAddedNotification

use of org.camunda.bpm.engine.impl.jobexecutor.MessageAddedNotification in project camunda-bpm-platform by camunda.

the class JobRetryCmd method notifyAcquisition.

protected void notifyAcquisition(CommandContext commandContext) {
    JobExecutor jobExecutor = Context.getProcessEngineConfiguration().getJobExecutor();
    MessageAddedNotification messageAddedNotification = new MessageAddedNotification(jobExecutor);
    TransactionContext transactionContext = commandContext.getTransactionContext();
    transactionContext.addTransactionListener(TransactionState.COMMITTED, messageAddedNotification);
}
Also used : MessageAddedNotification(org.camunda.bpm.engine.impl.jobexecutor.MessageAddedNotification) JobExecutor(org.camunda.bpm.engine.impl.jobexecutor.JobExecutor) TransactionContext(org.camunda.bpm.engine.impl.cfg.TransactionContext)

Aggregations

TransactionContext (org.camunda.bpm.engine.impl.cfg.TransactionContext)1 JobExecutor (org.camunda.bpm.engine.impl.jobexecutor.JobExecutor)1 MessageAddedNotification (org.camunda.bpm.engine.impl.jobexecutor.MessageAddedNotification)1