Class HistoryCleanupHelper
- java.lang.Object
-
- org.camunda.bpm.engine.impl.jobexecutor.historycleanup.HistoryCleanupHelper
-
public abstract class HistoryCleanupHelper extends java.lang.Object
- Author:
- Svetlana Dorokhova.
-
-
Constructor Summary
Constructors Constructor Description HistoryCleanupHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isBatchWindowConfigured(CommandContext commandContext)
static boolean
isWithinBatchWindow(java.util.Date date, ProcessEngineConfigurationImpl configuration)
Checks if given date is within a batch window.static int[][]
listMinuteChunks(int numberOfChunks)
static java.util.Date
parseTimeConfiguration(java.lang.String time)
static void
prepareNextBatch(HistoryCleanupBatch historyCleanupBatch, CommandContext commandContext)
Creates next batch object for history cleanup.
-
-
-
Method Detail
-
isWithinBatchWindow
public static boolean isWithinBatchWindow(java.util.Date date, ProcessEngineConfigurationImpl configuration)
Checks if given date is within a batch window. Batch window start time is checked inclusively.- Parameters:
date
-- Returns:
-
parseTimeConfiguration
public static java.util.Date parseTimeConfiguration(java.lang.String time) throws java.text.ParseException
- Throws:
java.text.ParseException
-
prepareNextBatch
public static void prepareNextBatch(HistoryCleanupBatch historyCleanupBatch, CommandContext commandContext)
Creates next batch object for history cleanup. First searches for historic process instances ready for cleanup. If there is still some place left in batch (configured batch size was not reached), searches for historic decision instances and also adds them to the batch. Then if there is still some place left in batch, searches for historic case instances and historic batches - and adds them to the batch.- Parameters:
commandContext
-
-
listMinuteChunks
public static int[][] listMinuteChunks(int numberOfChunks)
-
isBatchWindowConfigured
public static boolean isBatchWindowConfigured(CommandContext commandContext)
-
-