In system.properties, you set up:
a Cron expression stating when the job shall run, for example, every Friday at 11 pm
a "buffer time", stating after how many days a finished or inactive process shall be deleted
This is an example:
Example: system.properties settings
# Age of history entries in days, after which finished task should be deleted
activitiHistoryCleaner.daysAfterEndTime=30
# Age of history entries in days, after which inactive task
# (i.e. unfinished task, which are untouched for daysAfterEndTime days) should be deleted
activitiHistoryCleaner.daysOfInactivity=180
# Cron expression, when the cleanup task should run. Here every friday at 11 pm
activitiHistoryCleanerJobTrigger.cronExpression = 0 0 23 ? * FRI *
If these parameters are not set, then there are default values set in the process_execution-beans.xml.