Learning
Documentation
Community
Open Exchange
Global Masters
Home / Class Reference / ENSLIB namespace / Ens.Milestone
Private  Storage   

Ens.Milestone


persistent class Ens.Milestone extends
%Persistent

API for Business Process milestones.
This class is readonly and has its storage directly mapped to the Ens.BPL.Milestone global.

Inventory


Parameters Properties Methods Queries Indices ForeignKeys Triggers
1 4 3 1


Summary


Properties
ContextId LastUpdate LastValue SessionId

Methods
%AddToSaveSet %AddToSyncSet %BMEBuilt %BuildIndicesAsync
%BuildIndicesAsyncResponse %CheckConstraints %CheckConstraintsForExtent %ClassIsLatestVersion
%ClassName %ComposeOid %ConstructClone %Delete
%DeleteExtent %DeleteId %DispatchClassMethod %DispatchGetModified
%DispatchGetProperty %DispatchMethod %DispatchSetModified %DispatchSetMultidimProperty
%DispatchSetProperty %Exists %ExistsId %Extends
%GUID %GUIDSet %GetLock %GetParameter
%GetSwizzleObject %Id %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


Parameters


• parameter READONLY = 1;
READONLY = 1 means that objects can be created, opened but not saved or deleted. Tables are projected to SQL as READONLY.

Properties


• property ContextId as %String(MAXLEN=128);
Business process context id of milestone.
• property LastUpdate as Ens.DataType.UTC;
Time of last update to this milestone.
• property LastValue as %String(MAXLEN=1000);
Last saved value of milestone.
• property SessionId as %String(MAXLEN=128);
Session id of milestone.

Queries


• query EnumerateMilestones()
SQL Query :
SELECT SessionId,ContextId,LastUpdate,LastValue FROM Milestone
Return the set of all current Business Process milestones.
• query EnumerateMilestonesForSession(pSessionId As %String = "")
SQL Query :
SELECT ContextId,LastUpdate,LastValue FROM Milestone
WHERE SessionId = :pSessionId
Return the set of sessions containing milestones.
• query EnumerateSessions()
SQL Query :
SELECT DISTINCT SessionId FROM Milestone
Return the set of sessions containing milestones.

Indices


•index (IDKEY on SessionId,ContextId) [IdKey];