class Ens.Util.Tasks.PurgeActivityData
extends %SYS.Task.Definition
parameter RESOURCE = "%Ens_PurgeSchedule:USE";
This specifies a security resource and optional permission. Access to the resource
will be required to create, modify or run a task of this type.
The format is ":". If is ommited, "USE" is implied.
Note that this parameter cannot be overridden using the COSEXPRESSION parameter type.
property LengthOfPeriodToKeep
as %Integer(MINVAL=0) [ InitialExpression = 1 ];
Amount of period to purge
property PeriodToKeep
as %String(DISPLAYLIST=",Seconds,Minutes,Hours,Days,Weeks,Month,Year",VALUELIST=",s,mi,hh,d,wk,mm,yy") [ InitialExpression = "d" ];
Unit of period to purge
property TableToPurge
as %String(DISPLAYLIST=",Seconds Table,Hourly Table, Daily Table",VALUELIST=",s,hh,d") [ InitialExpression = "s" ];
Activity Table to purge
property WriteCountInEventLog
as %Boolean;
method OnTask()
as %Status
The OnTask() method is called to execute the task