Search in sources :

Example 1 with TimerActivateProcessDefinitionHandler

use of org.activiti.engine.impl.jobexecutor.TimerActivateProcessDefinitionHandler in project Activiti by Activiti.

the class ProcessEngineConfigurationImpl method initJobHandlers.

protected void initJobHandlers() {
    jobHandlers = new HashMap<String, JobHandler>();
    TimerExecuteNestedActivityJobHandler timerExecuteNestedActivityJobHandler = new TimerExecuteNestedActivityJobHandler();
    jobHandlers.put(timerExecuteNestedActivityJobHandler.getType(), timerExecuteNestedActivityJobHandler);
    TimerCatchIntermediateEventJobHandler timerCatchIntermediateEvent = new TimerCatchIntermediateEventJobHandler();
    jobHandlers.put(timerCatchIntermediateEvent.getType(), timerCatchIntermediateEvent);
    TimerStartEventJobHandler timerStartEvent = new TimerStartEventJobHandler();
    jobHandlers.put(timerStartEvent.getType(), timerStartEvent);
    AsyncContinuationJobHandler asyncContinuationJobHandler = new AsyncContinuationJobHandler();
    jobHandlers.put(asyncContinuationJobHandler.getType(), asyncContinuationJobHandler);
    ProcessEventJobHandler processEventJobHandler = new ProcessEventJobHandler();
    jobHandlers.put(processEventJobHandler.getType(), processEventJobHandler);
    TimerSuspendProcessDefinitionHandler suspendProcessDefinitionHandler = new TimerSuspendProcessDefinitionHandler();
    jobHandlers.put(suspendProcessDefinitionHandler.getType(), suspendProcessDefinitionHandler);
    TimerActivateProcessDefinitionHandler activateProcessDefinitionHandler = new TimerActivateProcessDefinitionHandler();
    jobHandlers.put(activateProcessDefinitionHandler.getType(), activateProcessDefinitionHandler);
    // if we have custom job handlers, register them
    if (getCustomJobHandlers() != null) {
        for (JobHandler customJobHandler : getCustomJobHandlers()) {
            jobHandlers.put(customJobHandler.getType(), customJobHandler);
        }
    }
}
Also used : TimerStartEventJobHandler(org.activiti.engine.impl.jobexecutor.TimerStartEventJobHandler) TimerCatchIntermediateEventJobHandler(org.activiti.engine.impl.jobexecutor.TimerCatchIntermediateEventJobHandler) JobHandler(org.activiti.engine.impl.jobexecutor.JobHandler) TimerExecuteNestedActivityJobHandler(org.activiti.engine.impl.jobexecutor.TimerExecuteNestedActivityJobHandler) ProcessEventJobHandler(org.activiti.engine.impl.jobexecutor.ProcessEventJobHandler) AsyncContinuationJobHandler(org.activiti.engine.impl.jobexecutor.AsyncContinuationJobHandler) TimerActivateProcessDefinitionHandler(org.activiti.engine.impl.jobexecutor.TimerActivateProcessDefinitionHandler) TimerCatchIntermediateEventJobHandler(org.activiti.engine.impl.jobexecutor.TimerCatchIntermediateEventJobHandler) ProcessEventJobHandler(org.activiti.engine.impl.jobexecutor.ProcessEventJobHandler) TimerSuspendProcessDefinitionHandler(org.activiti.engine.impl.jobexecutor.TimerSuspendProcessDefinitionHandler) TimerStartEventJobHandler(org.activiti.engine.impl.jobexecutor.TimerStartEventJobHandler) TimerExecuteNestedActivityJobHandler(org.activiti.engine.impl.jobexecutor.TimerExecuteNestedActivityJobHandler) AsyncContinuationJobHandler(org.activiti.engine.impl.jobexecutor.AsyncContinuationJobHandler)

Aggregations

AsyncContinuationJobHandler (org.activiti.engine.impl.jobexecutor.AsyncContinuationJobHandler)1 JobHandler (org.activiti.engine.impl.jobexecutor.JobHandler)1 ProcessEventJobHandler (org.activiti.engine.impl.jobexecutor.ProcessEventJobHandler)1 TimerActivateProcessDefinitionHandler (org.activiti.engine.impl.jobexecutor.TimerActivateProcessDefinitionHandler)1 TimerCatchIntermediateEventJobHandler (org.activiti.engine.impl.jobexecutor.TimerCatchIntermediateEventJobHandler)1 TimerExecuteNestedActivityJobHandler (org.activiti.engine.impl.jobexecutor.TimerExecuteNestedActivityJobHandler)1 TimerStartEventJobHandler (org.activiti.engine.impl.jobexecutor.TimerStartEventJobHandler)1 TimerSuspendProcessDefinitionHandler (org.activiti.engine.impl.jobexecutor.TimerSuspendProcessDefinitionHandler)1