now_is_not_date_and_time.dmn (1.8 KB)
I have four FEEL expression in DMN file.
now()
date and time( "2012-12-24T23:59:00" ) - date and time( "2012-12-22T03:45:00" )
now() - date and time ( "2012-12-24T23:59:00" )
now() - now()
I think all of them can have a result. But the third one return Null. Other three is correct.
The following result is generate by API /decision-definition/key/Decision_1rkxynt/evaluate
(Camunda 7.20.0)
[
{
"a": {
"type": "String",
"value": "2024-04-23T11:01:22.618119500+08:00[Asia/Shanghai]",
"valueInfo": {}
},
"b": {
"type": "String",
"value": "PT68H14M",
"valueInfo": {}
},
"c": {
"type": "Null",
"value": null,
"valueInfo": {}
},
"d": {
"type": "String",
"value": "PT0S",
"valueInfo": {}
}
}
]