ConditionBuilder

ConditionBuilder

Condition that wraps a function to determine whether if passes

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(fnopt) → {operations.OperationBuilder}

Description:
  • Move to the rule operations

Source:
Parameters:
Name Type Attributes Description
fn * <optional>

the optional function to execute

Returns:
Type
operations.OperationBuilder