You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by "fjtirado (via GitHub)" <gi...@apache.org> on 2024/01/08 21:20:49 UTC

Re: [PR] [FIX_#1923] Refactor persistent layer to allow optimitization for [incubator-kie-kogito-apps]

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


##########
data-index/data-index-storage/data-index-storage-common/src/main/java/org/kie/kogito/index/storage/merger/ProcessInstanceNodeDataEventMerger.java:
##########
@@ -66,13 +63,10 @@ public ProcessInstance merge(ProcessInstance pi, ProcessInstanceDataEvent<?> dat
         nodeInstance.setName(body.getNodeName());
         nodeInstance.setType(body.getNodeType());
         switch (body.getEventType()) {
-            case ProcessInstanceNodeEventBody.EVENT_TYPE_ENTER:
+            case EVENT_TYPE_ENTER:
                 nodeInstance.setEnter(toZonedDateTime(body.getEventDate()));
                 break;
-            case ProcessInstanceNodeEventBody.EVENT_TYPE_ERROR:

Review Comment:
   We will do nothing anyway, this case is not really needed



-- 
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: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org