Skip to main content

%SYS.Task.PurgeTaskHistory

Class %SYS.Task.PurgeTaskHistory Extends %SYS.Task.Definition [ System = 4 ]

Parameters

TaskName

Parameter TaskName = "PurgeTaskHistory";

Properties

KeepDays

Property KeepDays As %Integer(MINVAL = 1);

# of Log History Days to keep not including current day, minimum value is 1

Methods

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.
In order to execute a real task, override this method in a subclass.