Skip to content

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 02 Oct 17:01
4ac9b75

0.2.0 (2026-10-02)

⚠ BREAKING CHANGES

  • the library is renamed from BusinessRules to RuleForge: projects and namespaces BusinessRules.Abstractions.* → RuleForge.Abstractions.* and BusinessRules.Core.* → RuleForge.* (e.g. RuleForge.Engine, RuleForge.Operators) (8f842b4, f53f86c)
  • IActionExecutor.ExecuteAsync now returns Task<ActionResult> and accepts a CancellationToken. Migration: add the token parameter and return ActionResult.Success() (#7)
  • RuleEngine takes an IActionExecutorFactory instead of IEnumerable<IActionExecutor>. Migration: wrap existing actions in new DirectActionExecutorFactory(actions) (#9)
  • RuleEngine.ExecuteAsync returns Task<IReadOnlyList<RuleExecutionResult>> (one entry per matched rule) instead of Task (#9)
  • actions whose schedule has mode Delay or Advance are no longer executed; they return an ActionResult with status Scheduled and the computed ScheduledFor (#10)
  • RuleEngine and LogAction are now sealed (#7)

Features

  • action results: ActionResult and ActionExecutionStatus (ExecutedImmediately, Scheduled, Skipped, Failed), aggregated per rule in RuleExecutionResult (#7, #9)
  • scheduling model: optional ActionDefinition.Schedule (ScheduleMetadata with Immediate/Delay/Advance modes, seconds to days, optional referencePath), parsed from JSON (#7)
  • action factory: IActionExecutorFactory with DirectActionExecutorFactory as the default implementation (#9)
  • schedule calculation: RuleEngine computes UTC ScheduledFor from a reference path or an injectable TimeProvider; scheduling errors return Failed (#10)