Decision
Returns the result of a decision model evaluation. This method processes input data and applies the business logic defined in the decision model to return an outcome. The decision model may involve rules, conditions, and calculations that lead to the final decision result.
Required Scope
decision_execute
Parameters
Parameter Name | Description |
apiKey | A unique key used to authenticate and authorise the calling system. |
logonId | User’s logon Id. |
logonProvider | The authentication provider used for user login (e.g., 'Organization' for Emakin's default login system). |
process | The name or Id of the process related to the decision. |
model | The name or ID of the decision model to be evaluated. |
decision | The name or Id of the specific decision to be executed within the model. |
inputData | Input data for the decision, provided as either an XML or JSON string. |
Example Call
| POST https://mydomain.emakin.com/rest/v1/decision
{
"apiKey": "",
"logonId": "[email protected]",
"logonProvider": "Organization",
"process" : "Decision",
"model" : "dinner",
"decision" : "Dish",
"inputData": "<pool><Season>Fall</Season><NumberOfGuests>2</NumberOfGuests></pool>"
}
|
| HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 26
{"Dish":"Spareribs"}
|