wmedvede commented on code in PR #2114:
URL: 
https://github.com/apache/incubator-kie-kogito-apps/pull/2114#discussion_r1801362733


##########
data-index/data-index-common/src/main/java/org/kie/kogito/index/service/IndexingService.java:
##########
@@ -79,14 +79,8 @@ public class IndexingService {
     public void indexProcessInstanceEvent(ProcessInstanceDataEvent<?> event) {
         ProcessInstanceStorage storage = manager.getProcessInstanceStorage();
         if (event instanceof MultipleProcessInstanceDataEvent) {
-            for (ProcessInstanceDataEvent<?> item : 
((MultipleProcessInstanceDataEvent) event).getData())
-                indexProccessInstanceEvent(storage, item);
-        } else {
-            indexProccessInstanceEvent(storage, event);
+            storage.indexGroup(((MultipleProcessInstanceDataEvent) event));
         }

Review Comment:
   I think an else is missing here to follow the pattern if {} else if {] else 
if ....



-- 
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