Skip to main content

%SYS.Task.CleanSourceJournal

Class %SYS.Task.CleanSourceJournal Extends %SYS.Task.Definition

This task removes entries in the source journal global that are older than the configured value.
It is normally run nightly.

Parameters

TaskName

Parameter TaskName = "CleanSourceJournal";

Properties

KeepDays

Property KeepDays As %Integer [ InitialExpression = 60 ];

Default purge of 2 months

Methods

KeepDaysIsValid

ClassMethod KeepDaysIsValid(KeepDays As %Integer) As %Status

Validate KeepDays value

OnTask

Method OnTask() As %Status

This method is responsible for executing the task.
At the scheduled time, the Task Manager creates an instance of this object, sets any property values using the stored "settings" for the task, and then invokes this method to execute the task.