ConditionBuilder

ConditionBuilder

Condition that wraps a function to determine whether if passes

Classes

ConditionConf
FunctionConditionConf
ItemStateConditionConf

Methods

then(fn) → {operations.OperationBuilder}

Source:

Move to the rule operations

Parameters:
Name Type Description
fn *

the optional function to execute

Returns:
Type
operations.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