Dependency contexts#

Overview#

The dependency context defines additional data pushed to the transformers sequences, data which is needed as helper data for the transformation algorithm.

The data in the dependency context is weakly formatted. A dependency context is represented (instantiated) with an array of evidences sets.

IMPORTANT: the evidences sets used in the dependency context do not need to be defined in RPS CoreConfiguration

JSON instantiation#

Dependency contexts are instantiated using JSON in order to use them in the Transform API requests.

{
  "dependencyContext": {
    "guid": "[string]",
    "evidences": [
      {
        "name": "[string]",
        "value": "[string]"
      },
      "..."
    ]
  }
}
JSON attributeTypeDescriptionRequired
guid
string
a random generated valid GUID defining the dependency context i
evidences
array
the evidences set. It is an array of one or more evidences objects {name,value}
.evidences[j] .name
string
the name of the evidence j
.evidences[j] .value
string
the value of the evidence j

Example of JSON instantiation#

{
  "dependencyContext": {
    "guid": "38d891de-7bd5-42ef-8150-d0d44ce9316f",
    "evidences": [
      {
        "name": "city",
        "value": "Rome"
      },
      {
        "name": "length",
        "value": "37"
      }
    ]
  }
}