Skip to main content

Ens.Rule.Condition

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

SQL Table Name: Ens_Rule.Condition

Property Inventory

Method Inventory

Parameters

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

Properties

property CondNo as %Integer (XMLPROJECTION = "none") [ InitialExpression = $I(^Ens.Rule.ConditionC("CondNo")) , Required ];
Property methods: CondNoDisplayToLogical(), CondNoGet(), CondNoGetStored(), CondNoIsValid(), CondNoLogicalToDisplay(), CondNoNormalize(), CondNoSet(), CondNoXSDToLogical()
property JoinOperator as %String (MAXLEN = 3, VALUELIST = ",AND,OR", XMLNAME = "join", XMLPROJECTION = "attribute") [ InitialExpression = "AND" , Required ];
How this condition is joined with the previous one.
Property methods: JoinOperatorDisplayToLogical(), JoinOperatorGet(), JoinOperatorGetStored(), JoinOperatorIsValid(), JoinOperatorLogicalToDisplay(), JoinOperatorLogicalToOdbc(), JoinOperatorNormalize(), JoinOperatorSet()
property Operand1 as %String (MAXLEN = 2500, XMLNAME = "op1", XMLPROJECTION = "attribute");
First operand for condition.
An operand is one of the following:
A string literal (within quotes)
A numeric literal
A property name (of a property within the associated Business Process context)
The name of another RuleDefinition associated with the same Busiess Process (rule name starts with #)
Property methods: Operand1DisplayToLogical(), Operand1Get(), Operand1GetStored(), Operand1IsValid(), Operand1LogicalToDisplay(), Operand1LogicalToOdbc(), Operand1Normalize(), Operand1Set()
property Operand2 as %String (MAXLEN = 2500, XMLNAME = "op2", XMLPROJECTION = "attribute");
Second operand for condition. An operand is one of the following:
A string literal (within quotes)
A numeric literal
A property name (of a property within the associated Business Process context)
The name of another RuleDefinition associated with the same Busiess Process (rule name starts with #)
Property methods: Operand2DisplayToLogical(), Operand2Get(), Operand2GetStored(), Operand2IsValid(), Operand2LogicalToDisplay(), Operand2LogicalToOdbc(), Operand2Normalize(), Operand2Set()
property Operator as %String (MAXLEN = 20, VALUELIST = ",=,!=,>,>=,<,<=,Contains,DoesNotContain,In,NotIn,StartsWith,DoesNotStartWith,Like,NotLike,Matches,DoesNotMatch,InFile,NotInFile,IntersectsList,DoesNotIntersectList", XMLNAME = "operator", XMLPROJECTION = "attribute");
Operator used for this condition.
Property methods: OperatorDisplayToLogical(), OperatorGet(), OperatorGetStored(), OperatorIsValid(), OperatorLogicalToDisplay(), OperatorLogicalToOdbc(), OperatorNormalize(), OperatorSet()
relationship Rule as Ens.Rule.Rule [ Required , Inverse = Conditions , 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 Evaluate(pRuleSet As RuleDefinition, pContext As %RegisteredObject, Output pValue As %Boolean, Output pErrorMsg As %String) as %Status
Evaluate this Condition.
Returns user errors via pErrorMsg.
method GetExpression() as %String
Return the logical expression for this condition.
classmethod GetJoinList() as %String
Called by U.I. to get list of join operators.
classmethod GetOperatorList() as %String
Called by U.I. to get list of operators.

Indexes

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

Inherited Members

Inherited Methods

Storage

Storage Model: CacheStorage (Ens.Rule.Condition)

{%%PARENT}("Conditions")(ID)
=
%%CLASSNAME
JoinOperator
Operand1
Operand2
Operator
FeedbackOpens in a new tab