notifyRuleExecutionStarted method

void notifyRuleExecutionStarted(
  1. String ruleKey,
  2. Map<String, dynamic> context
)

Notify listeners that rule execution started

Implementation

void notifyRuleExecutionStarted(
    String ruleKey, Map<String, dynamic> context) {
  for (final listener in _listeners) {
    try {
      listener.onRuleExecutionStarted(ruleKey, context);
    } catch (e) {
      ObslyLogger.debug(
          'Error notifying listener onRuleExecutionStarted: $e');
    }
  }
}