executeUIRules method

Future<RulesResult> executeUIRules(
  1. UIRulesContext context
)

Executes rules for UI events

Implementation

Future<RulesResult> executeUIRules(UIRulesContext context) async {
  try {
    // Convert context to map format
    final contextMap = context.toMap();

    // Execute all active rules with this context
    // Note: Rules filtering by event type should be handled at a higher level
    // For now, execute with the context directly
    return await executeRules(contextMap);
  } catch (e) {
    return RulesResult.error('UI rules execution failed: $e');
  }
}