-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
RHPAM-4822 find EventNode by unique id #2347
Conversation
ok to test |
SonarCloud Quality Gate failed. 0 Bugs 9.1% Coverage Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
<dependency> | ||
<groupId>org.jbpm</groupId> | ||
<artifactId>jbpm-services-api</artifactId> | ||
</dependency> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not correct at all. the engine cannot depend on the services api at all.
private Node getNodeByNodeInstanceId(long id, long nodeInstanceId) { | ||
Node node = null; | ||
RuntimeDataService service = (RuntimeDataService) ServiceRegistry.get().service(ServiceRegistry.RUNTIME_DATA_SERVICE); | ||
Collection<NodeInstanceDesc> nodes = service.getProcessInstanceNodeInstanceHistory(id, nodeInstanceId, new QueryContext(0, 1)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
incorrect either. the engine should not access the runtime data service. this goes against the design.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rejected. this entangles the design of the system. The are ways to access the node by uniqueId already
JIRA: RHPAM-4822
Avoid classcastexception finding event nodes by unique id