• last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
JBRULES-2814

JBRULES-2819

PackageBuilder.java

- make sure errors from DSL compilation are passed on

AntlrDSLMappingEntry.java

- improve several regexes

- fix closure counting errors

DSLTokenizedMappingFile.java

- preprocess DSL source: fold continuations, omit comments, get options

- postprocess errors

DefaultDSLMapping.java, DSLMapping.java

- add options

DefaultExpander.java

- improve pattern for locating rule-when-then-end and query-end

- add option support (dump full result, show replacements step-by-step)

- replace values "manually"

- keep variables from previous lines of condition or consequence

- honour !lc, !uc !ucfirst, !num, choices

DSLMap.g

DSLMapWalker.g

- permit empty value section

- omit all comment line handling from parser

- omit the useless "q" part of variable definition

    • -258
    • +201
    ./java/org/drools/lang/dsl/DSLMapWalker.java
    • -0
    • +16
    ./java/org/drools/lang/dsl/DSLMapping.java
    • -511
    • +412
    ./java/org/drools/lang/dsl/DSLMapLexer.java
    • -1132
    • +619
    ./java/org/drools/lang/dsl/DSLMapParser.java
    • -85
    • +68
    ./resources/org/drools/lang/dsl/DSLMap.g
    • -13
    • +5
    ./resources/org/drools/lang/dsl/DSLMapWalker.g
    • -70
    • +261
    ./java/org/drools/lang/dsl/DefaultExpander.java
-Compilation errors are handled more gracefully, instead of a failed classloader exception that is not caught.
    • -0
    • +26
    ./java/org/drools/rule/builder/dialect/DialectError.java
  1. … 3 more files in changeset.
specify generic types for map
JBRULES-2827: Migrate Drools Flow to jBPM5

- migrating

  1. … 44 more files in changeset.
- commenting out failing test
  1. … 1 more file in changeset.
JBRULES-2813 Unify two Composite ClassLoader implementations

-Users should no longer be able to set the classloader directly, only add classloaders to the composite classloader

fix incorrect counting of capturing groups

fix boundary test (space vs. non-word)

useless one-way Map removed
    • -32
    • +29
    ./java/org/drools/lang/dsl/DefaultExpander.java
JBRULES-2813 Unify two Composite ClassLoader implementations

-Fixed failing test, we need the classloader to be cloned if the configuration is to be shared among kbases.

  1. … 4 more files in changeset.
JBRULES-2642: working on support for multiple functions. Upgrading MVEL to 2.0.19.
    • -1
    • +1
    ./java/org/drools/lang/dsl/DSLMapParser.java
    • -495
    • +495
    ./java/org/drools/lang/DescrBuilderTree.java
    • -2
    • +2
    ./java/org/drools/lang/DRL5xParser.java
    • -1
    • +1
    ./java/org/drools/lang/DRL5xLexer.java
    • -10764
    • +11062
    ./java/org/drools/lang/DRLParser.java
    • -901
    • +902
    ./java/org/drools/lang/DRLLexer.java
    • -1
    • +1
    ./java/org/drools/lang/dsl/DSLMapLexer.java
    • -1
    • +1
    ./java/org/drools/lang/dsl/DSLMapWalker.java
  1. … 12 more files in changeset.
JBRULES-2813 OSGi like ClassLoader problem

JBRULES-2795 ProcessRuntimeImpl uses the wrong classpath for instantiante implementations of managers

-These two jiras are related, as we first had to make a unified classloader before it would work.

Then after that each module needs to make sure it's classloader is in the composite classloader.

  1. … 12 more files in changeset.
JBRULES-1820 Exception: Input stream is not explicitly closed.
JBRULES-2813 Unify two Composite ClassLoader implementations
  1. … 20 more files in changeset.
-removed classloader crap from ClassBuilder

-removed injecting of byte[] into the app classloader

  1. … 4 more files in changeset.
Updated Metadata structure
    • -873
    • +902
    ./java/org/drools/lang/DescrBuilderTree.java
  1. … 9 more files in changeset.
fixed deletion vs update of Lexer/Parser/Walker
fixed deletion vs update of Lexer/Parser/Walker
    • -0
    • +44259
    ./java/org/drools/lang/DRLParser.java
    • -0
    • +4854
    ./java/org/drools/lang/DescrBuilderTree.java
    • -4
    • +4
    ./java/org/drools/lang/ParserHelper.java
    • -0
    • +5762
    ./java/org/drools/lang/DRLLexer.java
    • -77
    • +77
    ./java/org/drools/lang/DroolsTreeAdaptor.java
    • -20
    • +20
    ./java/org/drools/compiler/DrlParser.java
  1. … 7 more files in changeset.
Parser fixes, related to 35927.
    • -4
    • +4
    ./java/org/drools/lang/ParserHelper.java
    • -20
    • +20
    ./java/org/drools/compiler/DrlParser.java
    • -77
    • +77
    ./java/org/drools/lang/DroolsTreeAdaptor.java
  1. … 6 more files in changeset.
