Example: Denied by "hardFail"

     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 denied by the "hardfail" property.

Configuration

{
  "destinations": [
    {
      "id": "approved",
      "isDefault": true
    },
    {
      "id": "denied"
    }
  ],
  "paths": [
    {
      "id": "hardFail",
      "destination": "denied",
      "condition": {
        "===": [ { "var": [ "txn.propertyMap.hardFail" ] }, true ]
      }
    }
  ],
  "version": "0.1"
}

Data

{
  "txn": {
    "propertyMap": {
      "hardFail": true
    }
  }
}

Result

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

Next, let's look at an example that uses IDV verify status to decline applications.