Home > Class Reference > ENSLIB namespace > Ens.Util.Schedule
Private   Storage    


persistent class Ens.Util.Schedule extends %Persistent, %XML.Adaptor

A persistent named schedule spec string


Parameters Properties Methods Queries Indices ForeignKeys Triggers
3 4 6 1 2


Deployable Description Name ScheduleSpec
%AddToSaveSet %AddToSyncSet %BMEBuilt %BuildIndicesAsync
%BuildIndicesAsyncResponse %CheckConstraints %CheckConstraintsForExtent %ClassIsLatestVersion
%ClassName %ClearStudioDocuments %ComposeOid %ConstructClone
%Delete %DeleteExtent %DeleteId %DispatchClassMethod
%DispatchGetModified %DispatchGetProperty %DispatchMethod %DispatchSetModified
%DispatchSetMultidimProperty %DispatchSetProperty %Exists %ExistsId
%Export %ExportStudioDocuments %Extends %GUID
%GUIDSet %GetLock %GetParameter %GetSwizzleObject
%Id %Import %ImportStudioDocuments %InsertBatch
%IsA %IsModified %IsNull %KillExtent
%KillExtentData %LoadFromMemory %LockExtent %LockId
%New %NormalizeObject %ObjectIsNull %ObjectModified
%Oid %OnBeforeAddToSync %OnDetermineClass %Open
%OpenId %OriginalNamespace %PackageName %PhysicalAddress
%PurgeIndices %Reload %RemoveFromSaveSet %ResolveConcurrencyConflict
%RollBack %Save %SaveDirect %SaveIndices
%SerializeObject %SetModified %SortBegin %SortEnd
%SyncObjectIn %SyncTransport %UnlockExtent %UnlockId
%ValidateIndices %ValidateObject Evaluate XMLDTD
XMLExport XMLExportToStream XMLExportToString XMLNew
XMLSchema XMLSchemaNamespace XMLSchemaType


parameter DOMAIN = "Ensemble";
The XMLIGNOREINVALIDATTRIBUTE parameter allows the programmer to control handling of unexpected attributes in the XML input. By default (XMLIGNOREINVALIDATTRIBUTE = 1), will ignore unexpected attributes. If XMLIGNOREINVALIDATTRIBUTE is set = 0, then an unexpected attribute will be treated as an error.
parameter XMLNAME = "schedule";
This parameter provides the default XMLNAME for the class. If it is empty then the class name will be used to construct a default XML name. The default XMLNAME is used as the top level tag when exporting objects and the export context did not provide an XML container name.


property Deployable as %Boolean [ InitialExpression = 0 ];
Indicates whether this system default setting can be exported for deployment.
property Description as %String(MAXLEN=256);
property Name as %String;
property ScheduleSpec as %String(MAXLEN="");


classmethod %ClearStudioDocuments(ByRef pIDsToKeep As %String = "")
Delete the deployable contents of the Schedule specifications table which are projected as one Studio document.
If pIDsToKeep array is passed in where the subscript is the settings id then those schedules will not be deleted.
classmethod %Export(pFileName As %String = "", pDeployable As %Boolean = "") as %Status
Export Schedule Specifications to file pFileName. If pDeployable is not defined, then export both Deployable and non Deployable Schedule settings. This is the default
If pDeployable is set to True, then only export Schedule settings that are marked as Deployable.
If pDeployable is set to False, then only export Schedule settings that are marked as not Deployable.
classmethod %ExportStudioDocuments(pStream As %String = "") as %Status
Export Default Settings that are deployable to stream pStream.
classmethod %Import(pFileName As %String = "", Output pCount As %Integer, ByRef pIDsImported As %String = "") as %Status
Import Schedule Specification data from the xml file pFileName.
Lookup data is in the form:
	<schedule name="MyName" schedulespec="START:WEEK-*-01T00:00:00,STOP:WEEK-*-01T00:00:05" deployable="0"/>
classmethod %ImportStudioDocuments(pStream As %String = "") as %Status
Import method for rows projected in studio document and then remove those that weren't imported after.
classmethod Evaluate(pScheduleSpec As %String, pODBCDateTime As %String = "") as %String


•index (Name on Name) [IdKey];


•trigger OnDelete (AFTER event DELETE)
Update the timestamp whenever a deployable row is removed from a table.
•trigger OnModify (AFTER event INSERT/UPDATE)
Update the timestamp for the settings whenever an entry is added or updated that is deployable.