Class Reference
IRIS for UNIX 2019.3
InterSystems: The power behind what matters   
Documentation  Search
  [ENSLIB] >  [Ens] >  [Rule] >  [Condition]
Private  Storage   

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

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
1 6 6 1


Summary

Properties
CondNo JoinOperator Operand1 Operand2 Operator
Rule

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


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")) ];
• 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 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 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 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.
• relationship Rule as Ens.Rule.Rule [ Inverse = Conditions,Cardinality = parent ];
Parent Rule.

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.

Indices

•index (ID on CondNo) [IdKey];
Make sure conditions are ordered correctly


Copyright (c) 2019 by InterSystems Corporation. Cambridge, Massachusetts, U.S.A. All rights reserved. Confidential property of InterSystems Corporation.