Date in BoundaryEvent

Hi,

I would like a task to transition automatically if a specific event does not occur in 7 days.
For that, I use a timerEventDefinition (https://docs.camunda.org/manual/7.3/api-references/bpmn20/#events-timer-events). Sepcifying it as a timeDuration with “P7D” works just fine.
If I set boundaryEvent type to “timeDate” and value to “${expiry}”, where the latter is java.util.Date(), I get an exception stating that “org.camunda.bpm.engine.ProcessEngineException: condition expression returns non-Boolean: result has class java.lang.String and not java.lang.Boolean”.

What is the right way to set dynamic value for timeDate?

Thanks,
Gin

My bad. It does work and the error was elsewhere.