Skip to main content

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.

Property Inventory

Method Inventory

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: 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
Execute this Action.
method GenerateCode(pCompiler As Compiler, pActionNo As %Integer, pPad As %String = " ") as %Status
Generate code for this action

Indexes

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

Inherited Members

Inherited Methods

Storage

Storage Model: Storage (Ens.Rule.Action)

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

Subclasses

FeedbackOpens in a new tab