Parser enhancements:

java statements (not tested),

java annotations for metadata @attr( key1 [= value1 ], ... )

Declared beans enhancements:

"extends"

field ordering : @pos(n)

Test:

Corrected a few test issues

    • -0
    • +34
    ./java/org/drools/lang/DroolsSoftKeywords.java
    • -12
    • +65
    ./java/org/drools/compiler/PackageBuilder.java
    • -4672
    • +0
    ./java/org/drools/lang/DescrBuilderTree.java
    • -6747
    • +0
    ./java/org/drools/lang/DRLLexer.java
    • -35887
    • +0
    ./java/org/drools/lang/DRLParser.java
    • -20
    • +844
    ./resources/org/drools/lang/DRL.g
    • -6
    • +7
    ./java/org/drools/rule/builder/RuleBuilder.java
    • -6
    • +25
    ./resources/org/drools/lang/DescrBuilderTree.g
    • -27
    • +49
    ./java/org/drools/lang/descr/DescrFactory.java
    • -18
    • +67
    ./java/org/drools/lang/descr/RuleDescr.java
  1. … 4 more files in changeset.
JBRULES-2760: fixing forall behavior
    • -0
    • +5
    ./java/org/drools/lang/descr/ForallDescr.java
    • -0
    • +5
    ./java/org/drools/lang/descr/AndDescr.java
  1. … 12 more files in changeset.
JBRULES-2642: Adding support for full java expressions + MVEL inline lists and maps on the 'from' expression. Adding support to the legacy parser. Introducing new parser.
    • -0
    • +4642
    ./java/org/drools/lang/DescrBuilderTree5x.java
    • -0
    • +3352
    ./java/org/drools/lang/DRL5xLexer.java
    • -1
    • +1
    ./java/org/drools/lang/dsl/DSLMapLexer.java
    • -25
    • +42
    ./java/org/drools/lang/dsl/DSLMapParser.java
    • -0
    • +16
    ./java/org/drools/lang/DroolsSoftKeywords.java
    • -0
    • +403
    ./resources/org/drools/lang/DescrBuilderTree5x.g
    • -1613
    • +2805
    ./java/org/drools/lang/DRLLexer.java
    • -1
    • +1
    ./java/org/drools/lang/dsl/DSLMapWalker.java
    • -0
    • +3
    ./java/org/drools/lang/descr/FromDescr.java
    • -0
    • +439
    ./java/org/drools/lang/ParserHelper.java
    • -11094
    • +21092
    ./java/org/drools/lang/DRLParser.java
    • -0
    • +18847
    ./java/org/drools/lang/DRL5xParser.java
    • -2614
    • +3681
    ./resources/org/drools/lang/DRL.g
  1. … 32 more files in changeset.
JBRULES-2745 - Problems in the use of escapes in the "matches" operator

    • -9
    • +37
    ./java/org/drools/lang/MVELDumper.java
  1. … 7 more files in changeset.
tolerate spaces between "timer(" and "cron:"
    • -1
    • +1
    ./java/org/drools/rule/builder/RuleBuilder.java
avoid NPE for badly registered evaluator
Add getOptionKeys to KnowledgeBuilderOptionsConfiguration
  1. … 3 more files in changeset.
JBRULES-2679: Mdularize Drools Flow

- separating out drools-flow-compiler

  1. … 6 more files in changeset.
JBRULES-2679: Mdularize Drools Flow

- separating out drools-flow-compiler

  1. … 6 more files in changeset.
JBRULES-2679: Mdularize Drools Flow

- separating out drools-flow-compiler

    • -403
    • +2
    ./java/org/drools/compiler/ProcessBuilder.java
    • -33
    • +0
    ./java/org/drools/compiler/RuleFlowLoadError.java
    • -12
    • +0
    ./java/org/drools/compiler/Dialect.java
    • -59
    • +20
    ./java/org/drools/compiler/PackageBuilder.java
    • -0
    • +33
    ./java/org/drools/compiler/ProcessLoadError.java
    • -0
    • +30
    ./java/org/drools/compiler/ProcessBuilderFactory.java
    • -5
    • +0
    ./java/org/drools/compiler/PackageRegistry.java
    • -0
    • +29
    ./java/org/drools/compiler/ProcessBuilderFactoryService.java
    • -19
    • +0
    ./java/org/drools/compiler/ProcessBuildError.java
  1. … 268 more files in changeset.
JBRULES-2679: Modularize Drools Flow

- extracted drools-flow-core from drools-core

    • -0
    • +18
    ./java/org/drools/osgi/compiler/Activator.java
  1. … 621 more files in changeset.
JBRULES-2610: disabling UnificationRestriction to enable join memory indexing back.
    • -13
    • +22
    ./java/org/drools/compiler/PackageBuilder.java
  1. … 6 more files in changeset.