Compare two dates using Java Query API

Hi,

I have a project that use Camunda through JAVA API and I need to compare two java.util.date. One of the value is stored as process variable, so I tried to use the task service to made a query but it doesn’t work.

I’m using v7.8

Thanks for your help

Hi @Salvo45 ,

${date1.before(now())} can be used in an expression after a gateway. See https://docs.camunda.org/manual/7.9/user-guide/process-engine/expression-language/#internal-context-functions

Hope this helps, Ingo