-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add DecisionInstanceID to API response for evaluating a DRD #2749
Comments
I'm working on this requirement. Can someone please help assign the issue to me. Goal for the request Update Evaludate Decision API to include decisionInsanceId in the response. Proposed Solution Add decisionInsanceId as the response parameter Current api evaluates decision from ACT_RU_DECISION_DEF table for a specific key. Links |
@kmannuru based on the current logic it may not be just id_ retrieval from ACT_HI_DECINST table because the history events are published post evaluation and persisted on the listener which is when the decision instance id gets generated. |
Hi @kmannuru,
Thank you for your interest in working on this. The tickets are being process by the team and assigned to team members only, no need for an action here . When you are ready raise a PR, put the ticket number to the description. A team member will pick up the PR for a review.
I dig into the code and I don't think this is a good idea. @HarishMalavade is on the right track:
Let me know if you need details about the above but I also encorage you to clone the repository and try it out yourself.
On top of my head, I don't think it's a good idea, the id is the primary key in Other thing to keep in mind is we are talking about history, an option exist that this history is not persisted. ( At the moment, it's not clear (even after reading the complete forum post), the complete use case where/when the decision instance id will be used after retrieving it. Nevertheless, I imagine without breaking the current design of DMN evaluation and data persistence, the Here is reference to the relevant classes if you want to have a look:
Best, |
Thanks Yana for your feedback. I'll work on the changes and share the draft PR for your review. Thank you. |
@yanavasileva I've raised the PR to fix the issue. Please help with the PR review : #4197 |
This issue was imported from JIRA:
User Story (Required on creation):
As a Software Developer, I want to see the instance ID of a DRD when executing it as a standalone DRD. This allows me to evaluate a DRD independent of a process with a processID as reference.
Functional Requirements (Required before implementation):
Technical Requirements (Required before implementation):
Limitations of Scope (Optional):
Hints (optional):
Discussion and a solution for Java from Bernd - <Retrieving decision instance id - Camunda Platform 7 Process Engine - Camunda Platform Forum>(https://forum.camunda.io/t/retrieving-decision-instance-id/6039/3)
Links:
Pull requests
The text was updated successfully, but these errors were encountered: