Skip to main content

Business Rule Strategy

This document provides a high-level overview of Business Rule documentation for WepNG. For detailed templates and extraction workflow, refer to the Specification Extraction Skill.

[!TIP] Detailed Instructions: See Specification Extraction Skill and BR Development Workflow.


1. Philosophy

A Business Rule (BR) is a constraint or logic statement that exists independently of the software. To avoid "Hidden Logic", we extract these rules from code and document them explicitly.


2. Naming Convention

BR-[MODULE]-[XXX]

ModuleArea
OMGTOrder Management
FEEFee/Pricing
FINFinance
CRMCustomer Relationship
BOBack Office
WAWeb Access
MNTMaintenance/Config

ID: 3-digit, start at 010 (leave gaps for future insertions).


3. Where BRs Live

TypeLocation
Draft candidatesspecs/draft/[module]/br_candidates_[module].md
Validated rulesspecs/current/business_rules_index.md
In GherkinTagged as @BR-OMGT-XXX
In Use CasesSection 7: Business Rules

4. Status Workflow


5. In Code

Reference BRs in code comments:

// BR-OMGT-001: Ensure at least one recipient
if (to == null || !to.Any()) { ... }

6. Template

See: .agent/skills/specification_extraction/templates/br_candidates_template.md