Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
[DROOLS-4508] Classloading issue during incremental compilation with executable model - also update the KieModule to align the classloader even if there are no kiebases (#2607)

  1. … 2 more files in changeset.
[DROOLS-4620] Executable model compilation fails with 'inference variable A has incompatible bounds' when using accumulate (#2581)

* Fix concatenating lambda in LambdaUtil

* Fix Flow DSL

* AccumulateDSL is an instance variable

  1. … 3 more files in changeset.
DROOLS-4250: Improve data source type resolving in OOPath (#2412)

* DROOLS-4250: Improve data source type resolving in OOPath

* refactor entry point registration to FromVisitor

* minor code quality fixes

* revert more invasive changes

  1. … 1 more file in changeset.
[DROOLS-4633] optimize self-join patterns in forall statement

  1. … 25 more files in changeset.
[DROOLS-4632] optimize single pattern forall statement

  1. … 52 more files in changeset.
[DROOLS-4560] executable-model wrongly calculates in eval with parent… (#2562)

* [DROOLS-4560] executable-model wrongly calculates in eval with parenthesis

* Fix conversion of BigDecimal/BigInteger literals when enclosed in parenthesis

  1. … 2 more files in changeset.
[DROOLS-4534] ClassCastException using accumulate max in executable model (#2555)

* test

* Moved test to AccumulateTest.java

* Better test

* Better test

* New test

* Multiple ids to replace

* New test for simpler case

* Passing test, probably wrong

* Fix rebase

* Create D.input when using : this in Pattern

* Reverted wrong fix

* andThen in function

* First test for Lambda compose

* Passing test with hardcoded type

* Extracted type parameter

* Passing test for Pattern

* Refactor

* Remove first hardcoded input

* Take type from var

* It's easier to concatenate two bodies

* Removed input as a field

* Convert to input only in FlowDSL

* Only collapse binding when effective bindings are > 1

* Fix Flow DSL

* Both test passing

* Fix test extractor in function

* Fix regression

* Removed logger

* Removed useless parts

* Refactor

* Extracted AccumulateInlineVisitor

* BaseDescr as field

* Other fields

* Big refactor of AccumulateVisitor

* Fix compilation after rebase

    • -0
    • +27
    ./org/drools/modelcompiler/util/LambdaUtil.java
  1. … 3 more files in changeset.
[DROOLS-4572] avoid generating property reactivity masks in executable model for non-reactive types

  1. … 27 more files in changeset.
[DROOLS-4558] executable-model doesn't fully parse multi-line pattern (#2561)

* Renamed newline in CompilerTest.java

* replace new lines in constraints

  1. … 2 more files in changeset.
[DROOLS-4579] enable use of drools.getMatch() from executable model consequence

  1. … 1 more file 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. … 89 more files in changeset.
[DROOLS-4553] generate package sources from javaparser ASTs immediately after completion of package compilation

    • -0
    • +50
    ./org/drools/modelcompiler/builder/GeneratedFile.java
    • -0
    • +96
    ./org/drools/modelcompiler/builder/PackageSources.java
  1. … 2 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-4529 Use KnowledgeBuilder directly to handle process resources (#2539)

[DROOLS-4307] Drools unable to compile rules when using a declared enum in the DRL file (#2536)

* Added new test for enum field

* Support for enum

* Support for enum

* EnumGenerator

* POJOGenerator is not static anymore

* Refactor

* Enum Generator

* Test for enum in DeclaredTypesTest.java

* Moved POJO generator to package

* Removed test

* Removed test

* Green tests

* Simplified toClassDeclaration

* Extracted GeneratedHashCode

* Moved toString generation

* Separated generated equals

* Generated constructor

* Split constructor and annotation processor

* Separated construction generation

* Added comment for failing test

* FullArgumentConstructor

* NoConstructor

* Ignore soft annotations by passing empty list

* Refactor

* Processing of EnumDescr in ModelBuilderImpl.java

* Generation of enum, passing test

* Refactor

* SonarLint

* Fix regression in error messages

  1. … 7 more files in changeset.
[DROOLS-4509] fix @watch on an alpha node followed by a from

  1. … 3 more files in changeset.
[DROOLS-4492] fix type declaration definition in executable model

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

  1. … 4 more files in changeset.
DROOLS-4458 Fix String to Boolean coercion in executable model (#2513)

  1. … 2 more files in changeset.
[DROOLS-4374] Align error messages when missing semicolons (#2501)

  1. … 1 more file in changeset.
[DROOLS-4546] BigDecimal in from accumulate with MVEL with executable-model (#2497)

* Tests

* Post process phase to transform BigDecimal literals after having processed the LHS phase

* Convert BigDecimal assign plus operator to add or remove

* Passing AccumulateTest

* Null case for BigDecimalConversion

* Moved accumulateInline in separate class

* Moved to constructor

* Removed dead code

* Refactor of AccumulateInline

* Mvel compiler is a field

* New field

* Avoid recompile init block twice

* Use inline template in resource folder

* Use specific exception

* First refactor of parseInitBlock

* Remove dead code

* use MVEL compiler for everything

* Better control flow

* Check for unsupported Inline Accumulate

* Better control flow for LegacyAccumulateInline

* Better control flow for LegacyAccumulateInline

* Moved reverse method closer

* write accumulate method closer

* Extracted parsing method

* Rename

* Moved method

* Removed TODO

* Reverted unwanted commit

  1. … 14 more files in changeset.
[DROOLS-4291] ModelWriter: refactor to smaller classes (#2428)

* [DROOLS-4291] ModelWriter: refactor to smaller classes

* fix: did not set file names correctly, did not add models to list

* adjust path for broken integration tests

    • -0
    • +50
    ./org/drools/modelcompiler/builder/AccumulateClassWriter.java
    • -0
    • +47
    ./org/drools/modelcompiler/builder/DeclaredTypeWriter.java
    • -0
    • +56
    ./org/drools/modelcompiler/builder/PackageModelWriter.java
    • -0
    • +92
    ./org/drools/modelcompiler/builder/RuleWriter.java
[DROOLS-4376] [DROOLS-4377] [DROOLS-4831] (#2490)

* CompilerTest.testMapAbbreviatedComparison

* New case for ExpressionTyper

* Refactor

* WithCast

* Removed author and javadoc for HalfBinary

* New test for simple half binary

* Avoid handcrafted parsing

* Avoid putting meaningless generic type into parameter

* Allow special comparison case to change the expression

* Default in findLelftLeafOfNameExpr

* Refactor PatternDSL

* Removed impl from Implementation causing OSGi to fail

* Fix rebase

* Avoid handcrafted parsing

* Allow special comparison case to change the expression

* test and first refactor

* Can coerce map

* added todo

* Fix ExpressionTyper test

* Coerce map expressions

* Better check

* Remove useless cast to object

* SonarLint

  1. … 4 more files in changeset.
[DROOLS-4382] fix function invocation as argument of a point-free expression in executable model

  1. … 4 more files in changeset.
DROOLS-4343 Change fact handle id type to long (#2468)

* DROOLS-4343 Change fact handle id type to long

* DROOLS-4343 Change fact handle id type to long

  1. … 35 more files in changeset.
DROOLS-4362 Fix date parsing in executable model on non-English locale (#2470)

[DROOLS-4188] Error while using Declared Types in different kjars with includes (#2469)

* [DROOLS-4188] Error while using Declared Types in different kjars with include

* Fix classloader in included kbase

  1. … 1 more file in changeset.
[DROOLS-4342] Using BigDecimal with From Accumulate causes an "Error: argument type mismatch" (#2464)

* Reproducer

* Reproducer that fails on the executable model

* Reproducer

* Reproducer with our classes

* Accumulate with MVEL uses the correct function

* Removed reproducer class

* Passing test

  1. … 2 more files in changeset.
[DROOLS-4335] promote sequential option to public API (#2466)

  1. … 9 more files in changeset.
[DROOLS-4339] Avoid implicit conversion while accumulating, type is always one returned from the function (#2450)

* Avoid implicit conversion while accumulating, type is always the one of the returned function

* Added reference test for accumulating short using a Number pattern matching

* Renamed test

  1. … 1 more file in changeset.