decnet is an RESTful execution server for decision models powered by jDEC.
Artifacts of decnet are published in regular intervals to the releases section of GitHub. They can be seen at https://github.com/materna-se/decnet/releases.
Returns the decision model.
Name | In | Type | Required | Description |
---|---|---|---|---|
namespace | path | string | true | none |
Status | Meaning | Description |
---|---|---|
200 | OK | The model is returned. |
404 | Not Found | The model was not found. |
Executes the decision model.
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | object | false | none |
namespace | path | string | true | none |
{
"Employment Status": "UNEMPLOYED"
}
Status | Meaning | Description |
---|---|---|
200 | OK | The result of the model execution. |
404 | Not Found | The model was not found. |
Status Code 200
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
outputs | object | false | none | none |
context | object | false | none | none |
messages | [string] | false | none | none |
The result of the model execution.
{
"outputs": {
"Employment Status Statement": "You are UNEMPLOYED"
},
"context": {
"Employment Status Statement": {}
},
"messages": []
}
Imports the decision model.
Name | In | Type | Required | Description |
---|---|---|---|---|
namespace | path | string | true | none |
Status | Meaning | Description |
---|---|---|
204 | No Content | The model was imported successfully. |
Status Code 204
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
messages | [string] | false | none | Warnings that occurred during compilation. |
{
"messages": [
"DMN: Missing expression for Decision Node 'Employment Status Statement'."
]
}
DELETE /{namespace}
Deletes the decision model.
Name | In | Type | Required | Description |
---|---|---|---|---|
namespace | path | string | true | none |
Status | Meaning | Description |
---|---|---|
204 | No Content | The model was deleted successfully. |
Name | In | Type | Required | Description |
---|---|---|---|---|
namespace | path | string | true | none |
Status | Meaning | Description |
---|---|---|
200 | OK | Returns the input structure that is required for executing the decision model. |
404 | Not Found | The model was not found. |
Returns the input structure that is required for executing the decision model.
{
"Employment Status": {
"type": "string",
"options": [
"UNEMPLOYED",
"EMPLOYED",
"SELF-EMPLOYED",
"STUDENT"
]
}
}