BR Validation

You can apply this task to implement the decision-based application function. When you configure this task, you need to create a business rule. In the business rule, you need to define a condition.

When this task is executed, the user-specific function is checked against the condition in the business rule. If the business rule’s condition is satisfied, the application performs the next function.

For instance:- Assume you want to implement a condition where if the user’s status is active, the application will execute ten tasks sequentially. Thus, when the BR validation task is executed, it checks the user’s current status. If the user’s status is active, the application executes ten tasks sequentially.

To configure the BR Validation task:

  1. In the Events dialog box, scroll down.
  2. Under Add Tasks, click the Select Task list, and then select BR_VALIDATION task.
  3. Click Add Task Config, and the Add Task dialog box opens.
  4. In the Add Task dialog box, click the Configuration area to expand it.
  5. In the Configuration area, click Add BRE, and the ADD / EDIT BR dialog box opens.
  6. In the ADD / EDIT BR dialog box, enter the configure the business rule as follows:
FieldDescription
BR NameIn this field, enter the business rule’s name.
DescriptionIn this field, you can enter a brief description of the task, although this field is optional.
BR StatementIn this field, enter the business rule condition.

#Sample Business Rule Condition
getVal(“tempObject.status”) == “active” and getVal(“tempObject.user_id”) == “123”

When the business rule related to the above condition is executed, it checks the user’s current status and user id. If the user’s status is active and the user ID is “123”, the application executes ten tasks sequentially.
Success Message
(Optional Step)
Click this list and then select the message that the application will display after the business rule’s condition is satisfied.

Before you select the message in the Success Message list, you need to define the message in the Message Master module. You can access the Message Master module on the Vahana portal’s dashboard.
Failure Message
(Optional Step)
Click this list and then select the message that the application will display after the business rule’s condition is not satisfied.

Before you select the message in the Failure Message list, you need to define the message in the Message Master module. You can access the Message Master module on the Vahana portal’s dashboard.
  1. After you define the business rule, click Submit to configure the business rule.
  2. On the Add Task dialog box, click Submit to configure the BR_VALIDATION task.

You can use the BR_VALIDATION task to implement several application-related scenarios. These scenarios help you achieve the intended application behavior.

Was this article helpful?
YesNo