Clone Tools
  • last updated a few minutes ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
[DROOLS-4777] Extract Exec Model Lambda in separated classes (#2665)

* Creation of Class from lamba

* Refactor

* Single parameter lambda

* Remove extended type

* HashedClassName

* Renamed class

* Convertion of expr lambda

* Search for LambdaExpr

* Integrate LambdaReplace in ModelWriter

* Correct package

* add the type in Lambda (sometimes) avoid generating same lambda classes twice

* Use Drools predicate types

* Override in lambda

* Override

* Need to use an instance of the predicate, not a method reference

* Avoid generating lambda classes when missing types

* Do not put type if it's object in the Lambda

* Removed timeout

* Fix test

* Fix dirty state in Lambda Generation

* Added exception

* Create predicate test

* Commented extractor test

* testCustomer with two constraints

* Separated Predicate and Extractor

* Changed Namespace

* Created extractor

* Fix unit tests

* D.alphaIndexedBy

* Correct extractor

* Consequnce Test

* Replace consequence

* Parameter Type in consequence lambda

* Fixed test

* Clear model map

* Use enum for singleton for materialized lambdas

* Avoid putting rules in static fields

* Add static import in materialized predicate

* rules declaration per class

* Parallel class loading at startup

* Refactor predicate and consequence

* Refactor predicate and consequence

* Refactor

* Refactor extractor

* Refactor post processor

* 130 failing tests to go

* 116 tests failing

* Fix lambda extractor test

* Avoid converting consequences when there is a drools or a bitmask

23 tests to fix

* Fix incremental compilation tests, 17 failing test to go

* Extracted replace binding visitor

* When in accumulate we rewrite the types, we should that in lambdas also (14 tests failing)

* 11 tests to go

* Throw exception, 9 tests to go

* Also add static imports, 8 tests to go

* 4 tests to go

* Preserve original rule unit type 2 tests to go

* Correct static import

* Every test passing

* Share generated lambda in PackageModel

* better test for ExecModelLambdaPostProcessorTest.java

* Charset in configuration

* Beta indexed by

* Indexed by and flow

* Do not convert consequence test

* Removed duplication in test

* Use original DSL if it was not able to convert it

* Avoid generating lambda classes when post processing fail

* Dump drl

* Reproducer for GuidedDecisionTableTest.java

* Reproducer

* Fix accumulate problem

* Types in indexing

* Replace all lambdas

* Better error message

* Never share state in Materialized lambdas

* Replace also BIND call in accumulate

* Remove sysout

* Removed dump drl

* Reverted timeout

* Reverted wip

* Removed customercasetest

* Revert GuidedDecisionTableTest.java

* Fix rebase compilation

* Fix aggregate pattern in testVariableBindingWithOR

* Fix some accumulate test

* Fix declared type test with arrays

* renamed conflicting test

* Disable Lambda Externalization for rule units

* Reproducer for accumulate test

* Refactor test

* Refactor test

* Avoid replacing type when it's not defined

* Do not stop converting lambdas when rules class has drools

* Refactor test

* Added materialized lambda annotation

* Annotate Materialized lambda

    • -0
    • +31
    ./RulesSupplier.java
  1. … 48 more files in changeset.
[KOGITO-608] preliminary work for drools-model unfork

  1. … 2 more files in changeset.
minor optimization in evaluation of 1-arg lambda predicate

  1. … 1 more file in changeset.
[DROOLS-4784] fix index generation in executable model when a bean property name is all uppercase

  1. … 6 more files in changeset.
DROOLS-4697 Simple toString() for RuleImpl (#2632)

    • -0
    • +5
    ./consequences/NamedConsequenceImpl.java
    • -2
    • +2
    ./constraints/AbstractSingleConstraint.java
    • -0
    • +8
    ./constraints/FixedTemporalConstraint.java
    • -0
    • +6
    ./constraints/MultipleConstraints.java
    • -0
    • +8
    ./constraints/VariableTemporalConstraint.java
    • -0
    • +7
    ./patterns/ExistentialPatternImpl.java
  1. … 3 more files in changeset.
[DROOLS-4682] Support consequence up to 24 parameters (#2631)

* First draft of ConsequenceBuilderGeneration

* GenericTypes

* Improved

* generator for ConsequenceBuilder

* Refactor ConsequenceBUilder

* Constructor with Variable type

* Complete consequence builder

* MOved to package

* Block generator

* Create files

* wip

* Execute method

* Block generation

* Generate generic type for return types

* 24 parameters consequence

* 24 args consequences

* Updated test

* Removed useless parameter

    • -95
    • +391
    ./consequences/ConsequenceBuilder.java
    • -0
    • +31
    ./functions/Block15.java
    • -0
    • +31
    ./functions/Block16.java
    • -0
    • +31
    ./functions/Block17.java
    • -0
    • +31
    ./functions/Block18.java
    • -0
    • +31
    ./functions/Block19.java
    • -0
    • +31
    ./functions/Block20.java
  1. … 19 more files in changeset.
[DROOLS-4672] Executable model compilation fails with function call and large input array (#2628)

    • -0
    • +26
    ./consequences/ConsequenceBuilder.java
    • -0
    • +31
    ./functions/Block14.java
  1. … 2 more files in changeset.
[DROOLS-4672] Executable model compilation fails with function call and large input array (#2626)

* Consequence builder with 13 arguments

* Missing one argument

    • -0
    • +26
    ./consequences/ConsequenceBuilder.java
    • -0
    • +31
    ./functions/Block14.java
  1. … 2 more files in changeset.
[DROOLS-4572] avoid generating property reactivity masks in executable model for non-reactive types (#2611)

    • -5
    • +11
    ./constraints/AbstractSingleConstraint.java
    • -0
    • +47
    ./constraints/ReactivitySpecs.java
  1. … 23 more files in changeset.
[DROOLS-4532] Executable model compilation fails with java.lang.RuntimeException: Unknown expression type: -1 (#2605)

  1. … 2 more files in changeset.
[DROOLS-4525] add null check in executable model match operator (#2604)

  1. … 1 more file in changeset.
[DROOLS-4475] generate stable ids for field indexes across different executable model compilations (#2603)

    • -0
    • +23
    ./DomainClassMetadata.java
  1. … 9 more files in changeset.
[DROOLS-4633] optimize self-join patterns in forall statement

    • -0
    • +8
    ./constraints/FixedTemporalConstraint.java
    • -0
    • +8
    ./constraints/MultipleConstraints.java
    • -0
    • +35
    ./constraints/SingleConstraint10.java
    • -0
    • +38
    ./constraints/SingleConstraint11.java
    • -0
    • +41
    ./constraints/SingleConstraint12.java
    • -0
    • +44
    ./constraints/SingleConstraint13.java
    • -0
    • +11
    ./constraints/SingleConstraint2.java
    • -0
    • +14
    ./constraints/SingleConstraint3.java
    • -0
    • +17
    ./constraints/SingleConstraint4.java
  1. … 19 more files in changeset.
[DROOLS-4632] optimize single pattern forall statement

    • -0
    • +8
    ./constraints/AbstractSingleConstraint.java
    • -0
    • +5
    ./constraints/FixedTemporalConstraint.java
    • -0
    • +12
    ./constraints/MultipleConstraints.java
  1. … 43 more files in changeset.
[DROOLS-4572] avoid generating property reactivity masks in executable model for non-reactive types

    • -5
    • +11
    ./constraints/AbstractSingleConstraint.java
    • -0
    • +47
    ./constraints/ReactivitySpecs.java
  1. … 23 more files in changeset.
DROOLS-4554 Port SonarCloud fixes from kogito-runtimes (#2547)

* DROOLS-4554 Port SonarCloud fixes from kogito-runtimes

* DROOLS-4554 Port SonarCloud fixes from kogito-runtimes

* DROOLS-4554 Port SonarCloud fixes from kogito-runtimes

* DROOLS-4554 Port SonarCloud fixes from kogito-runtimes

  1. … 102 more files in changeset.
[DROOLS-4532] Executable model compilation fails with java.lang.RuntimeException: Unknown expression type: -1 (#2543)

* Fix UnaryExpr parsing

* Trace

* Removed check for bound variables

* Globals are added anyway

* Moved to EvalTest

* Typo

  1. … 3 more files in changeset.
[DROOLS-4525] add null check in executable model match operator

  1. … 1 more file in changeset.
[DROOLS-4475] generate stable ids for field indexes across different executable model compilations (#2523)

    • -0
    • +23
    ./DomainClassMetadata.java
  1. … 9 more files in changeset.
[DROOLS-4276] avoid using reflection in accumulate statements generated by the executable model

  1. … 4 more files in changeset.
[DROOLS-4292] executable-model fails with more than 5 arguments query (#2443)

* Five arguments query

* QueryDefImplGenerator

* QueryDef generator

* FlowDSL

* Moved PatternDSL query

* Flow Pattern Generator

* Fix typo

* Fix typo

* Improved generation of PatternDSL

* Improved generation of Pattern and Flow DSL

* Improved generation of QueryDef

* Improved generation of QueryDef

* Better writing file

* Regenerated QueryDef

* Regenerated QueryImpl

* Regenerated querydef without public

* Regenerated QueryImpl with copyright

* PatternDSL

* FlowDSL

* Revert "FlowDSL"

This reverts commit e8cf8b28

* Ordered FlowDSL query method

* Regenerated FlowDSL with every overloads

* Regenerated Impl with correct package name

* SonarCloud issues

  1. … 17 more files in changeset.
[DROOLS-3708] executable-model misses to raise an error for a non-exisiting method with Mvel dialect (#2269)

* First draft of validation

* Valid if no declared methods are present

* Removed useless code

* Removed compilation

* Added comment

* Moved consequenceValidation in the context

* Validate after having generated the types

* Validate classes with function

* Renamed memory file system

* Better class loader

* All MvelDialectTest passing

* Removed trace

* Optimized imports

* Avoid creating class loader when not needed

  1. … 9 more files in changeset.
[findbugs] Fixes for drools-canonical-model module (#2083)

* [findbugs] Impossible type cast

* [findbugs] Equals does not check for null

* [findbugs] Unused field

* [findbugs] Equals method should not assume anything about the type

[DROOLS-3011] implement asynchronous send/receive nodes in executable… (#2080)

[DROOLS-3011] implement asynchronous send/receive nodes in executable model

    • -0
    • +52
    ./impl/Exchange.java
  1. … 25 more files in changeset.
[findbugs] Fix array compare in executable model and other fixes (#2078)

  1. … 4 more files in changeset.
[findbugs] Fix array compare in executable model and other fixes (#2079)

  1. … 4 more files in changeset.
[DROOLS-2990] fix dsl generation of constraint calling a constructor in executable model

  1. … 13 more files in changeset.
[DROOLS-2990] fix dsl generation of constraint calling a constructor in executable model

(cherry picked from commit c0e630ae2bd05d2ccd36f87f440f39fd7657add0)

  1. … 13 more files in changeset.
[DROOLS-2634] complete CEP support in executable model

    • -0
    • +49
    ./constraints/MultipleConstraints.java
  1. … 32 more files in changeset.
[DROOLS-2634] complete CEP support in executable model

(cherry picked from commit d9dd0b530d9b4cc134db1b76823ac4cebbbd7271)

    • -0
    • +49
    ./constraints/MultipleConstraints.java
  1. … 32 more files in changeset.