Store a temporal value from an expression as variable #7054
Labels
kind/feature
Categorizes an issue or PR as a feature, i.e. new behavior
scope/broker
Marks an issue or PR to appear in the broker section of the changelog
severity/mid
Marks a bug as having a noticeable impact but with a known workaround
Milestone
Is your feature request related to a problem? Please describe.
In a process, I need to calculate a temporal value (i.e. date, time, date-time, or duration) in an expression and store it in a variable. Later, the variable may be used by a timer event.
Currently, the temporal value is not serialized as a variable. Instead, it replaces the value with
null
.As a workaround, I need to transform the value in the expression into a string explicitly.
This way is also mentioned in the docs: https://docs.camunda.io/docs/product-manuals/concepts/expressions#temporal-expressions
However, it is easy to forget to transform the value and it's hard to root cause the problem.
Describe the solution you'd like
A temporal value is stored as a string variable by default.
The string value can be used in a FEEL conversion function to restore the temporal value.
Describe alternatives you've considered
Native support for temporal values without string serialization. But JSON doesn't have a type for these values.
Additional context
The text was updated successfully, but these errors were encountered: