ConditionBuilder

ConditionBuilder

Condition that wraps a function to determine whether if passes

Classes

ConditionConf
FunctionConditionConf
ItemStateConditionConf

Methods

stateOfItem(itemName) → {ItemStateConditionConf}

Description:
  • Condition of an item in determining whether to process rule.

Source:
Parameters:
Name Type Description
itemName string

the name of the item to assess the state

Returns:

the operation config

Type
ItemStateConditionConf

then(fn) → {operations.OperationBuilder}

Description:
  • Move to the rule operations

Source:
Parameters:
Name Type Description
fn *

the optional function to execute

Returns:
Type
operations.OperationBuilder