Figure BR.10 - Business Rule Example

Header Image
Project:
Figure BR.10 - Business Rule Example : Object diagram
Created: 3/19/2024 11:16:33 AM
Modified: 5/14/2024 8:56:53 AM
Project:
Advanced:
The figure is an instance of the SID Business Rule Model which a generalized information model for all rules. The example captures information semantically distilled from the business rule statement which is given as ‘If a user is making an order check if they are over 17 years old, and if they have more than 5 orders as a new user, offer them 20% discount if their total order is between $100 and $200, and 30% discount if their total order is between $200 and $400 and when they have successful checkout the order enroll them into the loyalty service, and send them an email thanking them, otherwise send them an email if they aren't up to 18 years old.’ <br/>Based on this statement, the BusinessRule class captures the statement and relevant information to identify it's validity, start and end date. The entire statement outlines a set of conditions and actions based on user behavior and order details.<br/>The BusinessRuleCondition class identifies the conditions, including checking if the user is over 17 years old and if they have more than 5 orders as a new user etc..<br/>BusinessRuleAction identified in the statement include ‘offering a 20% discount’ for ‘orders between $100 and $200’, ‘a 30% discount for orders between $200 and $400’, ‘enrolling the user into the loyalty service’ after successful checkout, and ‘sending email’.<br/>BusinessRuleTriggerEvent captured events that enable trigger business rule, such as ‘user making an order’ and the successful ‘checkout’ of the order.<br/>BusinessRuleConditionConstraint: The constraints class captures the key constraints, such as the age limit (over 17 years old) and the order total being within specific ranges for the discounts to apply.<br/>These key ABEs/BEs represent components of the model that reflect how different elements like BusinessRule, BusinessRuleCondition, and BusinessRuleAction are used to define and manage business logic.<br/><br/><br/>