Drools

Clone Tools
  • last updated a few minutes ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Drools 4589 - Refactor of Scorecards (#2870)

* [DROOLS-4859] Fixing generic models archetype

* [DROOLS-4859] Implemented model-drools archetype

* [DROOLS-4859] Created scorecard stub module

* [DROOLS-5261] Move shared code/classes to common modules/packages

* [DROOLS-4589] Begin implementation of AST factories

* [DROOLS-4589] Basic working status. No expression implemented

* [DROOLS-5270] Refactored AST factories to avoid duplication between tree model and scorecard model

* [DROOLS-5270] Fixed as per PR suggestin

* [DROOLS-4589] Minor fix

* [DROOLS-4589] Minor fix

* [DROOLS-4589] Add Release status

* [DROOLS-4589] Refactored DATA_TYPE to avoid reflection. Implemented PrimitiveBoxedUtils as support

* [DROOLS-4589] Implemented KiePMMLScorecardModelCharacteristicASTFactoryTest. Implemented missing tests. Refactoring some common classes

* [DROOLS-4589] Cleanup

* [DROOLS-4589] Fixed as per PR suggestions

* [DROOLS-4589] Move drools evaluation inside model itself

* [DROOLS-5239] Simple scorecard test

* [DROOLS-4589] Fixing usage of Attribute partialScore inside generated rules

* [DROOLS-5239] Fix simple scorecard test

* [DROOLS-4589] Fixing OutputField (only for predictedValue feature)

* [DROOLS-5239] Use target fields for tests

* [DROOLS-5239] Add test for simple scorecard with categorical variables

* [DROOLS-5239] Add simple scorecard test with mixed variables

* [DROOLS-5239] Add test for compound predicates in scorecards

* [DROOLS-4589] Implemented reason code evaluation

* [DROOLS-4589] Fixed evaluation with compound predicates. Fixed reasoncode population

* [DROOLS-5239] Add tests for nested compound predicates in scorecards

* [DROOLS-5239] Add basic test for evaluation of partial score

* [DROOLS-4589] Fixed CompoundNestedPredicate. Update version

* [DROOLS-4589] Ignoring BasicComplexPartialScoreTest since it is using ComplexPartialScore -> Expression (not implemented in this iteration)

* [DROOLS-5239] Add test for nested complex partial score

* [DROOLS-4589] Minor refactoring. Add unit tests.

* [DROOLS-4589] Fixing as per PR suggestions

* [DROOLS-4589] Replaced String with OPERATOR inside KiePMMLOperatorValue

* [DROOLS-4589] Replaced String with BOOLEAN_OPERATOR inside KiePMMLFieldOperatorValue

Co-authored-by: Jiri Petrlik <jiripetrlik@gmail.com>

  1. … 68 more files in changeset.
DROOLS-5299 DMN strongly typed javadoc/file comment disclaimer (#2884)

* DROOLS-5299 DMN strongly typed javadoc/file comment disclaimer

* .

* refactoring following code review

DROOLS-5132 DMN Drools TCK runner updates (#2882)

DROOLS-5297 DMN small test reorganization (#2883)

    • -86
    • +0
    /kie-dmn/kie-dmn-core/src/test/resources/a.dmn
  1. … 5 more files in changeset.
[DROOLS-5290] Executable model compiled throws exception in accumulate pattern matching (#2880)

* Reproducer

* Better test, only pattern

* Better test, only pattern

* Test run

* First refactor

* Refactor

* to stream API

* pattern stream API

* Last refactor

KOGITO-1546 XStreamUtils kie-soup refactoring (#2874)

* KOGITO-1546 XStreamUtils kie-soup refactoring

* drools-core dep update

* kie-dmn-backend dep update

  1. … 7 more files in changeset.
bumped up version to 7.38.0-SNAPSHOT

  1. … 99 more files in changeset.
Upgraded version to 7.37.0.Final

  1. … 65 more files in changeset.
DROOLS-5263: Wrong test result status if rules have not been fired (#2878) (#2879)

* DROOLS-5263: Filtering out facts with empty rawValues from inputFacts.

* DROOLS-5263: Tests

(cherry picked from commit b6dfcf419fd09cb0336f298e0b76a0d2ad6e6bae)

[JBPM-9129] Start process without triggering a start node

added new command to restart a process from where it left

DROOLS-5263: Wrong test result status if rules have not been fired (#2878)

* DROOLS-5263: Filtering out facts with empty rawValues from inputFacts.

* DROOLS-5263: Tests

[DROOLS-5283] fix executable model generation when processing a rule with 2 inline accumulates (#2875)

DROOLS-5279 Append missing .gitignore in kie-memory-compiler (#2872)

    • -0
    • +21
    /kie-memory-compiler/.gitignore
DROOLS-5281 DMN alignment DMNAssemblerService internal DMNRuntimeBuilder util (#2873)

* TO BE REVERTED: use type safe in every test

TO BE REVERTED: use type safe in every test

x

Conflicts:

kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorImportTest.java

TO BE REVERTED 2: use typesafe in every test

Conflicts:

kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/v1_3/DMNTypeSafeTest.java

kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorImportTest.java

x

fix test evaluation non type safe

Reverted evaluation

Conflicts:

kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/BaseVariantTest.java

x

fixing test structures

x

x

x

* fix

* REVERT

* test variant for DMNCompilerTest

Co-authored-by: Luca Molteni <volothamp@gmail.com>

DROOLS-5277 DMN codegen inner composite, recursion, Any fix (#2871)

* WIP

* With inner composite

* a first implementation for feel:Any

* inner composite fix and recursion fix

* TO BE REVERTED: use type safe in every test

TO BE REVERTED: use type safe in every test

x

Conflicts:

kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorImportTest.java

TO BE REVERTED 2: use typesafe in every test

Conflicts:

kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/v1_3/DMNTypeSafeTest.java

kie-dmn/kie-dmn-validation/src/test/java/org/kie/dmn/validation/ValidatorImportTest.java

x

fix test evaluation non type safe

Reverted evaluation

Conflicts:

kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/BaseVariantTest.java

x

fixing test structures

x

x

x

* Revert "TO BE REVERTED: use type safe in every test"

This reverts commit b10b75a84c55555374da1dc7466e4aadf39939ab.

* finalizing refactors

x

x

* .

* .

* refactoring as requested by code review

Co-authored-by: Luca Molteni <volothamp@gmail.com>

[DROOLS-5271] RHS statements ordering changes with modify block in executable model (#2869)

[DROOLS-5270] Refactored AST factories to avoid duplication (#2868)

* [DROOLS-5270] Refactored AST factories to avoid duplication between tree model and scorecard model

* [DROOLS-5270] Fixed as per PR suggestin

* [DROOLS-5270] Fixed as per PR suggestion

  1. … 16 more files in changeset.
DROOLS-5249: do not store DateTimeFormatter as free form line (#2867)

We have two kinds of date boiler plate code snippets. For:

- java.util.Date: 'java.text.SimpleDateFormat sdf'

- java.time.LocalDate: 'java.time.format.DateTimeFormatter dtf'

If user set value either of 'Date' or 'LocalDate' field using 'Literal Value' guided editor action, the given date boiler plate is generated automatically behind the scene. This allows users to put in just value of date, e.g. "01-Jan-2000". User do not have to use parametric constructors, builders, parsers or factory methods. It is done behind the scene using 'sdf' or 'dtf' BoilerPlate.

If users set value either of 'Date' ot 'LocalDate' field using 'Formula' guided editor action, is their responsibility to construct 'Date' or 'LocalDate' instance.

For more details see https://issues.redhat.com/browse/DROOLS-5249

DROOLS-5260 DMN internal DMNRuntimeBuilder custom compiler (#2864)

* DROOLS-5260 DMN internal DMNRuntimeBuilder custom compiler

* refactoring to avoid sonarcloud penalties

[DROOLS-5050] fix event flushing for polymorphism (#2807) (#2866)

(cherry picked from commit 9c46dee4b21a5138616f5241fce5ced79fb802b3)

[DROOLS-5261] Move shared code/classes to common modules/packages (#2865)

  1. … 25 more files in changeset.
DROOLS-5256 DMN DT Analysis improvement to Overlap human friendly render (#2862)

[DROOLS-5063] Supporting many test cases in typesafe DMN (#2863)

* Test on dates

Index support multiple types

Moved test

Support Date/Time/period

lower case fields

SonarCloud

Nullsafe model generation

Fix property accessor with spaces

Revert escaping in getting properties

Annotate getter with FEEL property name

* TO BE REVERTED: use type safe in every test

* fix test evaluation non type safe

* Reverted evaluation

* TO BE REVERTED 2: use typesafe in every test

* Wrong test creation

Superclass should have uppercase

Another test failing

Do not parametrize DMNTypeSafeTest

Support collection of basic fields

Do not run STRICT on every test

null check for fieldIsBasic

Two new regression tests

New regression test

feel:days and time duration is a Duration

Simpler should index

Do not compile if there's nothing to compile

Ignored test

* Disabled type safe logging

* Revert "TO BE REVERTED: use type safe in every test"

This reverts commit 64491632

* Revert "TO BE REVERTED: use type safe in every test"

This reverts commit 64491632

* Revert "TO BE REVERTED 2: use typesafe in every test"

This reverts commit f6936bd8

* Renamed typesafe test

* Parametrization of Typesafe DMN Test

* Reverted unchanged files

* Correct getProperty, setProperty generation

* DMNTypeSafeTest in typesafe package

* Reverted ValidatorImportTest

[RHPAM-2877] Drools Canonical Model causes infinite loop firing of rules (#2854)

* [DROOLS-5025] Wrong BitMask created by a complex setter argument in modify block (#2851)

- Also solves DROOLS-5231

* [DROOLS-4916] Wrongly parse method chain in modify block in executable model (#2833)

* [DROOLS-5237] Wrong property reactivity with non getter chain of non-direct statements (#2857)

[DROOLS-2965] create activation directly from the alpha network when a rule has no beta nodes (#2860)

  1. … 27 more files in changeset.
Drools 5241 - Create archetype for PMML models with drool implementation (#2855)

* [DROOLS-4859] Fixing generic models archetype

* [DROOLS-4859] Implemented model-drools archetype

* [DROOLS-5241] Add Post-creation documentation. Declaring kie-pmml-models-drools-archetype module in parent pom

* [DROOLS-5241] Fixed as per PR suggestions

    • -1
    • +1
    /kie-pmml-new/kie-pmml-compiler/pom.xml
  1. … 41 more files in changeset.
[DROOLS-5237] Wrong property reactivity with non getter chain of non-direct statements (#2857)

[DROOLS-5242] executbale model to raise a compile time error with an invalid modify statement (#2858)

upgraded to 7.36.1.Final

  1. … 65 more files in changeset.
[DROOLS-5209] Add test for missing data in regression model (#2835)