---
title: Business Rule
slug: lowcode-en/business-rule
description: Learn how to access and create low code business rules with this comprehensive document. Discover how these rules can be used for form validation and other operations involving business objects. Whether you prefer a flow or a Rhino script, this document o
docTags: 
createdAt: 2022-11-22T18:50:28.000Z
---

**Low Code Business Rules** are used to perform validations that reflect the business rules of applications. They can be used for form validation and/or associated with inclusion, modification, and exclusion operations of business objects.

## How to Access

Access the functionality through the main menu navigation `Management > Business Rule`. Click on **"Create"** to create a business rule.

## Procedure

::::WorkflowBlock
:::WorkflowBlockItem
To create a new business rule, click on the "+**Create**" button.
:::

:::WorkflowBlockItem
Business Rules can be built through the design of a FasS flow or even a Rhino script.
:::
::::

### Creating Flow-Type Business Rules

::::WorkflowBlock
:::WorkflowBlockItem
In the "**Basic Data**" tab, fill in the **Name** and **Description** of the Business Rule, the **Project** to which it is associated, and choose the **Flow** **Type**.

![](https://api.archbee.com/api/optimize/pu5VMc-2TW3GQX4ly5Xp7/Hk1qhvWVJ9tidRF5CWivM_image.png)
:::

:::WorkflowBlockItem
In the **Variables** tab, click on **"Add"** and fill in the following fields to include a variable:

- Variable Name;
- Description;
- Check the "Store in the database" checkbox if the variable should be stored internally, in the Low Code data model.
- Check the "Return Variable" checkbox if the variable should be included in the output JSON object returned at the end of the business rule flow execution.
- Check the "Value List" checkbox if the variable contains a list of values.
- Check the "Mandatory Input Variable on Execution" checkbox if this option must be selected if the business rule flow execution depends on the existence of the variable before the start of the execution.
- Variable Type;
- Initial value of the variable, which can be a constant or a value returned by script execution.

Click on **"Save"**.

![](https://api.archbee.com/api/optimize/pu5VMc-2TW3GQX4ly5Xp7/nUeahBruJO8QlV00YKZq__image.png)
:::

:::WorkflowBlockItem
In the **Actions** tab, click on **"Add"** and fill in the fields of the Action tab:

- Identifier: How the action will be associated with the flow diagram.
- Name: The name by which the action will be referenced in the flow diagram.
- Rhino script to be executed when the action is triggered.
- Click on **"Include"** and then on **"Save"**.

![](https://api.archbee.com/api/optimize/pu5VMc-2TW3GQX4ly5Xp7/8-dzaGN65vwtye3kqh3vM_image.png)
:::

:::WorkflowBlockItem
Click on the **Diagram** tab to edit the diagram:

- The elements that can be added to the flow are in the palette on the left side of the screen.
- To include an element in the flow, select it and drag it to the drawing page. A pop-up window with the properties of the element will be displayed on the screen.
- Fill in the information according to the chosen element.
- Upon completion of the diagram editing, click the "**Save**" button.

![](https://api.archbee.com/api/optimize/pu5VMc-2TW3GQX4ly5Xp7/mGdMB0EtLy5-8n6ct_oAh_image.png)
:::
::::

### Creating Script-Type Business Rules

::::WorkflowBlock
:::WorkflowBlockItem
In the **Basic Data** tab, fill in the **Name** and **Description** of the Business Rule, the **Application** to which it is associated, and choose the **Script Type**.
:::

:::WorkflowBlockItem
Code the Rhino script that implements the business rule and, if necessary, add variables as explained in the Variables section for Flow type.
:::

:::WorkflowBlockItem
Upon completion of the script editing, click the "**Save**" button on the top toolbar.
:::
::::

:::hint{type="warning"}
⚠ <u>**Attention!**</u> The created business rules are unlocked by default. This means that the rule can be blocked at any time. To block, select the desired rule and click on the **Lock** option.
:::

