Defined in: plugins/rules/SimpleRule.ts:6
Represents the base interface for all elements within the rules engine. Elements are the building blocks of scripts, pulses, actions, conditions, and parameters.
Extends
Constructors
Constructor
new SimpleRule(
id,type,conditions,actions,options):SimpleRule
Defined in: abstracts/AbstractRule.ts:7
Parameters
id
string
type
string
conditions
ConditionInterface<ConditionOptions>[]
actions
ActionInterface<ActionOptions>[]
options
Returns
SimpleRule
Inherited from
Properties
actions
readonlyactions:ActionInterface<ActionOptions>[]
Defined in: abstracts/AbstractRule.ts:11
Inherited from
conditions
readonlyconditions:ConditionInterface<ConditionOptions>[]
Defined in: abstracts/AbstractRule.ts:10
Inherited from
id
readonlyid:string
Defined in: abstracts/AbstractElement.ts:7
Unique identifier for the element instance.
Inherited from
options
readonlyoptions:RuleOptions
Defined in: abstracts/AbstractElement.ts:9
Configuration options specific to this element instance.
Inherited from
type
readonlytype:string
Defined in: abstracts/AbstractElement.ts:8
The registered type name of the element. This type is used by the Registry (Neuron) to look up the correct implementation.
Inherited from
TYPE
readonlystaticTYPE:"simple_rule"="simple_rule"
Defined in: plugins/rules/SimpleRule.ts:7
Methods
execute()
execute(
context):ExecutionResult<void>
Defined in: plugins/rules/SimpleRule.ts:9
Parameters
context
Returns
ExecutionResult<void>
toJSON()
toJSON():
object
Defined in: plugins/rules/SimpleRule.ts:13
Returns
object
Overrides
fromJSON()
staticfromJSON(jsonObject):SimpleRule
Defined in: plugins/rules/SimpleRule.ts:23
Parameters
jsonObject
Returns
SimpleRule
