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#1344] Refactoring/reorganizing Functions #6005

Merged
merged 5 commits into from
Jul 1, 2024

Conversation

gitgabrio
Copy link
Contributor

Fixes apache/incubator-kie-issues#1344

How to replicate CI configuration locally?

Build Chain tool does "simple" maven build(s), the builds are just Maven commands, but because the repositories relates and depends on each other and any change in API or class method could affect several of those repositories there is a need to use build-chain tool to handle cross repository builds and be sure that we always use latest version of the code for each repository.

build-chain tool is a build tool which can be used on command line locally or in Github Actions workflow(s), in case you need to change multiple repositories and send multiple dependent pull requests related with a change you can easily reproduce the same build by executing it on Github hosted environment or locally in your development environment. See local execution details to get more information about it.

How to retest this PR or trigger a specific build:
  • for pull request and downstream checks

    • Push a new commit to the PR. An empty commit would be enough.
  • for a full downstream build

    • for github actions job: add the label run_fdb
  • for Jenkins PR check only

@gitgabrio gitgabrio changed the title [incubator-kie-issues#1344] Rrefactoring/reorganizing Functions [incubator-kie-issues#1344] Refactoring/reorganizing Functions Jun 27, 2024
@yesamer yesamer added the DMN label Jun 27, 2024

import java.math.BigDecimal;
import java.math.RoundingMode;

import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity;
import org.kie.dmn.feel.runtime.events.InvalidParametersEvent;
import org.kie.dmn.feel.runtime.functions.BaseFEELFunction;
import org.kie.dmn.feel.runtime.functions.FEELFnResult;
import org.kie.dmn.feel.runtime.functions.ParameterName;

/**
* provisional access for DMN14-126
Copy link
Contributor

Choose a reason for hiding this comment

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

@gitgabrio Probably those kind of comment could be removed.

}
}

public FEELFnResult<TemporalAccessor> manageDateTimeException(DateTimeException e, String val) {
Copy link
Contributor

Choose a reason for hiding this comment

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

@gitgabrio As this is no a method to be consumed externally, I would set is as protected, WDTY?

Gabriele-Cardosi added 3 commits June 28, 2024 10:36
…1344

# Conflicts:
#	kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/ContextFunctionTest.java
*
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
Copy link
Contributor

Choose a reason for hiding this comment

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

@gitgabrio Please check those Test classes, it seems to me they have unintended formatting changes (in the headers and in the below test functions)

*
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
Copy link
Contributor

Choose a reason for hiding this comment

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

@gitgabrio This class has unintended formatting changes, I guess

@gitgabrio gitgabrio merged commit c69dc49 into apache:main Jul 1, 2024
10 checks passed
@gitgabrio gitgabrio deleted the incubator-kie-issues#1344 branch July 1, 2024 07:35
rgdoliveira pushed a commit to rgdoliveira/drools that referenced this pull request Jul 8, 2024
…e#6005)

* [incubator-kie-issues#1344] Rrefactoring/reorganizing Functions

* [incubator-kie-issues#1344] Fixed as per PR suggestion

* [incubator-kie-issues#1344] Hiding constructors from functions, that are singleton by design

* [incubator-kie-issues#1344] Fixing tests

---------

Co-authored-by: Gabriele-Cardosi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DMN - review extended functions and profile
3 participants