Click or drag to resize

Condition Class

A condition belongs to an event definition. It represents the condition that exists for the event to fire.
Inheritance Hierarchy
SystemObject
  Omada.OE.ModelCondition

Namespace:  Omada.OE.Model
Assembly:  Omada.OE.Model (in Omada.OE.Model.dll) Version: 15.0.0.0
Syntax
C#
[SerializableAttribute]
public class Condition : IObjectWithId, IObjectWithGuid, 
	ICloneable

The Condition type exposes the following members.

Constructors
  NameDescription
Public methodCondition
Top
Properties
  NameDescription
Public propertyAnyFieldChanged
If set, then a change on just one of the fields will fullfil the condition. If not set, all the fields must be changed for the condition to evaluate to true.
Public propertyConditionType
Public propertyFields
Public propertyFilter
Filter is normally null (even though FilterId > 0).
Public propertyFilterId
DataObjectFilter Id. Can be 0 (not all conditions have a filter).
Public propertyFirstTimeCheckPeriod
Only used if FirstTimeOnly is true. If so the event will fire once in every period of time. FirstTimeCheckPeriod is ignored if it is zero - meaning that the event will only fire once.
Public propertyFirstTimeOnly
Used when event type is either TimerExecuted or ObjectModified. If true the event will only fire once or once every period as specified in FirstTimeCheckPeriod.
Public propertyHasFirstTimeCheckPeriod
Has a (valid) period been specified?
Public propertyId
Public propertyUId
Top
Methods
  NameDescription
Public methodAddFilterExpression
Adds a new expression that will be created for the filter when the condition is saved.
Public methodClone
Public methodRemoveInvalidConditionFields
Removes the condition fields whoes properties are not in the common properties of the filter data object types
Public methodResetAll
Resets the id etc. of the object. The method is used when making a copy of an existing object.
Top
Extension Methods
  NameDescription
Public Extension MethodToBool
Converts object to boolean.
(Defined by ObjectExtensions.)
Public Extension MethodToDateTime
Converts object to DateTime.
(Defined by ObjectExtensions.)
Public Extension MethodToInt
Converts object to integer.
(Defined by ObjectExtensions.)
Top
Explicit Interface Implementations
See Also