Clone Tools
  • last updated a few minutes ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
[KOGITO-608] remove dependency from TypeResolver in kie-soup (#2668)

  1. … 79 more files in changeset.
[KOGITO-608] preliminary work for drools-model unfork (#2664)

* [KOGITO-608] preliminary work for drools-model unfork

* [KOGITO-608] preliminary work for drools-model unfork

* [KOGITO-608] preliminary work for drools-model unfork

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

    • -0
    • +33
    ./drlxparse/CoercedExpressionTest.java
  1. … 3 more files in changeset.
[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

    • -8
    • +34
    ./drlxparse/CoercedExpressionTest.java
  1. … 10 more files in changeset.
[DROOLS-4382] fix function invocation as argument of a point-free expression in executable model

    • -19
    • +20
    ./drlxparse/CoercedExpressionTest.java
  1. … 8 more files in changeset.
[RHDM-1020] Error while beta joining short and integer fields (#2459)

* 4207-1

* 4207-2

* Fix compilation

    • -0
    • +16
    ./drlxparse/CoercedExpressionTest.java
  1. … 12 more files in changeset.
Mvel parser: Support modify statement with new line (#2429)

* Mvel parser: Support modify statement with new line

* Failing test

* While extracting modified properties in a chain of methods, don't use the last getter

  1. … 5 more files in changeset.
[DROOLS-4207] Error in executable model while joining fields with short and int (#2408)

* Three tests

* Better test without declared types

* Avoid casting nameExprs

* Use Number.class in indexedBy

* Removed test

* renamed test

    • -0
    • +16
    ./drlxparse/CoercedExpressionTest.java
  1. … 5 more files in changeset.
DROOLS-4184 Fix first set of issues reported by SonarCloud (#2398)

* DROOLS-4181 Fix blocker issues reported by SonarCloud

* DROOLS-4181 Fix critical issues reported by SonarCloud

* DROOLS-4181 Fix first set of major issues reported by SonarCloud

* DROOLS-4181 Fix second set of major issues reported by SonarCloud

* DROOLS-4181 Fix third set of major issues reported by SonarCloud

* DROOLS-4181 Fix test related to SonarCloud fixes.

* DROOLS-4181 Fix downstream problems.

  1. … 148 more files in changeset.
[DROOLS-4104] Mvel-compiler (#2381)

* First commit

Some data type

First two phases

Some design

Rules of the game

Improved visitors

Copy and pasted solution

Removed inlinecast

Removed other classes

Algorithm explained

Other possible phases

Try to parse only types

First commit

Removed imperative assignment

Create type information phase

Subtyping!

toString

Test runnning

Removed phase

Moved packages

Moved packages

Moved context

FlattenExpressionPhase

FlattenExpressionPhase

New Phase

Refactor test

* New test

* Flatten phase

* Avoid flatten

* Inverted phase 2 and 3

* Process first node using the tree

* Navigating tree?

* JavaParser utilities

* Removed javaparser-utilities

* Removed javaparser-utilities

* Removed stream

* Only one phase, visiting the tree

* Moved error message

* Refactor

* Error message

* Reintroduced original grammar to support block

* Disabled comma expression in grammar, they should be only inside a modify block

* Variable declaration

* Multiple statements

* Refactor test

* Convert property access mixed

* Test modify

* Correct mvel modify syntax

* Renamed to DroolsConstraintParserTest.java

* New test in parser for modify

* Support MVEl modify statements

* Fix consequence

* Removed attach_pid files from git

* Modify is a statement, not an expression

* First draft of modify compiling

* testSetter

* StringLiteralExpressionT.java

* Removed duplicated test

* Method to find the stter

* Split among LHS and RHS

* String literal expression

* setter test passing, every other test failing

* Fixed property test

* Create a new declaration if missing

* Modify test

* Added transitive depedency

* Removed useless code

* Removed dependency from Drools Model Compiler

* Plugged in mvel compiler

* Refactor renaming

* Type is optional now

* Missing the scope from field accessors

* Public field accessor

* Pass scope instead of stack in context

* Refactor

* added todo

* Fix scope

* Refactor

* Uncompiled expression

* Plugged mvel compiler, found problems with modify and semicolons

* Added support for semicolon in mvel modify syntax

* Ignored test

* Added test

* Fix 7.20

* Preprocess methodcallexpr in modify statements

* sanitize single line scripts

* Plugged in compiler, removed validation of mvel scripts

* testAccessor ForArguments

* Better default method

* Fix testAccessorInArguments, broke other tests

* Fix all tests

* Removed println

* Better semicolons

* Semicolon sanitizier

* Also propagate errors

* Removed useless test

* Fix type in binary expressions

* Better sanitizier for modify

* Better sanitizer 2

* Do not append ; to empty strings

* Added modify object among modified properties

* Implement update with modify blocks

* Type resolver

* Better test

* Added trace of LHS

* Create new reference when missing

* Assume only one variable per decorator, removed declaration/declarator dualism

* testInitializerArrayAccess

* TypedExpression is an interface rather than an abstract class

* Map conversion

* testMixArrayMap and testMVELConsequenceWithMapsAndArray

* Test without semicolon

* Without semicolon test

* Fix rebase

* Fix hardcoded version

* Better test without semicolon

* simple test without semicolon

* Another test with method call

* Another test with method call

* Fix comment in GeneratedDrlConstraintParserTokenManagerBase.java

* Failing test with comment

* Test with comments passing

* Unignored test with comments

* New test for single line statement

* Single line block with comment with both and without semicolon

* Support empty statements with only new line

* All test passing

* Fix ModifyPreprocessPhase.java

* Fix first modify rewrite code, removed custom modify parsing

* Support new line in argument list

* Removed debug mode

* test property reactivity

* Fix modify empty block

* Fix new lines in argument list

* Removed SemicolonSanitizer.java

* Fix property reactivity

* Avoid processing nested methodCallExpr in modify setters

* fix NPE

* Refactor Mvel rewrite

* Removed mvel validation

* Removed unused import

* Fix AccumulateTest.testAccumulateMVELWithModify

* Fixed testNoLoopAccumulate

* Support target type when RHS type is missing

* Fix all AccumulaTest

* ImportsTest

* New test for EOL in BinaryExpr

* Support EOL after binary expr token

* Fix Nesting Test added new test for BinaryExpr with newLine

* Support variable declaration without initializer

* Fix StreamTest, correct drools scope

* Support arbitrary expressions in modify block

* Cep test, 4 tests left

* Better test

* Test for crashing pretty printer

* Fix rebase

* Added new test for new line expressions

* Added two new tests

* Fix typo

* Added negative test

* Formatting

* renamed test

* With statement support

* Constructor in with statement

* Correct implementation of with preprocessor

* Refactor

* Recurse over ModifyProcessor

* Fix MapInitializationDrools3800 by recursing the modify preprocessor

* Fix MapInitializationDrools3800 by recursing the modify preprocessor

* Use mvel compiler instead of ExpressionTyper during parsing of Mvel Accumulate Nodes

* Fix NPE

* Compilation after updating JP

* Fix mvel compiler dependency

* Fix version

* minimalized reproducer

* AST reproducer

* Compare reproducer with AssertJ

* Compare AST with diff, more similar

* Even more similar

* Avoid sharing static nodes that breaks the pretty printer

* Removed debugPrettyPrinter

* Reintroduced needed class generation

* Fix testPrettyPrinterCrashing

* Reverted model writer

* Revert packagemodel

* Reverted packageModel

* Removed PrettyPrinterTest.java

* Reverted ExpressionTyperTest.java

* Removed README.MD

* Duplication of removal of EmptyStmt

* Fixed ModifyCompilerTest

* Fix version

* Failing test for nested modify

* Recurse over blocks in consequence, new test for failing

* Fix ordering of with preprocessor

* Removed duplication in nested Modify preprocessor and fixed ordering

* Removed TODO

* Removed unused properties

* Public fields on LHS

* Removed another TODO

* Better type check

* Removed last todo

* Dependency in -boostrap

* Unsupported cases in DorolsConstraintParserTest

* Also support window EOL

* Renamed drools-constraint-parser to drools-mvel-parser

* Fix OSGI

* Assertj to test

* Removed ignore to 3505 test

* Fix typo

* Fix trace message

* Formatting

* Removed trace

* Added README.md of the module that explains how it works

* Fix typo

* Removed currying renamed method

* Renamed modified properties to used bindings

* Typo

* Removed drlconstraintparser

* Used consumer in test, reformatting

* Unused statement

* Added some documentation

* Improved documentation of the module

  1. … 158 more files in changeset.
Update Java Parser from 3.10.2 to 3.13.10 (#2353)

* Drools compile after upgrade of JP from 3.10.2 to 3.13.10

* DrlNameExpr is a NameExpr

* support toString in DroolsConstraintParser nodes

  1. … 27 more files in changeset.
Drools Constraint Parser (#2266)

* Namespace changes

* Fix print util

* Compile

* Lots of test passing

* Other test passing

* 5 tests failing

* 4 tests filing

* 43 + 122

* 43+110

* 45+96

* 45+82

* 47+52

* 47+48

* NullSafeFieldAccess and NullSafeMethodCall

* 47 + 32

* 47 + 27

* 47+17

* 51+1

* 4 test failed! omg

* 2 test left

* Two tests left

* Fix cep tests

* 1 test left

* Fixed all tests in drools-model-compiler

* Sanitize scope during eval of constand fields

* Drools-constraint-parser

* FromVisitor support from DrlNameExpr

* Removed enforcer skip, explicit version

* Removed useless plugings

* Removed templating-maven-plugin and license tag

* Added brace statements

* Space after if

    • -1
    • +1
    ./drlxparse/CoercedExpressionTest.java
    • -10
    • +13
    ./expressiontyper/FlattenScopeTest.java
  1. … 121 more files in changeset.
Fix map access expression with recursive paths (#2240)

  1. … 3 more files in changeset.
Fix for drlx-parser rebase (#2216)

* Added file

* Updated to drlx-parser after rebasing to 3.10.2

    • -2
    • +6
    ./expressiontyper/FlattenScopeTest.java
  1. … 12 more files in changeset.
[DROOLS-3527] Added some test for BigDecimal with decimal values (#2218)

  1. … 1 more file in changeset.
[DROOLS-3508] Search for Mvel dialect in Package attributes (#2215)

* [DROOLS-3508] Also search for Mvel dialect in pkg attributes

* Move setDialect in RuleContext

* Removed comment

  1. … 5 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)

    • -0
    • +72
    ./expressiontyper/FlattenScopeTest.java
  1. … 11 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

    • -0
    • +72
    ./expressiontyper/FlattenScopeTest.java
  1. … 11 more files in changeset.
[DROOLS-2625] Better declaration search in consequence (#2031)

* Better regexp match tests down to 26

* Disable accumulate tests

  1. … 1 more file in changeset.
[DROOLS-2649] fix indexing for executable model

  1. … 8 more files in changeset.
[RHPAM-1305] several fixes to executable model (#1968)

    • -0
    • +15
    ./ConsequenceTest.java
  1. … 164 more files in changeset.
[DROOLS-2625] Fixes Accumulate in executable model (#1966)

* Rescope also arguments of accumulate expressions

* testUseAccumulateFunctionWithOperationInBinding

* Fix formatting

  1. … 3 more files in changeset.
[DROOLS-2625] Accumulate test failing (#1951)

* testAccumulateModifyMVEL

* Always enabled accumulate function class tracing

* Support multi binding accumulate

* testAccumulateWithBoundExpression

* AccumulateTest.testMVELAccumulate (still not working)

* New test for inner binding

* Fixed first regression in accumulate

* Need declarations to parse constraint

* Better type for declarations

* Fixed all regressions in accumulate

* Fix test_forceCastForName with nesting enclosing Expr for casting

* DeclarationSpec toString

* Better type safety for non declared variables

* Removed duplicated test

* New test with external binding in init

* First draft of implementation: ignored test

* Disabled accumulateTest

* Suppress log

    • -0
    • +15
    ./ConsequenceTest.java
  1. … 6 more files in changeset.
[DROOLS-2551] Fix Math test regression (#1932)

* Fix compilation of MathTest

* Fix Math Test regression

    • -0
    • +8
    ./drlxparse/CoercedExpressionTest.java
  1. … 3 more files in changeset.
[DROOLS-2551] EvalTest.testBigDecimalWithFromAndEval with exec model (#1919)

* Enabled eval test

* Support typing of constants in ExpressionTyper.java

* Better error handling while typing

* Support from with constants

* Disabled EvalTest

* Fixs EvalTest.testEvalInline

* Disabled logged exec model output in integration tests

* Added two failings test with Eval and Global

* Fix testCastingInsideEvals

* Fix EvalTest.testEvalException

* First coerceExpressionTest

* New test for CoercedExpression.java

* Coerced Expression 222

* Fixed sout

* Fix test

* 555 test

* Fix regression

* Branch with cast expression matches too much

* Support clone in TypedExpression.java

* Revert wrong fix of EvalTest

* CoercedExpressionResult

* Fixed NPE

* Tracing for coercion

* Special case for Casting to Object

* Inverted condition for harder type coercion

* Another type coercion test

* Use coerce expression

* Removed println

* Optimized ConstraintParser imports

* Better names for CoercedExpressionTest.java

* Fix Equals Test regression

* Fix coercion of left

* Fix coercion of left 2

* Fix GuidedDecisionTableTest regression

* Fix testBadAccessToParameterWithoutType regression

    • -0
    • +131
    ./drlxparse/CoercedExpressionTest.java
  1. … 17 more files in changeset.
[DROOLS-2551][DROOLS-2575] various fixes in executable model generation

    • -0
    • +139
    ./drlxparse/CoercedExpressionTest.java
  1. … 172 more files in changeset.
[DROOLS-2466] avoid static import of dsl methods in generated executable model

  1. … 38 more files in changeset.
[DROOLS-2449] fix merging of jbpm processes into KieBase generated from executable model + share nodes in different packages + fix generation of property rectivity mask in consequence

(cherry picked from commit 0e4ac1d91487dfdacb46a11d702299f6e7583c34)

  1. … 9 more files in changeset.
[DROOLS-2449] fix merging of jbpm processes into KieBase generated from executable model + share nodes in different packages + fix generation of property rectivity mask in consequence

  1. … 9 more files in changeset.
[DROOLS-2466] avoid static import of dsl methods in generated executable model

(cherry picked from commit 331195dc4bd0525e59805fad5a5bebd8b65adc05)

  1. … 38 more files in changeset.