Use Zeebe's clock for evaluating decisions #8093
Labels
area/ux
Marks an issue as related to improving the user experience
component/engine
component/zeebe
Related to the Zeebe component/team
kind/toil
Categorizes an issue or PR as general maintenance, i.e. cleanup, refactoring, etc.
scope/broker
Marks an issue or PR to appear in the broker section of the changelog
Milestone
Description
Currently, the DMN engine doesn't provide a way to set a clock. The FEEL engine uses a clock to retrieve the current time (i.e. for evaluating
now()
ortoday()
). If no clock is set then the FEEL engine uses the system time.In general, this is fine for most use cases. Except for testing, when the tests case manipulates the time. As a result, the DMN engine would not use the time that is set for Zeebe.
When the DMN engine supports setting a clock then we should use it in the DMN module to enable these test cases. This should look similar to the expression language module.
blocked by #8082
requires camunda/dmn-scala#105
The text was updated successfully, but these errors were encountered: