ConditionBuilder

ConditionBuilder

Condition that wraps a function to determine whether if passes

Classes

ConditionConf
FunctionConditionConf
ItemStateConditionConf

Methods

then(function) → {OperationBuilder}

Source:

Move to the rule operations

Parameters:
Name Type Description
function *

the optional function to execute

Returns:
Type
OperationBuilder

stateOfItem(itemName) → {ItemStateConditionConf}

Source:

Condition of an item in determining whether to process rule.

Parameters:
Name Type Description
itemName string

the name of the item to assess the state

Returns:

the operation config

Type
ItemStateConditionConf