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

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

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
1 6 2 1


Summary

Properties
CondNo JoinOperator Operand1 Operand2 Operator
SubRule

Methods
%AddToSaveSet %AddToSyncSet %BMEBuilt %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 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=255,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=255,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",XMLNAME="operator",XMLPROJECTION="attribute");
Operator used for this condition.
• relationship SubRule as Ens.Rule.SubRule [ 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.

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.