Drools

Clone Tools
  • last updated a few minutes ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
[DROOLS-2625] In the exec model use the legacy accumulator when the action uses globals (#2051)

* Fix test2AccumulatesWithOr

* Use legacyAccumulate when there's a global in the action block

* Disabled accumulate test

(cherry picked from commit 442bd46af866dfb69394362b14479396c5d1a4c3)

Ignore randomly failing tests till problem is investigated and fixed (#2053)

[DROOLS-2634] implement dynamic timers in executable model

[DROOLS-2634] implement dynamic timers in executable model

(cherry picked from commit c8f76c7c0b18695f4b0674f45be90c123649be2b)

RHPAM-1500 PMML compilation problem with weightedAverage mining operator (#2052)

* Removed @Ignore from MiningModelWeightedAverageTest

* Added a method to get the Double value from the MiningSegmentWeight

* Fixed errors in the weightedAvg.mvel including

- making sure that the correct PMML4Result is used for setting a MiningSegmentWeight

- making sure that the correct PMML4Result gets the weighted average for its target field

- making sure that the all possible SegmentExecutions are inserted prior to starting any SegmentExecution

- updating the "Check Segment Can Fire" rules to update the proper SegmentExecution, instead of inserting a new one

* Fixed tests in MiningmodelTest that were broken by the above fixes

RHPAM-1500 PMML compilation problem with weightedAverage mining operator (#2052)

* Removed @Ignore from MiningModelWeightedAverageTest

* Added a method to get the Double value from the MiningSegmentWeight

* Fixed errors in the weightedAvg.mvel including

- making sure that the correct PMML4Result is used for setting a MiningSegmentWeight

- making sure that the correct PMML4Result gets the weighted average for its target field

- making sure that the all possible SegmentExecutions are inserted prior to starting any SegmentExecution

- updating the "Check Segment Can Fire" rules to update the proper SegmentExecution, instead of inserting a new one

* Fixed tests in MiningmodelTest that were broken by the above fixes

(cherry picked from commit 8eb1aae0dcbdf2b0f36e3ccbbc39e5291bf06c69)

Fix PMML XSD urls in test PMML files (#2050)

  1. … 49 more files in changeset.
Fix PMML XSD urls in test PMML files (#2049)

  1. … 49 more files in changeset.
[DROOLS-2625] Better support for ArrayAccess Expression in Exec Model accumulate test (#2045)

* Better regexp match tests down to 26

* Disable accumulate tests

* New test for array access in AccumulateTest.java

* New test for array access

* Yet another new test for accumulate

* Parse element from arrayAccessExpr when it's a methodCallExpr

* First test of flattenScope

* Refactor test

* Flatten method call

* Unary expressions

* FlattenArrayAccess

* Fix testUseAccumulateFunctionWithArrayAccessOperation by supporting ArrayAccessExpression

* Support ArrayAccessExpr in AccumulateVisitor

* ArrayAccessExprWorking tests

* Expression Typer supports declarations with bindings

* First test of remove root node

* Removed println

* Converted arrayaccessexpr to methodcallexpr

* New FindRootViaNodeScope

* New remove node method

* Fix for method without scope

* Removed optional

* FIx regression of findRootNodeViaScope2Rec

* Rename

* Convert to methodCallExpr when using the accumulate

* Also coerce expressions on the right

* Support CastExpr in findLeftLeafOfMethod

* New test in FlowTest

* Fix ExpressionTyperTest.java

* Revert "Also coerce expressions on the right"

This reverts commit 5a42614

* Better test

* Removed test

* Moved unsupported test

* Regression test

* Fix regression

(cherry picked from commit 3fc8a354b7e0e176e11ee346d48e369c4f8ff522)

[DROOLS-2625] Better support for ArrayAccess Expression in Exec Model accumulate test (#2045)

* Better regexp match tests down to 26

* Disable accumulate tests

* New test for array access in AccumulateTest.java

* New test for array access

* Yet another new test for accumulate

* Parse element from arrayAccessExpr when it's a methodCallExpr

* First test of flattenScope

* Refactor test

* Flatten method call

* Unary expressions

* FlattenArrayAccess

* Fix testUseAccumulateFunctionWithArrayAccessOperation by supporting ArrayAccessExpression

* Support ArrayAccessExpr in AccumulateVisitor

* ArrayAccessExprWorking tests

* Expression Typer supports declarations with bindings

* First test of remove root node

* Removed println

* Converted arrayaccessexpr to methodcallexpr

* New FindRootViaNodeScope

* New remove node method

* Fix for method without scope

* Removed optional

* FIx regression of findRootNodeViaScope2Rec

* Rename

* Convert to methodCallExpr when using the accumulate

* Also coerce expressions on the right

* Support CastExpr in findLeftLeafOfMethod

* New test in FlowTest

* Fix ExpressionTyperTest.java

* Revert "Also coerce expressions on the right"

This reverts commit 5a42614

* Better test

* Removed test

* Moved unsupported test

* Regression test

* Fix regression

[7.11.x] [BAPL-944] Tests for mining model - sum, weighted avg., selectAll (#2047)

* [BAPL-944] Tests for sum strategy in PMML mining model

* [BAPL-944] Tests for weighted avg operator in mining model

* [BAPL-944] Tests for select all mining model operator

[BAPL-944] Tests for mining model - sum, weighted avg., selectAll (#2046)

* [BAPL-944] Tests for sum strategy in PMML mining model

* [BAPL-944] Tests for weighted avg operator in mining model

* [BAPL-944] Tests for select all mining model operator

[BAPL-944] Parameterize and fix PMML regression test (#2044)

[BAPL-944] Parameterize and fix PMML regression test (#2042)

[DROOLS-2634] fix generation of dynamic attributes for type declaration in executable model

[DROOLS-2634] fix generation of dynamic attributes for type declaration in executable model

(cherry picked from commit 2547d71b34df028557f992272339f3044e38edc4)

[BAPL-944] Tests for selectFirst strategy in PMML mining model (#2040) (#2043)

(cherry picked from commit e142035e8e068edf857f032849db25f931ac796d)

[DROOLS-2634] allow to use also fields and globals in temporal expressions

(cherry picked from commit 1c3dc46b73abff05d1143b5f8deb53cff87f2e82)

  1. … 5 more files in changeset.
[DROOLS-2634] allow to use also fields and globals in temporal expressions

  1. … 5 more files in changeset.
[BAPL-944] Tests for selectFirst strategy in PMML mining model (#2040)

upgraded kie to 7.12.0-SNAPSHOT and appformer to 2.9.0-SNAPSHOT

  1. … 53 more files in changeset.
upgraded to 7.11.1-SNAPSHOT

  1. … 53 more files in changeset.
Upgraded versions for release 7.11.0.Final

  1. … 52 more files in changeset.
DROOLS-2944 DMN decision logic referencing DMN<import> InputData (#2038)

* Simplified reproducer

Conflicts:

kie-dmn/kie-dmn-core/src/test/java/org/kie/dmn/core/imports/ImportsTest.java

* Fix.

* small refactor

DROOLS-2943 DMN DecisionServiceCompiler not correctly wired for DMNv1.2 format (#2037)

* DROOLS-2943 DMN DecisionServiceCompiler not correctly wired for DMNv1.2

... format

* .

[RHDM-717] allow to invoke a live query with null arguments

DROOLS-2908 Guided Score Card (#2035)

* Fixed/updated unit tests and verified that scorecards are compiling and executing

* Added ability to use external types when using the PMML4ExecutionHelper

DROOLS-2937 DMNRuntime API parameter nullcheck (#2030)

* Test case demonstrating the problem

for instance stacktrace being (as called from Kie DMN API)

java.lang.NullPointerException

at org.kie.dmn.core.impl.DMNRuntimeImpl.performRuntimeTypeCheck(DMNRuntimeImpl.java:622)

at org.kie.dmn.core.impl.DMNRuntimeImpl.evaluateAll(DMNRuntimeImpl.java:118)

at org.kie.dmn.core.DMNRuntimeTypeCheckTest.testMisleadingNPEbyAPIusage(DMNRuntimeTypeCheckTest.java:199)

...

* AFTER:

java.lang.NullPointerException: Kie DMN API parameter 'model' cannot be

null.

at java.util.Objects.requireNonNull(Objects.java:290)

at org.kie.dmn.core.impl.DMNRuntimeImpl.evaluateAll(DMNRuntimeImpl.java:123)

at org.kie.dmn.core.DMNRuntimeTypeCheckTest.testMisleadingNPEbyAPIusage(DMNRuntimeTypeCheckTest.java:199)

* .

[DROOLS-2828] fix modify of an object with mutable hashcode in equality mode when using mvel dialect

[DROOLS-2625] Better declaration search in consequence (#2031)

* Better regexp match tests down to 26

* Disable accumulate tests