Evaluate decision
POST/decision-definitions/evaluation
Evaluates a decision. You specify the decision to evaluate either by using its unique key (as returned by DeployResource), or using the decision ID. When using the decision ID, the latest deployed version of the decision is used.
Request
- application/json
Body
required
- EvaluateDecisionRequestByKey
- EvaluateDecisionRequestById
The unique key identifying the decision to be evaluated. Cannot be used together with decisionDefinitionId.
variables object
The message variables as JSON document.
Additional properties allowed.
The tenant ID of the decision.
The ID of the decision to be evaluated. Cannot be used together with decisionDefinitionKey. When using the decision ID, the latest deployed version of the decision is used.
variables object
The message variables as JSON document.
Additional properties allowed.
The tenant ID of the decision.
Responses
- 200
- 400
- 404
- 500
The decision was evaluated.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- Array [
- Array [
- ]
- ]
- Array [
- ]
- ]
The unique key identifying the decision which was evaluated.
The ID of the decision which was evaluated.
The name of the decision which was evaluated.
The version of the decision which was evaluated.
The ID of the decision requirements graph that the decision which was evaluated is part of.
The unique key identifying the decision requirements graph that the decision which was evaluated is part of.
JSON document that will instantiate the result of the decision which was evaluated.
The ID of the decision which failed during evaluation.
Message describing why the decision which was evaluated failed.
The tenant ID of the evaluated decision.
The unique key identifying this decision evaluation.
evaluatedDecisions object[]
The unique key identifying the decision which was evaluate.
The ID of the decision which was evaluated.
The name of the decision which was evaluated.
The version of the decision which was evaluated.
The type of the decision which was evaluated.
JSON document that will instantiate the result of the decision which was evaluated.
The tenant ID of the evaluated decision.
matchedRules object[]
The ID of the matched rule.
The index of the matched rule.
evaluatedOutputs object[]
The ID of the evaluated decision output.
The name of the evaluated decision output.
The value of the evaluated decision output.
evaluatedInputs object[]
The ID of the evaluated decision input.
The name of the evaluated decision input.
The value of the evaluated decision input.
{
"decisionDefinitionKey": 0,
"decisionDefinitionId": "string",
"decisionDefinitionName": "string",
"decisionDefinitionVersion": 0,
"decisionRequirementsId": "string",
"decisionRequirementsKey": 0,
"output": "string",
"failedDecisionDefinitionId": "string",
"failureMessage": "string",
"tenantId": "string",
"decisionInstanceKey": 0,
"evaluatedDecisions": [
{
"decisionDefinitionKey": 0,
"decisionDefinitionId": "string",
"decisionDefinitionName": "string",
"decisionDefinitionVersion": 0,
"decisionDefinitionType": "string",
"output": "string",
"tenantId": "string",
"matchedRules": [
{
"ruleId": "string",
"ruleIndex": 0,
"evaluatedOutputs": [
{
"outputId": "string",
"outputName": "string",
"outputValue": "string"
}
]
}
],
"evaluatedInputs": [
{
"inputId": "string",
"inputName": "string",
"inputValue": "string"
}
]
}
]
}
The provided data is not valid.
- application/problem+json
- Schema
- Example (from schema)
Schema
Default value: about:blank
A URI identifying the problem type.
A summary of the problem type.
Possible values: >= 400
and <= 600
The HTTP status code for this problem.
An explanation of the problem in more detail.
A URI identifying the origin of the problem.
{
"type": "about:blank",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}
The decision is not found.
- application/problem+json
- Schema
- Example (from schema)
Schema
Default value: about:blank
A URI identifying the problem type.
A summary of the problem type.
Possible values: >= 400
and <= 600
The HTTP status code for this problem.
An explanation of the problem in more detail.
A URI identifying the origin of the problem.
{
"type": "about:blank",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}
An internal error occurred while processing the request.
- application/problem+json
- Schema
- Example (from schema)
Schema
Default value: about:blank
A URI identifying the problem type.
A summary of the problem type.
Possible values: >= 400
and <= 600
The HTTP status code for this problem.
An explanation of the problem in more detail.
A URI identifying the origin of the problem.
{
"type": "about:blank",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}