What is Business Rule (BR) and How to implement in vDesigner1.0?

What is Business Rule (BR) and How to implement in vDesigner1.0 ?

3 Likes
  • Business rule always consists of multiple/single rule put on LHS and RHS side
  • These can be values or JSON path in $. format and directly compared and than evaluated in result of true or false format
    Example:

($.LAF.LAF_DETAILS.ADDRESS.ADDRESS = DELHI AND $.LAF.LAF_ID = LPSALE20191231231 AND $.LAF.LAF_DETAILS.HOLDERS[0].MEMBER_ID != M10027620190122111114)

Above JSON path will be evaluated from below Business object, comapre and than will result in true/ false format

Business object:
business

Features of Business Rule?

  • Supports multiple operators like AND, OR, !=, GT, LT, GT=, LT=, IN, NOTIN, COUNT, SUBSTR, CALCULATE.
  • Ability to resolve any complex path containing above operators than giving final result in true or false.

Example: '($.AOF.DATA.AOF_ID = aditya sharma AND $.AOF.DATA.AOF_ID = $.AOF.DATA.AOF_ID AND CALCULATE($.LAF.LAF_DETAILS.DATEOFINCORPORATION,CURRENT_DATE,MONTH) LT $.LAF.LAF_DETAILS.PROGRAM.OBJECT.buss_vintage AND ($.AOF.DATA.HOLDERS[0].PAN.PAN_LNAME IN (Aditya,Sonam,Tushar)) OR aditya NOTIN (aditya,satish,tushar) OR (Count($.AOF.DATA.HOLDERS[0].PAN.PAN_LNAME) = Count($.AOF.DATA.HOLDERS[0].MOBILE_NO_DTLS.IS_VERIFIED)) OR (COUNT(aditya) = 7)

Use case?

  • To Show/Hide any field in Front-End on basis of result of Business Rule.
  • Restrict to navigate to Tab on like OV screen on basis of BR result.
  • Restrict to next task perform on any action on basis of BR result.
3 Likes