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


##########
api/kogito-events-api/src/main/java/org/kie/kogito/event/process/ProcessInstanceNodeEventBody.java:
##########
@@ -105,7 +114,9 @@ public void readEvent(DataInput in) throws IOException {
         workItemId = readUTF(in);
         slaDueDate = readDate(in);
         data = (Map<String, Object>) readObject(in);
-        retrigger = (Boolean) readObject(in);
+        if (flags.contains(KogitoMarshallEventFlag.RETRIGGER)) {

Review Comment:
   This is the key change, do not try to read the byte if the cloud event 
header does not contain the flag



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