Skip to main content

Ens.Milestone

persistent class Ens.Milestone extends %Library.Persistent [ Final ]

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

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

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

Storage

Storage Model: CacheStorage (Ens.Milestone)

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

Storage Model: CacheStorage (Ens.Milestone)

^Ens.BPL.Milestone(ID,"1")
=
%%CLASSNAME
FeedbackOpens in a new tab