示例#1
0
        public virtual void initEngineConfiguration(ProcessEngineConfigurationImpl engineConfiguration)
        {
            engineConfiguration.setHistoryRemovalTimeStrategy(HISTORY_REMOVAL_TIME_STRATEGY_END).setHistoryRemovalTimeProvider(new DefaultHistoryRemovalTimeProvider()).initHistoryRemovalTime();

            engineConfiguration.HistoryCleanupStrategy = HISTORY_CLEANUP_STRATEGY_REMOVAL_TIME_BASED;

            engineConfiguration.HistoryCleanupBatchSize            = MAX_BATCH_SIZE;
            engineConfiguration.HistoryCleanupBatchWindowStartTime = "13:00";
            engineConfiguration.HistoryCleanupDegreeOfParallelism  = 1;

            engineConfiguration.initHistoryCleanup();
        }