Search in sources :

Example 1 with MigrationBatchJobHandler

use of org.camunda.bpm.engine.impl.migration.batch.MigrationBatchJobHandler in project camunda-bpm-platform by camunda.

the class ProcessEngineConfigurationImpl method initBatchHandlers.

// batch ///////////////////////////////////////////////////////////////////////
protected void initBatchHandlers() {
    if (batchHandlers == null) {
        batchHandlers = new HashMap<String, BatchJobHandler<?>>();
        MigrationBatchJobHandler migrationHandler = new MigrationBatchJobHandler();
        batchHandlers.put(migrationHandler.getType(), migrationHandler);
        ModificationBatchJobHandler modificationHandler = new ModificationBatchJobHandler();
        batchHandlers.put(modificationHandler.getType(), modificationHandler);
        DeleteProcessInstancesJobHandler deleteProcessJobHandler = new DeleteProcessInstancesJobHandler();
        batchHandlers.put(deleteProcessJobHandler.getType(), deleteProcessJobHandler);
        DeleteHistoricProcessInstancesJobHandler deleteHistoricProcessInstancesJobHandler = new DeleteHistoricProcessInstancesJobHandler();
        batchHandlers.put(deleteHistoricProcessInstancesJobHandler.getType(), deleteHistoricProcessInstancesJobHandler);
        SetJobRetriesJobHandler setJobRetriesJobHandler = new SetJobRetriesJobHandler();
        batchHandlers.put(setJobRetriesJobHandler.getType(), setJobRetriesJobHandler);
        SetExternalTaskRetriesJobHandler setExternalTaskRetriesJobHandler = new SetExternalTaskRetriesJobHandler();
        batchHandlers.put(setExternalTaskRetriesJobHandler.getType(), setExternalTaskRetriesJobHandler);
        RestartProcessInstancesJobHandler restartProcessInstancesJobHandler = new RestartProcessInstancesJobHandler();
        batchHandlers.put(restartProcessInstancesJobHandler.getType(), restartProcessInstancesJobHandler);
        UpdateProcessInstancesSuspendStateJobHandler suspendProcessInstancesJobHandler = new UpdateProcessInstancesSuspendStateJobHandler();
        batchHandlers.put(suspendProcessInstancesJobHandler.getType(), suspendProcessInstancesJobHandler);
        DeleteHistoricDecisionInstancesJobHandler deleteHistoricDecisionInstancesJobHandler = new DeleteHistoricDecisionInstancesJobHandler();
        batchHandlers.put(deleteHistoricDecisionInstancesJobHandler.getType(), deleteHistoricDecisionInstancesJobHandler);
    }
    if (customBatchJobHandlers != null) {
        for (BatchJobHandler<?> customBatchJobHandler : customBatchJobHandlers) {
            batchHandlers.put(customBatchJobHandler.getType(), customBatchJobHandler);
        }
    }
}
Also used : DeleteProcessInstancesJobHandler(org.camunda.bpm.engine.impl.batch.deletion.DeleteProcessInstancesJobHandler) SetJobRetriesJobHandler(org.camunda.bpm.engine.impl.batch.job.SetJobRetriesJobHandler) MigrationBatchJobHandler(org.camunda.bpm.engine.impl.migration.batch.MigrationBatchJobHandler) ModificationBatchJobHandler(org.camunda.bpm.engine.impl.ModificationBatchJobHandler) UpdateProcessInstancesSuspendStateJobHandler(org.camunda.bpm.engine.impl.batch.update.UpdateProcessInstancesSuspendStateJobHandler) DeleteHistoricDecisionInstancesJobHandler(org.camunda.bpm.engine.impl.dmn.batch.DeleteHistoricDecisionInstancesJobHandler) DeleteHistoricProcessInstancesJobHandler(org.camunda.bpm.engine.impl.batch.deletion.DeleteHistoricProcessInstancesJobHandler) ModificationBatchJobHandler(org.camunda.bpm.engine.impl.ModificationBatchJobHandler) BatchJobHandler(org.camunda.bpm.engine.impl.batch.BatchJobHandler) MigrationBatchJobHandler(org.camunda.bpm.engine.impl.migration.batch.MigrationBatchJobHandler) SetExternalTaskRetriesJobHandler(org.camunda.bpm.engine.impl.batch.externaltask.SetExternalTaskRetriesJobHandler) RestartProcessInstancesJobHandler(org.camunda.bpm.engine.impl.RestartProcessInstancesJobHandler)

Aggregations

ModificationBatchJobHandler (org.camunda.bpm.engine.impl.ModificationBatchJobHandler)1 RestartProcessInstancesJobHandler (org.camunda.bpm.engine.impl.RestartProcessInstancesJobHandler)1 BatchJobHandler (org.camunda.bpm.engine.impl.batch.BatchJobHandler)1 DeleteHistoricProcessInstancesJobHandler (org.camunda.bpm.engine.impl.batch.deletion.DeleteHistoricProcessInstancesJobHandler)1 DeleteProcessInstancesJobHandler (org.camunda.bpm.engine.impl.batch.deletion.DeleteProcessInstancesJobHandler)1 SetExternalTaskRetriesJobHandler (org.camunda.bpm.engine.impl.batch.externaltask.SetExternalTaskRetriesJobHandler)1 SetJobRetriesJobHandler (org.camunda.bpm.engine.impl.batch.job.SetJobRetriesJobHandler)1 UpdateProcessInstancesSuspendStateJobHandler (org.camunda.bpm.engine.impl.batch.update.UpdateProcessInstancesSuspendStateJobHandler)1 DeleteHistoricDecisionInstancesJobHandler (org.camunda.bpm.engine.impl.dmn.batch.DeleteHistoricDecisionInstancesJobHandler)1 MigrationBatchJobHandler (org.camunda.bpm.engine.impl.migration.batch.MigrationBatchJobHandler)1