Home > Class Reference > ENSLIB namespace > Ens.Milestone

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)

Parameters

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()

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.

Indexes

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

Storage Model: Storage (Ens.Milestone)

^Ens.BPL.Milestone(ID)
=
LastUpdate
LastValue

Storage Model: Storage (Ens.Milestone)

^Ens.BPL.Milestone(ID,"1")
=
%%CLASSNAME