How to implement business rules (BR/ BRE) for enable /disable component based on user role

How to implement BRE for User role management.

  1. Go to Business Rule section from the left Panel in vFlow.
  2. Click on Add BRE.
  3. Provide the name. And write the BR statement.
    For example: ‘getVal(‘userObject.USER.role’) == ‘Admin’.
  4. Submit the BRE.

In task group:

  1. Create a CONTROL_ENABLE and CONTROL_DISABLE Task.
  2. Provide name , sequence and other required field.
  3. In Br Id section : Select the configured BRE accordingly.
  4. In Configuration: Provide the name of the Element on which you need to apply BR.
  5. Submit the Task and Task group.
  6. Create an Event and map it to the page or the respective place according to the journey of the app.

How to implement BRE for User role management.

  1. Go to Business Rule section from the left Panel in vFlow.
  2. Click on Add BRE.
  3. Provide the name. And write the BR statement.
    For example: ‘getVal(‘userObject.USER.role’) == ‘Admin’.
  4. Submit the BRE.

In task group:

  1. Create a CONTROL_ENABLE and CONTROL_DISABLE Task.
  2. Provide name , sequence and other required field.
  3. In Br Id section : Select the configured BRE accordingly.
  4. In Configuration: Provide the name of the Element on which you need to apply BR.
  5. Submit the Task and Task group.
  6. Create an Event and map it to the page or the respective place according to the journey of the app.
2 Likes