Clone Tools
  • last updated a few minutes ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
[BAPL-1259] Add logging for rule performance analysis (#2900)

* [BAPL-1259] Add logging for rule performance analysis

- wip

* - Encapsulate data in NodeStats

* - License

* - warn log. better calc

* - applied to phreak nodes

- moved ReteDumper to src

* - applied to PhrealEvalNode

- try/finally

* - Introduced Factory to keep original PhreakNode and Constraints clean. Mertic classes are implemented as sub class

* - fix equals

* - revert pom

* - remove setEnabled

* - fixed code smells

* - fixed code smells. Keep "cloned" private

* - Fix/Add license

- Removed unnecessary super()

- Fixed access modifier

* - Add log to ReteDumper

* - fixed license

* - moved to drools-metric

* - osgi bundle

* - fixed code smell

* - Removed OSGi bundle

    • -178
    • +0
    ./java/org/drools/core/reteoo/ReteDumper.java
  1. … 51 more files in changeset.
[DROOLS-5275] Descope Traits (#2887)

* [DROOLS-5275] Descope Traits

New module for traits

Dependency on core

trait tests moved from drools core to traits

Split Trait logic in GenericTypeDefinition

Avoid using static method in DefaultFactHandle

Reverted DefaultBeanClassBuilder to master

DefualtBeanClassBuilder does not depend on traits

Moved trait test to LegacyTraitTest.java

Renamed TraitProxy, TraitProxyImpl extends TraitProxy

BaseTraitProxy file in service

Moved traits DRL to traits module

Fix Manual injection in MetadataTest

Injection of TraitPropertyWrapperBuilder

Moved TraitableBean to drools core

Moved TraitTypeMap and TraitableBean to core

Fix testTraitRedundancy

Descope trait OOP, with KieComponentFactoryInjected

Subclass DefaultFactHandle

Removed trait support for DisconnectedFactHandle.java (dead code)

TraitNamedEntryPoint

Moved trait persistence test to traits module

IsAEvaluatorDefinition has to be defined explictly

Removed TRAITSET_FIELD_NAME from listened properties as it wasn't covered by test

Create KnowledgePackageImpl using KieComponentFactory

Subclassed KnowledgePackageImpl to TraitKnowledgePackageImpl.java, removed TraitCoreService.java

removed traits from implicit imports

Fix specific case for JBPM in which the kbase is not present

* Updated TraitExample.java in drools-example to import trait dependency

* Added clarifying comment

* org.drools.traits.core.factmodel.traits

to

org.drools.traits.core.factmodel

* kie-util-test to test scope and jaxb to provided, retriggering

* Fix license

    • -505
    • +0
    ./java/org/drools/core/meta/MetadataTest.java
    • -36
    • +0
    ./java/org/drools/core/meta/org/test/Klass.java
    • -275
    • +0
    ./java/org/drools/core/meta/org/test/SubKlass_.java
    • -1253
    • +0
    ./java/org/drools/core/util/HierarchyTest.java
  1. … 359 more files in changeset.
[DROOLS-5444] get rid of no longer useful PropagationQueuingNode (#2955)

  1. … 6 more files in changeset.
[RHPAM-2960] Case instance update fails with java.io.NotSerializableException: org.jbpm.services.task.persistence.JPATaskModelFactory for cases containing multiple SLAs

  1. … 3 more files in changeset.
KOGITO-1546 XStreamUtils kie-soup refactoring (#2874)

* KOGITO-1546 XStreamUtils kie-soup refactoring

* drools-core dep update

* kie-dmn-backend dep update

  1. … 21 more files in changeset.
[DROOLS-2965] create activation directly from the alpha network when a rule has no beta nodes (#2860)

  1. … 40 more files in changeset.
[DROOLS-4866] fix activations comparison during unmarshalling

  1. … 1 more file in changeset.
[KOGITO-608] remove dependency from TypeResolver in kie-soup (#2668)

  1. … 80 more files in changeset.
decouple ruleunit + pluggable classloader (#2652)

* decouple ruleunit

* pluggable classloader

* create osgi bundle

* register dynamic component factory in osgi Activator

* fix osgi integration

    • -2
    • +7
    ./java/org/drools/core/meta/MetadataTest.java
    • -83
    • +0
    ./java/org/drools/core/ruleunit/GuardTest.java
    • -30
    • +0
    ./java/org/drools/core/ruleunit/SimpleFact.java
  1. … 182 more files in changeset.
Add unit tests for org.drools.core.util.bitmask.LongBitMask (#2434)

These tests were written using Diffblue Cover

    • -0
    • +126
    ./java/org/drools/core/util/bitmask/LongBitMaskTest.java
[DROOLS-4388] make drools agenda-filters serializable (#2491)

* [DROOLS-4388] make drools agenda-filters serializable

* [DROOLS-4388] make drools agenda-filters serializable

  1. … 10 more files in changeset.
[DROOLS-4343] Change fact handle id type to long

  1. … 33 more files in changeset.
DROOLS-4278 Applying PMML model using kie-server fails (#2430) (#2453)

* Changed the ApplyPmmlModelCommand execute method so that it uses a

RegistryContext, instead of a RequestContextImpl.

* Added more tests for ApplyPmmlModelCommand

* Changed how the ApplyPmmlModelCommand applied

results to the ExecutionResultImpl.

    • -0
    • +112
    ./resources/org/kie/pmml/test_scorecard.pmml
  1. … 1 more file in changeset.
DROOLS-4278 Applying PMML model using kie-server fails (#2430)

* Changed the ApplyPmmlModelCommand execute method so that it uses a

RegistryContext, instead of a RequestContextImpl.

* Added more tests for ApplyPmmlModelCommand

* Changed how the ApplyPmmlModelCommand applied

results to the ExecutionResultImpl.

    • -0
    • +112
    ./resources/org/kie/pmml/test_scorecard.pmml
  1. … 1 more file in changeset.
[DROOLS-4085] Added change set xsd to avoid fetching it from the internet (#2373)

  1. … 12 more files in changeset.
[DROOLS-4085] Support follow redirects and avoid using external URL (#2369)

* [DROOLS-4085] Support follow redirects and avoid using external URL for change set XSD

* Remove all other references to external XSD

* Avoid getting XSD from the internet

  1. … 9 more files in changeset.
DROOLS-3988 Fix change-set XSD URL (#2333)

  1. … 9 more files in changeset.
[DROOLS-3177] Moved RegistryContext to kie-internal (#2174)

  1. … 93 more files in changeset.
DROOLS-3183 Create unit tests for classes in org.drools.core.ruleunit package (#2134)

* Add unit tests for Guard and RuleUnitDescr classes

* Add unit tests for Guard and RuleUnitDescr classes

* Add RuleUnitRegostry test class

* Some renaming in rule units

* Add unit test for RuleUnitFactory

* Add unit test for RuleUnitGuardSystem

* Fix failing tests

    • -0
    • +83
    ./java/org/drools/core/ruleunit/GuardTest.java
    • -0
    • +109
    ./java/org/drools/core/ruleunit/RuleUnitDescriptionRegistryTest.java
    • -0
    • +105
    ./java/org/drools/core/ruleunit/RuleUnitFactoryTest.java
    • -0
    • +35
    ./java/org/drools/core/ruleunit/RuleUnitTestUtil.java
    • -0
    • +33
    ./java/org/drools/core/ruleunit/RuleUnitWithDataSource.java
    • -0
    • +30
    ./java/org/drools/core/ruleunit/SimpleFact.java
    • -0
    • +105
    ./java/org/drools/core/ruleunit/TestRuleUnit.java
    • -0
    • +30
    ./java/org/drools/core/ruleunit/TestRuleUnit2.java
  1. … 4 more files in changeset.
JBPM-7880 - ElasticSearch event emitter for runtime events (#2120)

[DROOLS-3076] test and fix ScalablePool

    • -0
    • +116
    ./java/org/drools/core/util/ScalablePoolTest.java
  1. … 2 more files in changeset.
[DROOLS-2892] fix PathMemory reset

    • -16
    • +67
    ./java/org/drools/core/reteoo/ReteDumper.java
  1. … 2 more files in changeset.
[DROOLS-2871] remove manners example

  1. … 36 more files in changeset.
[DROOLS-2740] Move ExecutableCommand to public API (#1985)

* [DROOLS-2740] Split ExecutableCommand to internal TransactionalCommand and public ExecutableCommand

* [DROOLS-2740] Small cast fixes

* [DROOLS-2740] Fix regression

* Revert "[DROOLS-2740] Split ExecutableCommand to internal TransactionalCommand and public ExecutableCommand"

This reverts commit b8eff68

* Created NotTransactionalCommand interface as marker interface and migrated to public ExecutableCommand interface

* Added test for InternalExecutable.canRunInTransaction

* Restored a deprecated internal ExecutableCommand for backward compatibility

  1. … 108 more files in changeset.
[FINDBUGS] First bunch of fixes for problems reported by FindBugs in drools-core (#1971)

* [findbugs] Create classloaders only inside doPrivileged block

* [findbugs] Use correct map for accumulate imports initialization

* [findbugs] Uncallable method defined in anonymous class

* [findbugs] Impossible cast

* [findbugs] Code checks for specific values returned by compareTo

* [findbugs] Bad attempt to compute abs. value of signed 32-bit hashcode

* [findbugs] Nullcheck of value previously dereferenced

* [findbugs] Uninit. read of field method called from constr. of superclass

* [findbugs] equals overrides equals in superclass and may not be symmetric

* [findbugs] Possible null pointer dereference

* [findbugs] Fix failing tests

* [findbugs] Should be a static inner class

* [findbugs] Private method is never called

* [findbugs] Inefficient use of keySet iterator instead of entrySet iterator

* [findbugs] Private method is never called

* [findbugs] Method concatenates strings using + in a loop

* [findbugs] Method invokes inefficient Number constructor

* [findbugs] Boxing/unboxing to parse a primitive

* [findbugs] Boxed value is unboxed and then immediately reboxed

* [findbugs] Other boxing/unboxing issues

* [findbugs] Method allocates a boxed primitive just to call toString

* [findbugs] Fix test

* [findbugs] Sequence of calls to concurrent abstraction may not be atomic

* [findbugs] Possible double check of field (double-checked locking)

* [findbugs] Method does not release lock on all exception paths

* [findbugs] Class is Serializable, but doesn't define serialVersionUID

* [findbugs] Method ignores exceptional return value

* [findbugs] Method uses the same code for two branches

* [findbugs] Write to static field from instance method

* Revert to instanceOf comparison

  1. … 65 more files in changeset.
[DROOLS-2695] make beta node indexes to support type coercion (#1973)

* [DROOLS-2695] make beta node indexes to support type coercion

* [DROOLS-2695] make beta node indexes to support type coercion

(cherry picked from commit 09d3c3ab1b687f3ad16bad9a874e233f1836302e)

  1. … 2 more files in changeset.
[DROOLS-2695] make beta node indexes to support type coercion (#1973)

* [DROOLS-2695] make beta node indexes to support type coercion

* [DROOLS-2695] make beta node indexes to support type coercion

  1. … 2 more files in changeset.
DROOLS-2554 allow variance accumulate to survive NaN on reverse (#1902)

* allow variance accumulate to survive a reverse when only one fact has been added

* Update VarianceNaNTest.java

    • -0
    • +32
    ./java/org/drools/core/base/accumulators/VarianceNaNTest.java
  1. … 1 more file in changeset.
DROOLS-2554 allow variance accumulate to survive NaN on reverse (#1902)

* allow variance accumulate to survive a reverse when only one fact has been added

* Update VarianceNaNTest.java

(cherry picked from commit d82eeb897bddc6bec37ae8a7cbeec18043e6286b)

    • -0
    • +32
    ./java/org/drools/core/base/accumulators/VarianceNaNTest.java
  1. … 1 more file in changeset.
DROOLS-2520 Fix executors and threads handling in drools-compiler tests (#1887)

  1. … 36 more files in changeset.