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

[Incubator-kie-issues-1790] Enhancing business calendar flexibility #3850

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Abhitocode
Copy link
Contributor

@Abhitocode Abhitocode commented Feb 20, 2025

In order to allow customers extend the default BusinessCalendar functionality we should allow them to provide their custom calendar implementation (a java class implementing the BusinessCalendar.java interface) and configure the application to help wiring it in the workflow engine.

closes: apache/incubator-kie-issues#1790

@Abhitocode Abhitocode changed the title Enhancing business calendar flexibility [Incubator-kie-issues-1790] Enhancing business calendar flexibility Feb 21, 2025
Copy link
Contributor

@gitgabrio gitgabrio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Abhitocode
Please, remove the new template and modify the CompilationUnit of the original one programmatically, if needed (i.e. in case of custom class)
All kogito is based on code-generation, and we can't manage to have different templates (or even couple of them) whenever the body of a method has to be modified.

We use JavaParser as standard library, and there are multiple CodegenUtils classes in our codebase.

This class -> https://github.com/apache/incubator-kie-drools/blob/main/kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/codegen/feel11/ASTCompilerHelper.java

demonstrate a lot of different use cases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enhancing business calendar flexibility
2 participants