How to build an Condition Expression for validating a Date within a Date Range in Camunda 8

Hi,

we´re trying to validate an date on an sequence flow via Condition Expression. The date has to be between today and -9 Months. So far we have tried Expression with the duration() and during() Functions but the validation ends always in false or a Null. Here is our latest examples:

date(testDate)=during(date(testDate), [date("2023-08-01")..today()])
date(testDate)=during(date(testDate), [today()..today()-duration("P9M")])
date(testDate)=during(date(testDate), today()-duration("P9M")

What would be the best way of actually achieving this?

Best regards
Andreas

1 Like

Perhaps

(date(testDate)>(date(today())-duration("P9M"))) and (date(testDate)<date(today()))
1 Like

Thank you very much. This resolved our issue :+1:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.