Here's how you can create a business rule:
- First, navigate to the solution and the entity for which the business rule is to be created:
![](https://static.packt-cdn.com/products/9781788990226/graphics/assets/462b9519-2855-4469-99f9-d57dc4da3663.png)
The following screenshot shows all the Entities:
![](https://static.packt-cdn.com/products/9781788990226/graphics/assets/66b153c7-020c-4018-b5fa-aa493763b950.png)
Solution
- In the components, click on Business Rules to create/modify a business rule:
![](https://static.packt-cdn.com/products/9781788990226/graphics/assets/4a62eb28-2f14-47c9-8dea-116012e827c7.png)
New business rule
- Click on the New button to the business rule:
![](https://static.packt-cdn.com/products/9781788990226/graphics/assets/e7e99dbf-41b8-4fd5-9fe4-b3269898499f.png)
- To set the scope of the business rule, click on the Scope drop-down menu. It will display the following options:
![](https://static.packt-cdn.com/products/9781788990226/graphics/assets/84a27026-2e96-42b7-8119-5717ee49d610.png)
Business Rule Scope
As illustrated in the preceding screenshot, here are some options to set the execution context:
- If we need to set the execution context of a business rule as the entire entity, we can set it as Entity.
- If we need to set the execution context to all the forms, we can select the All Forms option.
- If we need to set the execution context to one form only, we can just select that...