This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRIS, see the InterSystems IRIS Adoption Guide and the InterSystems IRIS In-Place Conversion Guide, both available on the WRC Distributions page (login required).

Home > Class Reference > ENSLIB namespace > Ens.Milestone


persistent class Ens.Milestone extends %Library.Persistent

SQL Table Name: Ens.Milestone

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

Property Inventory (Including Private)


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

Properties (Including Private)

property ContextId as %String (MAXLEN = 128) [ Required ];
Business process context id of milestone.
Property methods: ContextIdDisplayToLogical(), ContextIdGet(), ContextIdGetStored(), ContextIdIsValid(), ContextIdLogicalToDisplay(), ContextIdLogicalToOdbc(), ContextIdNormalize(), ContextIdSet()
property LastUpdate as Ens.DataType.UTC;
Time of last update to this milestone.
Property methods: LastUpdateDisplayToLogical(), LastUpdateGet(), LastUpdateGetStored(), LastUpdateIsValid(), LastUpdateLogicalToDisplay(), LastUpdateLogicalToOdbc(), LastUpdateNormalize(), LastUpdateOdbcToLogical(), LastUpdateSet(), LastUpdateStorageToLogical(), LastUpdatetimeCmp(), LastUpdatetimeDiff(), LastUpdatetimeLocal(), LastUpdatetimeLocaltoUTC(), LastUpdatetimeUTC(), LastUpdatetimeUTCH(), LastUpdatetimeUTCHtoUTC(), LastUpdatetimeUTCtoLocal(), LastUpdatetimeUTCtoUTCH()
property LastValue as %String (MAXLEN = 1000);
Last saved value of milestone.
Property methods: LastValueDisplayToLogical(), LastValueGet(), LastValueGetStored(), LastValueIsValid(), LastValueLogicalToDisplay(), LastValueLogicalToOdbc(), LastValueNormalize(), LastValueSet()
property SessionId as %String (MAXLEN = 128) [ Required ];
Session id of milestone.
Property methods: SessionIdDisplayToLogical(), SessionIdGet(), SessionIdGetStored(), SessionIdIsValid(), SessionIdLogicalToDisplay(), SessionIdLogicalToOdbc(), SessionIdNormalize(), SessionIdSet()


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:
Return the set of sessions containing milestones.


index (IDKEY on SessionId,ContextId) [IdKey, Type = key];
Index methods: IDKEYCheck(), IDKEYDelete(), IDKEYExists(), IDKEYOpen(), IDKEYSQLCheckUnique(), IDKEYSQLExists(), IDKEYSQLFindPKeyByConstraint(), IDKEYSQLFindRowIDByConstraint()

Inherited Members

Inherited Methods (Including Private)


Storage Model: CacheStorage (Ens.Milestone)


Storage Model: CacheStorage (Ens.Milestone)