Abstract
In software modeling, designers produce UML visual models with software constraints. Similarly, in business modeling, designers model business processes using business constraints (business rules). Constraints are key components in the skeleton of business or software models. A designer must write constraints to semantically complement business models or UML models and finally implement them into business processes or source code. Business rules can be written using SBVR (Semantics of Business Vocabulary and Rules), while OCL (Object Constraint Language) is the well-known medium for software constraints. Both are significant standards from the Object Management Group (OMG). This paper performs a comparative analysis of both standards to identify a mechanism for the automatic transformation of SBVR to OCL.
The "Lost in Translation" Problem
In Model-Driven Architecture (MDA), a persistent gap exists between business stakeholders and software developers. Business analysts use SBVR to define complex compliance rules in a format resembling natural language. Meanwhile, software designers use OCL to write formal, mathematical constraints for UML models. Because these groups often work in silos, changes in business rules require manual, error-prone updates to software constraints.
As shown in the development lifecycle, SBVR is typically utilized at the platform-independent level, while OCL is employed closer to the implementation and source code stages. This research seeks to bridge this gap by identifying structural and semantic overlaps.
Methodology and Architectural Context
The authors conducted a qualitative comparative analysis based on seven criteria, including relation to other standards (such as MOF and UML), syntactical features, and underlying logic systems. A critical aspect of this comparison is their shared position within the Meta-Object Facility (MOF) framework, which provides the structural foundation necessary for automated transformation.
Key Insights and Structural Mapping
Despite their different appearances, SBVR and OCL share "DNA" rooted in First-Order Logic (FOL) and are side-effect free—meaning evaluating a rule never changes the system's state. The study identifies clear equivalents:
- Noun Concepts (SBVR) $\approx$ Context/Classes (OCL)
- Verb Concepts (SBVR) $\approx$ Operations/Methods (OCL)
- Structural Rules (SBVR) $\approx$ Invariants (OCL)
- Operative Rules (SBVR) $\approx$ Pre/Post Conditions (OCL)
One vital distinction is the logic system: SBVR uses two-value logic (True/False), whereas OCL uses three-value logic (True, False, or Undefined). Transformation engines must carefully map these states to avoid logic errors.
Comparative Results
The paper concludes that SBVR and OCL are highly complementary, with over 15 major commonalities identified. However, their functional differences define their specific roles in the development lifecycle.
As summarized in the comparison, OCL is a query language designed for UML model constraints, while SBVR is tailored for business rule specification and natural language documentation. Notably, SBVR does not support sequence collections, whereas OCL lacks support for graphical notation and closed projection.
Future Outlook
The analysis confirms that automatic transformation is feasible, provided the business vocabulary is properly mapped to the software class diagram. Future research directions include developing a robust transformation engine and investigating unified textual modeling languages to eliminate the need for transformation entirely.
Summary updated