Now we want to keep track of all evaluations. In the Camunda Cockpit, there is an unique instance id for each of the evaluations. Is it possible to retrieve the decision instance id via the API directly after the evaluation?
With the following statement, we can not be sure what really is the last evaluation we performed when multiple processes are running.
Its quite an old thread, but I just stumbled upon the same requirement, and while this is not supported out-of-the-box I hacked a quick plugin to capture that Id. I wanted to share that here for reference.
Hi Bernd! Great that you suggested a solution. However, this only work if you are coding in Java. We are using the engine strictly on a REST basis (which you have said is no problem ;-). Do you have a small snippet or suggestion on how we can get the DecisionID when using REST? Best regards, Finnur
Can you describe your requirement in more detail? Personally I think it will be hard in a REST only mode unless the ID is added there somewhere. But to propose such a feature request it would be important to understand the WHY. Thanks!
I can’t see if Finnur ever provided requirements for this feature, but I find myself wondering about the same thing
If you evaluate a decision directly using the REST API (no BPMN involved, just a decision table) the result of the decision evaluation only contains the output (result) of the decision evaluation, not the decisionInstanceId. This seems a bit odd, because if you would ever like to get more information about that specific decision evaluation (using GET /history/decision-instance/{id} ) you will need that decisionInstanceId to make the call.
So from my perspective adding the decisionInstanceId to the output json of the decision evaluations (e.g. POST /decision-definition/key/{key}/evaluate) would make this more intuitive.
is it supported out of the box in Camunda 8 now ? basically in Camunda 8 -
Is there a way to search for decision instances using data which is not used for decision evaluation - i.e using any data which is not used as an input of my DMN decision table ?
and with that how can we use any business data which is used in decision evaluation to find the decision instances ?
how to find the decision instance id/key of a decision evaluated from a grpc client say java or c# ?