fjtirado commented on code in PR #2237:
URL: 
https://github.com/apache/incubator-kie-kogito-apps/pull/2237#discussion_r2161850472


##########
data-index/data-index-storage/data-index-storage-common/src/main/java/org/kie/kogito/index/storage/ModelProcessInstanceStorage.java:
##########
@@ -72,28 +72,40 @@ public void indexVariable(ProcessInstanceVariableDataEvent 
event) {
 
     @Override
     public void indexGroup(MultipleProcessInstanceDataEvent events) {
+        ProcessInstance processInstance = null;
         for (ProcessInstanceDataEvent<?> event : events.getData()) {
+            if (processInstance == null) {
+                processInstance = findProcessInstance(event);

Review Comment:
   I would have used a do-while, but ok



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to