Clone Tools
  • last updated a few minutes ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
DROOLS-3355: Improve Assembler/Weaver API (#2181)

* cleanup

* fix compile

* rename AssemblerContext to DroolsAssemblerContext

* whitespace

* docs

* simpler ProcessPackage API

* use less specific result type in processbuilder interface

* revert process changes

* fix package serialization

* require non-null namespace on BaseDescr

as a side-effect: raises an expected exception in a jbpm test

    • -10
    • +6
    ./core/assembler/DMNAssemblerService.java
  1. … 29 more files in changeset.
DROOLS-3450 Error during DMNModelImpl serialization (#2201)

  1. … 1 more file in changeset.
[DROOLS-3368] Extend scenario runner to support DMN runtime (#2194)

* [DROOLS-3368] Small change

* [DROOLS-3368] Added getModel API

* [DROOLS-3368] Minor improvements

    • -0
    • +67
    ./core/fluent/AbstractDMNModelCommand.java
    • -3
    • +14
    ./core/fluent/DMNRuntimeFluentImpl.java
    • -0
    • +36
    ./core/fluent/GetDMNModelCommand.java
  1. … 9 more files in changeset.
[DROOLS-3367] Created DMNRuntimeFluent and related APIs (#2179)

* [DROOLS-3401] Moved Fluent API to kie-internal

* [DROOLS-3367] Implemented DMNRuntimeFluent APIs

* [DROOLS-3367] Implemented DMNRuntimeFluent APIs

* [DROOLS-3367] Fixed bug

* [DROOLS-3367] Added copyright

* [DROOLS-3367] Use DMNRuntime.newContext() instead of DMNFactory.newContext()

    • -0
    • +32
    ./core/fluent/AbstractDMNResultCommand.java
    • -0
    • +81
    ./core/fluent/DMNRuntimeFluentImpl.java
    • -0
    • +53
    ./core/fluent/ExecuteDMNCommand.java
    • -0
    • +38
    ./core/fluent/GetAllDMNContextCommand.java
    • -0
    • +32
    ./core/fluent/GetDMNDecisionResultsCommand.java
    • -0
    • +32
    ./core/fluent/GetDMNMessagesCommand.java
    • -0
    • +39
    ./core/fluent/NewDMNRuntimeCommand.java
    • -0
    • +71
    ./core/fluent/SetDMNActiveModelCommand.java
    • -0
    • +48
    ./core/fluent/SetDMNInputCommand.java
  1. … 12 more files in changeset.
[DROOLS-3348] Support Compiled Feel Expression in the kie-maven-plugin (#2173)

* reproducer

* USe maven plugin to generate classes

* Added partner dmn file

* Generate Feel Expression Source

* Generated Feel Expression source

* Read class from source

* Use correct class name

* Refactor

* Also generate input clauses

* First draft of input clause

* INput clause

* Read input clauses

* Refactor

* Refactor

* Refactor

* Moved methods

* Generate rows

* Generate input rowsi

* Input rows

* Fix typo

* Removed class

* Reenabled test

* Fix compilation

* Fix generation

* Update version

* InitRows using JavaParser

* each two there should it be an array

* Fix test

* Input clause with JavaParser

* Removed output clauses

* Fix package

* Moved to separated class

* Removed StringBuilder

* Use JavaParserSourceGenerator

* Removed lambda from FeelEpxressionSourceGenerator

* Some more methods

* Removed yet another part of javaparser

* Source generator (almost) never use Javaparser

* Added license

* Fix regression

* Extracted field

* Generate Feel Expression class only when using it with the Maven Plugin

* Removed useless logger

* Read output clauses

* Avoid checking for exception

* Fix class reading

* Removed duplication

* Iterate over input clauses

* Removed context and interfaces

* Iterate over rows

* Reverted whitespace changes

* Removed method

* Listener to check the number of class generated

* Fix generation of FeelExpression class

* New test for DMN

* Removed test project

* Removed useless code

* Fix after review

* Space after if

    • -0
    • +75
    ./core/compiler/execmodelbased/ExecModelDTableModel.java
    • -0
    • +113
    ./core/compiler/execmodelbased/JavaParserSourceGenerator.java
  1. … 3 more files in changeset.
DROOLS-3379: RuntimeService API should not require a KSession to create an instance (#2170)

  1. … 3 more files in changeset.
DROOLS-3394 DMN for 1.2 assumes default prefix is DMN model namespace (#2175)

* DROOLS-3394 DMN DMNCompiler#getNamespaceAndName for DMNv1.2 assumes

...default prefix is DMN model namespace

Test case.

* Fix.

* Align kie-dmn-validation to -core fix.

    • -3
    • +3
    ./core/compiler/DMNEvaluatorCompiler.java
  1. … 3 more files in changeset.
DROOLS-3335 Broken DMN resource to inhibit KJAR and report error (#2165)

* WIP

* WIP

* Correct DMN model typos

* addendum to DROOLS-2075 Allow empty output cell on DTs

* Align kie-dmn-core

* Align kie-dmn-validation

* cleanup test

* Kie API usage snippet for custom build for documentation

* added license header

* implement code review feedback

    • -0
    • +5
    ./core/assembler/DMNAssemblerService.java
    • -2
    • +5
    ./core/compiler/DMNEvaluatorCompiler.java
    • -0
    • +56
    ./core/impl/DMNKnowledgeBuilderError.java
    • -10
    • +107
    ./core/impl/DMNMessageImpl.java
  1. … 10 more files in changeset.
DROOLS-3343 Refactor Message/MessageImpl to avoid rely on impl (#2163)

* DROOLS-3343 Refactor Message/MessageImpl to avoid rely on impl

* Realign imports in other modules

* .

* .

  1. … 30 more files in changeset.
[DROOLS-3112] FEEL Compiler: modularize FEELImpl compiler/interpreter vs. DMNFEELHelper (#2112)

* [DROOLS-3112] FEEL Compiler: modularize FEELImpl compiler/interpreter vs. DMNFEELHelper

* add dep to JavaParser

    • -2
    • +11
    ./core/ast/DMNLiteralExpressionEvaluator.java
    • -0
    • +21
    ./core/compiler/DMNCompilerContext.java
    • -43
    • +16
    ./core/compiler/DMNFEELHelper.java
  1. … 14 more files in changeset.
[DROOLS-3088] FEEL Compiler: refactor to AST-based tree walk (#2107)

* [DROOLS-3088] FEEL Compiler: refactor to AST-based tree walk

* missing push/pop in scope handler

* missing ! in FEEL grammar

* reworded rewrite ast methods

* remove commented out code

* add copyright notices

* use precise pow for big decimal

  1. … 48 more files in changeset.
RHDM-788 DROOLS-3279 DMN DRGElement typeRef to allow FEEL Any (#2144)

* DROOLS-3279 DMN DRGElement typeRef to allow FEEL Any

* Implement on the premise the spec have an oversight for ItemDefinition

cherry picked from

https://github.com/kiegroup/drools/commit/b0e6eb1870ca1c6b3fb363206bb8fa5f4fd8c7d1

    • -2
    • +3
    ./core/compiler/DMNTypeRegistryV12.java
  1. … 2 more files in changeset.
DROOLS-3279 DMN DRGElement typeRef to allow FEEL Any (#2140)

* DROOLS-3279 DMN DRGElement typeRef to allow FEEL Any

* Implement on the premise the spec have an oversight for ItemDefinition

    • -2
    • +3
    ./core/compiler/DMNTypeRegistryV12.java
  1. … 2 more files in changeset.
DROOLS-3229 DMN compilation of DT with empty inputValues, outputValues, (#2132)

* DROOLS-3229 DMN compilation of DT with empty inputValues, outputValues,

defaultOutputEntry NPEs

* .

* .

  1. … 2 more files in changeset.
DROOLS-3230 DMN - Fix generating paths on Windows for executable model (#2133)

* DROOLS-3230 DMN - Fix generating paths on Windows for executable model

* DROOLS-3230 DMN - Fix generating paths on Windows for executable model

DROOLS-3217 DMN compilation via kie-maven-plugin wrong lookup at runtime (#2125)

    • -0
    • +4
    ./core/compiler/DMNEvaluatorCompiler.java
[DROOLS-3072] kie-maven-plugin to persist DMN Compilation results in KJAR like for DRL exec model rules (#2117)

* Listener in configuration

* Move new instance of DMNCompilerConfigurationImpl outside the method

* Register listeners from configuration

* Listener gets filename and file contents

* Typesafe file path

* Avoid compile and define invoker based on listener

* Optimized import

* Deferred compiler

* Try read the evaluator from the class loader

* Removed boolean from event

* Events only in deferred

* Fix option of deferred

* Find the compiled class at runtime

* Find classes

* Instantiate evaluator

* Printout of invokator

* Avoid regenerate the classes if there's the META-INF file

* init parameters

* It workds

* Move generated class name to DTableModel.java

* DMNRuleClassFile

* Refactor

* Renamed ExecModelDMNMavenSourceCompiler.java to MavenSourceCompiler

* OOP

* Extracted method

* Inverted if condition

* Removed println

* Factory to createDMNEvaluator

* Factory to createDMNEvaluator

* Public Rule class flie

* Added debug

* Reverted useless changes

* Avoid caching configuration

* Cache CompilerConfigurationImpl

* Removed ExecModelCompilerDeferredOption.java

* Minor fixes

* minor fixes 2

    • -8
    • +21
    ./core/assembler/DMNAssemblerService.java
    • -3
    • +32
    ./core/compiler/DMNEvaluatorCompiler.java
  1. … 4 more files in changeset.
DROOLS-3132 DMN assign null to ItemDefinition with allowedValues (#2108)

  1. … 3 more files in changeset.
DROOLS-3055 DMN 1.2 compiler to support type alias (#2088)

    • -13
    • +6
    ./core/compiler/DMNCompilerImpl.java
    • -0
    • +14
    ./core/compiler/DMNTypeRegistryV12.java
  1. … 2 more files in changeset.
DROOLS-3045 DMN model API to display namespace transitive import deps (#2087)

  1. … 2 more files in changeset.
DROOLS-3026 DMN model get[Decision|Input]by[Name|Id] consistency (#2085)

* DROOLS-3026 DMN model get[Decision|Input]by[Name|Id] consistency

* Refactoring.

  1. … 1 more file in changeset.
DROOLS-3012 DMN API to evaluate direct-dependency imported Decisions (#2081)

  1. … 1 more file in changeset.
DROOLS-3005 DMN DecisionService having an imported requiredInput (#2076)

    • -5
    • +40
    ./core/ast/DMNDecisionServiceFunctionDefinitionEvaluator.java
  1. … 3 more files in changeset.
DROOLS-2823 FEEL Parser: refactor `not` unary negation and `not` function call; fix support to wildcard `?` (#2059) (#2074)

* wip

* all tests pass

* wip

* fix input var type

* fields order, notExitst builtin f

* most compile-time tests pass

* fix all compiler tests

* fix all tests

* grammar fix

* cleanup

* move method back into its original position

* fix short-circuiting on null (notExists)

* test support to listeners

* fix error logging

* remove decision table in feel expresion tests -- no longer in 1.2

* replace commented out tests with error-checking tests

* move NOT to lexing section;

* fix erroneous reference to non-existing symbol "Not_Key"

(cherry picked from commit 23b87d2e62a1f550ed7afd47dba27b34c9b9a01c)

  1. … 25 more files in changeset.
DROOLS-2823 FEEL Parser: refactor `not` unary negation and `not` function call; fix support to wildcard `?` (#2059)

* wip

* all tests pass

* wip

* fix input var type

* fields order, notExitst builtin f

* most compile-time tests pass

* fix all compiler tests

* fix all tests

* grammar fix

* cleanup

* move method back into its original position

* fix short-circuiting on null (notExists)

* test support to listeners

* fix error logging

* remove decision table in feel expresion tests -- no longer in 1.2

* replace commented out tests with error-checking tests

* move NOT to lexing section;

* fix erroneous reference to non-existing symbol "Not_Key"

  1. … 25 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

    • -1
    • +10
    ./core/compiler/DecisionCompiler.java
  1. … 2 more files in changeset.
DROOLS-2943 DMN DecisionServiceCompiler not correctly wired for DMNv1.2 format (#2037)

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

... format

* .

  1. … 8 more files in changeset.
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)

* .

  1. … 2 more files in changeset.
[DROOLS-2923] Improve DMN execution performance (#1997)

[DROOLS-2923] Improve DMN execution performance

    • -0
    • +2
    ./core/assembler/DMNAssemblerService.java
  1. … 1 more file in changeset.
DROOLS-2927 DMN DecisionTable inputClause importing ItemDefinition ... (#2025)

... throws NPE at compilation

    • -17
    • +6
    ./core/compiler/DMNEvaluatorCompiler.java
  1. … 2 more files in changeset.