Example: Declined by Qualifile account acceptance

     SpringboardThis topic is related to Springboard.   |     Form Builder |    23.10This feature was updated in 23.10 

This example demonstrates a Decision Framework scenario whereby applications are declined by Qualifile account acceptance.

Configuration

{
  "destinations": [
    {
      "id": "approved",
      "isDefault": true
    },
    {
      "id": "declinedFCRA"
    },
    {
      "id": "declined"
    }
  ],
  "paths": [
    {
      "id": "declinedByQualifileAccountAcceptance",
      "destination": "declinedFCRA",
      "condition": {
        "and": [
          {
            "==": [ { "var": ["txn.propertyMap.FisQualiFile\\.PrimaryApplicant\\.accountAcceptanceTxt"] }, "DECLINE" ]
          },
          {
            "and": [
              {
                "!=": [
                  true,
                  {
                    "in": [
                      { "var": ["txn.propertyMap.FisQualiFile\\.PrimaryApplicant\\.accountActionTxt1"] },
                      ["D0100001", "D0100002", "D0100002", "D0100004"]
                    ]
                  }
                ]
              }
            ]
          }
        ]
      }
    },
    {
      "id": "declinedByQualifileCreditQuality",
      "destination": "declined",
      "condition": {
        "and": [
          {
            "==": [ { "var": ["txn.propertyMap.FisQualiFile\\.PrimaryApplicant\\.accountAcceptanceTxt"] }, "DECLINE" ]
          },
          {
            "in": [
                { "var": ["txn.propertyMap.FisQualiFile\\.PrimaryApplicant\\.accountActionTxt1"] },
                ["D0100001", "D0100002", "D0100002", "D0100004"]
            ]
          }
        ]
      }
    }
  ],
  "version": "1.0.0"
}

Data

{
  "txn": {
    "propertyMap": {
      "FisQualiFile\\.PrimaryApplicant\\.accountActionTxt1": "UNKNOWN",
      "FisQualiFile\\.PrimaryApplicant\\.accountAcceptanceTxt": "DECLINE"
    }
  }
}

Result

{
  "destinations" : {
    "approved": {
      "isActive": false,
      "reasons": []
    },
    "declined": {
      "isActive": false,
      "reasons": []
    },
    "declinedFCRA": {
      "isActive": true,
      "reasons": ["declinedByQualifileAccountAcceptance"]
    }
  },
  "calculatedDate": "2018-01-13T18:25:43.511Z"
}

Next, let's look at an example that controls when applications go to review.