Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Zeebe's clock for evaluating decisions #8093

Open
saig0 opened this issue Oct 28, 2021 · 0 comments
Open

Use Zeebe's clock for evaluating decisions #8093

saig0 opened this issue Oct 28, 2021 · 0 comments
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

Comments

@saig0
Copy link
Member

saig0 commented Oct 28, 2021

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() or today()). 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

@saig0 saig0 added 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 Impact: Usability labels Oct 28, 2021
@saig0 saig0 added this to the Evaluate DMN decisions milestone Oct 28, 2021
@npepinpe npepinpe added area/ux Marks an issue as related to improving the user experience and removed Impact: Usability labels Apr 11, 2022
@romansmirnov romansmirnov added the component/zeebe Related to the Zeebe component/team label Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

5 participants