Process and event data archiving can be scheduled using Quartz scheduler. This scheduler runs within Business Process Portal Server.
The archiver scheduler has two predefined jobs; purging event data and purging process data. Once a process purge job is activated, the scheduler makes sure that no other process purge job gets fired before the completion of the current job. Same is the case with event purge job also.