What is the difference between a validation rule and a business rule?

What is the difference between a validation rule and a business rule?

In accordance with my understanding: “if the state of the business object / object does not meet the expected one, then output an error message” is the check rule and “when the state of the business object / objects is equal or not equal to something, then change the state of some either a business object / objects [or take some action / event, but not just throw an error] "is a business rule.

Validation can be a UI check - check the values ​​of user interface fields or check applications - check the status of business objects.

I am not sure if my understanding is correct above. In my project, we have a check structure in which a simple check call accepts business objects for checking for something and an error collector that collects all errors. Errors are displayed on the afterword screen.

In addition to this, we have rules that fall into the second category, as described above. Check the status of the business object / objects and perform some actions, such as changing the state of another business object. I am trying to find a strategy for implementing such rules, either using some kind of structure [not a framework of verification] or a rule mechanism.

Can you please help me understand the difference between the above rules and if there are any strategies / recommendations for implementation, it would be useful.

+5
4

- , ( ), : 5 , Age (vs -5)?, -5 , .

- - -. , ( ) . . , , , 18 . - ( ) (-) (-) , , / (-), , (-) -.

, , hanna, 15 ( Age), -, > 15.

+5

; ; " ?" - , ; " ?" - ; , , -.

+3

, . , . - . , , . . , , , , .

+1

-, , - , , "", 15, , .

verification, usually associated with the user interface, can be distributed not only across the business, but can also be obtained according to common sense, for example, the email format should have a specific form, or if there is a start date and an end date, the end date of the input should be longer, than the date entered on the start date.

+1
source

All Articles