triyan
January 11, 2024, 7:51am
1
Hi,
when using Zeebe gRPC API to evaluate DMN, there is no field for DecisionInstanceKey, is there a method to refer to evaluated decision in Operate when assessed via API?
thank you
Correct. The response of the Zeebe gRPC call doesn’t contain a reference to Operate’s Id of the decision instance (ref ).
However, the response contains the output of the evaluation, like the output value.
Why do you want to query the Operate API?
What data do you miss from the response?
triyan
January 13, 2024, 1:07pm
3
Hi @Philipp_Ossler ,
Thank you for your reply, I need to get decision instances key based on the response from Zeebe. For example, when I receive the response evaluation from Zeebe using a gRPC call, we need the decision instances key to view the history in Operate
Feel free to create a feature request and describe your use case in detail here: Issues · camunda/zeebe · GitHub
triyan
January 15, 2024, 8:58am
5
thank you @Philipp_Ossler , I created the feature ticket here
opened 08:57AM - 15 Jan 24 UTC
kind/feature
**Is your feature request related to a problem? Please describe.**
when using… gRPC call API (https://docs.camunda.io/docs/apis-tools/zeebe-api/gateway-service/#evaluatedecision-rpc) to evaluate decision, the response does not contains `Decision Instance Key` so we can't see history in Operate decision history.
**Describe the solution you'd like**
the response from this gRPC API https://docs.camunda.io/docs/apis-tools/zeebe-api/gateway-service/#evaluatedecision-rpc contain `Decision Instance Key` that will match Decision Instance Key from Operate decision.
**Additional context**
- example response from gRPC evaluation
```
{
"evaluatedDecisions": [
{
"matchedRules": [
{
"evaluatedOutputs": [
{
"outputId": "OutputClause_1bahk0r",
"outputName": "Label",
"outputValue": "\"exit\""
}
],
"ruleId": "DecisionRule_1pc6v0i",
"ruleIndex": 1
}
],
"evaluatedInputs": [
{
"inputId": "InputClause_0ic99p7",
"inputName": "Input Two",
"inputValue": "\"nah\""
}
],
"decisionKey": "2251799813689079",
"decisionId": "ch120651-d2",
"decisionName": "ch120651-d2",
"decisionVersion": 5,
"decisionType": "DECISION_TABLE",
"decisionOutput": "\"exit\""
},
{
"matchedRules": [
{
"evaluatedOutputs": [
{
"outputId": "Output_1",
"outputName": "Output One",
"outputValue": "\"ch120651\""
}
],
"ruleId": "DecisionRule_01ypjo9",
"ruleIndex": 1
}
],
"evaluatedInputs": [
{
"inputId": "Input_1",
"inputName": "Input One",
"inputValue": "\"Hi\""
}
],
"decisionKey": "2251799813689080",
"decisionId": "ch120651-d1",
"decisionName": "ch120651-d1",
"decisionVersion": 5,
"decisionType": "DECISION_TABLE",
"decisionOutput": "\"ch120651\""
}
],
"decisionKey": "2251799813689080",
"decisionId": "ch120651-d1",
"decisionName": "ch120651-d1",
"decisionVersion": 5,
"decisionRequirementsId": "ch120651",
"decisionRequirementsKey": "2251799813689078",
"decisionOutput": "\"ch120651\"",
"failedDecisionId": "",
"failureMessage": ""
}
```
- there is no field in response that can refer to decision history in Operate
<img width="1373" alt="Screenshot 2024-01-15 at 15 56 31" src="https://github.com/camunda/zeebe/assets/69180950/736579c1-512e-4ce1-a5bc-9b09bf5c6f02">
system
Closed
February 15, 2024, 7:56am
6
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.