Example: Approved by default

     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 approved by default.

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": false
    }
  }
}

Result

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

Next, let's look at an example that uses the "hardfail" property to deny applications.