diff --git a/kogito-springboot-examples/process-usertasks-with-security-springboot/src/main/java/org/kie/kogito/tests/LogEventPublisher.java b/kogito-springboot-examples/process-usertasks-with-security-springboot/src/main/java/org/kie/kogito/tests/LogEventPublisher.java index 882c0ef2ee..e7a0e64f9b 100644 --- a/kogito-springboot-examples/process-usertasks-with-security-springboot/src/main/java/org/kie/kogito/tests/LogEventPublisher.java +++ b/kogito-springboot-examples/process-usertasks-with-security-springboot/src/main/java/org/kie/kogito/tests/LogEventPublisher.java @@ -17,6 +17,8 @@ import java.util.Collection; +import com.fasterxml.jackson.databind.json.JsonMapper; +import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import org.kie.kogito.event.DataEvent; import org.kie.kogito.event.EventPublisher; import org.springframework.stereotype.Component; @@ -27,7 +29,9 @@ @Component public class LogEventPublisher implements EventPublisher { - ObjectMapper json = new ObjectMapper(); + ObjectMapper json = JsonMapper.builder() + .addModule(new JavaTimeModule()) + .build(); @Override public void publish(DataEvent event) {