Skip to content

Conversation

filiphr
Copy link
Contributor

@filiphr filiphr commented Sep 19, 2025

This PR removes the support for Joda Time.

Joda variables will be read from the database as Java Time

  • Joda DateTime -> java.time.instant
  • Joda LocalDate -> java.time.LocalDate

@filiphr
Copy link
Contributor Author

filiphr commented Sep 19, 2025

Good catch @dbmalkovsky. Thanks

Add support for reading Joda Time variables as Joda Time by using flowable.joda-time-variable-support with value write
<ul>
<li><code>DISABLE</code> - Completely disables Joda Time. If you have Joda Time variables in the database then reading those variables will fail.
</li>
<li><code>READ_AS_JAVA_TIME</code> - Reads Joda Time variables from the database as Joda LocalDate and DateTime. This is the default configuration.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use case:
Completed process/case instance stores joda time variable.

Question:
Do we need to support at least read (if we reopen the case + write) for the time till the instance is not deleted from the history?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, but I am not quite following what you are asking @martin-grofcik. They would be read as Java Time when the READ_AS_JAVA_TIME is used. That's the idea at least. Why would you need to read and not write as Joda Time variables?

From a custom code perspective, you'll need to adjust to Java Time. From a Flowable point of view, Joda time variables won't be supported. Old variables would still work as they would be read as Java time.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep in mind that this is still work in progress, we have not made a final decision for how it should look like.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"work in progress" - yes that's why I am asking.

My understanding of the implementation for currently running instance with joda time variables:
READ_AS_JAVA_TIME - read joda time variable..... I do not take care of writing (done with Java Time).

It means if I have joda time variable in a case/process history, I have to use JodaDateTimeFallbackType to be able to read the variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants