StatePredicate

StatePredicate

Represent StatePredicate for a Trigger

Constructor

new StatePredicate(condition, triggersWhen)

Create a StatePredicate.
Parameters:
Name Type Description
condition Condition Condition to fire trigger.
triggersWhen string Defined when trigger will be fired

Methods

(static) fromJson(obj) → {StatePredicate}

This method is for internal use only.
Parameters:
Name Type Description
obj JSON object that represented a StatePredicate.
Returns:
StatePredicate instance
Type
StatePredicate

getEventSource() → {string}

Gets the string represented EventSource
Returns:
EventSource
Type
string

toJson() → {Object}

This method is for internal use only.
Returns:
JSON object that represented this instance.
Type
Object