apache / incubator-kie-kogito-runtimes

Kogito Runtimes - Kogito is a cloud-native business automation technology for building cloud-ready business applications.
http://kogito.kie.org
Apache License 2.0
514 stars 199 forks source link

JSR310 support in kogito runtime and dataindex #2733

Open debu999 opened 1 year ago

debu999 commented 1 year ago

Description

Can there be native support to ZonedDateTime in MongoDB java Driver sync. Seems it only have LocalDateTime implemented as part of JSR310 Supported classes are The high level API contains the following key classes:

LocalDate - A date, with no time nor zone-offset LocalTime - A time, with no date nor zone-offset LocalDateTime - A date-time, with no zone-offset OffsetTime - A time and zone-offset, with no date OffsetDateTime - A date-time and zone-offset ZonedDateTime - A date-time, zone-offset and time-zone ZoneOffset - An offset from the time in UTC/GMT ZoneId - A time-zone identifier, used to find the underlying rules

Also need update to mongodb persistance apis for the same https://jira.mongodb.org/browse/JAVA-4835

From Mongodb team on the issue Users wanting alternative data structures and / or more flexibility regarding JSR-310 dates should check out the alternative JSR-310 codecs provider by cbartosiak: bson-codecs-jsr310.

Kogito only registers default mongodb codec and mongo team informed to use the existing codec implementation of jsr310 with https://github.com/cbartosiak/bson-codecs-jsr310 can this be integrated in kogito mongodb integrationn,

Implementation ideas

add codec registration with jsr310codecmongodb into the default mongodb codec in kogito

ricardozanini commented 1 year ago

cc @cristianonicolai

debu999 commented 1 year ago

is this being picked upon for implementation.