Home > Class Reference > ENSLIB namespace > Ens.Rule.Action

Ens.Rule.Action

persistent class Ens.Rule.Action extends %Library.Persistent, %XML.Adaptor

SQL Table Name: Ens_Rule.RuleAction

Defines an Action associated with a specific Rule within a RuleSet. Actual Actions are defined by subclasses.

Parameters

parameter XMLIGNORENULL = 1;
Ensure that we don't get $C(0) for values that are empty strings

Properties

property ActionNo as %Integer (XMLPROJECTION = "NONE") [ InitialExpression = $I(^Ens.Rule.RuleC("ActionNo")) , Required ];
Property methods: ActionNoDisplayToLogical(), ActionNoGet(), ActionNoGetStored(), ActionNoIsValid(), ActionNoLogicalToDisplay(), ActionNoNormalize(), ActionNoSet(), ActionNoXSDToLogical()
relationship Rule as Ens.Rule.Rule [ Required , Inverse = Actions , Cardinality = parent ];
Parent Rule.
Property methods: RuleCheck(), RuleDelete(), RuleGet(), RuleGetObject(), RuleGetObjectId(), RuleGetStored(), RuleGetSwizzled(), RuleIsValid(), RuleNewObject(), RuleOnDelete(), RuleRClose(), RuleRExec(), RuleRFetch(), RuleRelate(), RuleSQLCompute(), RuleSet(), RuleSetObject(), RuleSetObjectId(), RuleUnRelate(), RuleUnSwizzle()

Methods

method Execute(pRule As Rule, pRuleSet As RuleDefinition, pContext As %RegisteredObject) as %Status [ Language = objectscript ]
Execute this Action.
method GenerateCode(pCompiler As Compiler, pActionNo As %Integer, pPad As %String = " ") as %Status [ Language = objectscript ]
Generate code for this action

Inherited Methods

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

Indexes

index (ID on ActionNo) [IdKey, Type = key];
Make sure actions are ordered correctly
Index methods: IDCheck(), IDDelete(), IDExists(), IDOpen(), IDSQLCheckUnique(), IDSQLExists(), IDSQLFindPKeyByConstraint(), IDSQLFindRowIDByConstraint()

Storage

Storage Model: Storage (Ens.Rule.Action)

{%%PARENT}("Actions")(ID)
=
%%CLASSNAME

Subclasses

Ens.Rule.Assign