Java.time in JUEL

Hello all

I’d like to know from the experts whether it’s possible to use something such as:

${java.time.Instant.now().toString();}

ie. can I use the java.time methods in a JUEL expression?

Hi @eugene,

start with the internal context function dateTime(): https://docs.camunda.org/manual/latest/user-guide/process-engine/expression-language/#internal-context-functions

It returns a Joda time object and you can add or substract anything from it.

Java Time is not supported in the moment as the engine is Java 7 enabled.

Hope this helps, Ingo

1 Like

Thanks @Ingo_Richtsmeier

Oh yes… java.time is Java 8.