Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This custom schema element represents a justification tree for the configured attribute. When you add this element to your domain schema, it looks like this:

image2018-8-17_14-26-3.pngImage Added

Parameters

The following parameters are available:

Parameter nameRequiredDefault valueDescription
entityNameyesn/aThe name of the entity
attributeNameyesn/aThe name of the attribute within the entity for which the justification tree should be created
assetFormatno'Text'The asset format that should be returned for the justification tree justification texts

Example

A Justification Tree in a response of a BaaRS could look like this:

Code Block
javascript
javascript
{
    "Costs": 3000.0,
    "AQ_JustificationTree": {
        "key": "AnnualAmount",
        "values": ["3000.0"],
        "justification": "A car that is over 60k has a high annual tax.",
        "used_values": [
            {
                "key": "ModelYear",
                "values": ["1993"],
                "justification": null
            },
            {
                "key": "Value",
                "values": ["7000.0"],
                "justification": null
            }
        ]
    }
}