fjtirado commented on code in PR #3764:
URL: 
https://github.com/apache/incubator-kie-kogito-runtimes/pull/3764#discussion_r1829698855


##########
api/kogito-events-core/src/main/java/org/kie/kogito/event/process/MultipleProcessInstanceDataEvent.java:
##########
@@ -35,8 +35,16 @@ public MultipleProcessInstanceDataEvent(URI source, 
Collection<ProcessInstanceDa
     }
 
     public boolean isCompressed() {
-        Object extension = 
getExtension(MultipleProcessInstanceDataEvent.COMPRESS_DATA);
-        return extension instanceof Boolean ? ((Boolean) 
extension).booleanValue() : false;
+        return 
isCompressed(getExtension(MultipleProcessInstanceDataEvent.COMPRESS_DATA));
+    }
+
+    public static boolean isCompressed(Object extension) {
+        if (extension instanceof Boolean) {
+            return ((Boolean) extension).booleanValue();
+        } else if (extension instanceof String) {
+            return Boolean.parseBoolean((String) extension);
+        }
+        return false;

Review Comment:
   well, when the compress is not enable, there will be not header. 
   Also, currently, there is not headers. 
   So that log I guess will cause a lot of confussion. 



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