EdgeVerve / feel

Expression Language for creating and executing business rules in decision table based on DMN 1.1 specification for conformance level 3
MIT License
93 stars 48 forks source link

"now" equivalent ? #3

Closed raghav135 closed 7 years ago

raghav135 commented 7 years ago

Hi, is there a way use today's date / date time in FEEL ?

I guess the actual specification does not support this, is there any workaround that we can use?

Sample use case: we know date of birth in payload. If age < ... then ...

There are two problems: The date of birth is a dynamic date field, not a hardcoded string in FEEL The "now" issue, FEEL expression does not support it

pragyandas commented 7 years ago

@raghav135 The support for current date and time has been added to feel . Please refer to The Story of Now to know more.

raghav135 commented 7 years ago

Thanks for example.