Creating Business Rules

Complete the following steps to create business rules:

  1. L og in to the ONE system.

  2. Click Menus/Favs > Tools > Business Rules.
    The Business Rules screen appears.


    images/download/attachments/131827711/image-2023-1-19_17-45-36-version-1-modificationdate-1674661088000-api-v2.png

  3. Click Create Business Rule.
    The Create Business Rule popup window appears.

    images/download/attachments/131827711/image-2023-1-19_17-49-7-version-1-modificationdate-1674661058000-api-v2.png

  4. Fill out the following fields. Fields with an asterisk ( * ) are required.

    Field

    Description

    Name *

    Enter a name for the new business rule.

    Context *

    Select a context from the dropdown menu.

    Active *

    Select Yes to mark the business rule as active, or select No to mark it as inactive.

    Test User

    Type a user name or use the picker tool to select the test user. If a user name is specified, the validation is only executed for that specific user.

    Description *

    Type a description for the business rule. Users see this description if the validation fails.

  5. Click "If" Conditions to go to the next tab.
    The "If" Conditions tab appears.

    images/download/attachments/131827711/image-2023-1-19_17-55-57-version-1-modificationdate-1674661058000-api-v2.png



  6. Click Add Line.

  7. In the * Sub Context column, click inside the field.
    A Sub-Context popup appears.

  8. Select a sub-context from the dropdown field, and then click Apply.

  9. In the * Expression column, click inside the field.
    The Configure "IF" expression popup window appears.

    images/download/attachments/131827711/image-2023-1-19_18-4-28-version-1-modificationdate-1674661058000-api-v2.png



  10. Select a function by clicking the (+) sign next to it or click Data Fields and select a data field.

  11. Click Save Expression.

  12. Click the "Then" Conditions to go to the next tab.
    The "Then" Conditions tab appears.

    images/download/attachments/131827711/image-2023-1-19_18-12-33-version-1-modificationdate-1674661058000-api-v2.png



  13. Click Add Line and fill in the following fields. Fields with an asterisk (*) are required.

    Field

    Description

    ID

    This field is auto-populated.

    *Sub Context

    Select a sub-context from the dropdown menu and click Apply.

    Sub Type

    Select a subtype from the dropdown menu and click Apply.

    Field

    Select a field from the dropdown menu and click Apply.

    *Expression

    Click to enter a valid condition and click Apply.

    Valid Error

    Click to enter a validation error message.

  14. Click Save.

Adding Validation Tests

  1. Click the Tests tab on the Create Business Rule popup window.
    The Tests tab appears.

    images/download/attachments/131827711/image-2023-1-19_20-49-29-version-1-modificationdate-1674661058000-api-v2.png



  2. Click Add Line.

  3. Click in the Values column.
    A popup window appears.

    images/download/attachments/131827711/image-2023-1-19_20-59-8-version-1-modificationdate-1674661058000-api-v2.png

  4. In the Fields column, select a value from the dropdown menu and click Apply.

  5. In the Variables column, type the variable value.

  6. Click Add Test Value to add more tests.

  7. Click Save Values.
    A success message appears.