Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-7397

Spreadsheet DRL generation optimization

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Unresolved
    • Major
    • None
    • 8.36.0.Final
    • decision tables
    • None
    • 2023 Week 15-17 (from Apr 10), 2023 Week 18-20 (from May 1), 2023 Week 21-23 (from May 22), 2023 Week 27-29 (from Jul 3), 2023 Week 30-32 (from Jul 24), 2023 Week 33-35 (from Aug 14), 2023 Week 36-38 (from Sep 4), 2023 Week 24-26 (from Jun 12)
    • NEW
    • NEW
    • ---
    • ---

    Description

      Issue Description:

      Users sometimes write a decision table which generates inefficient DRLs. A bind variable is declared in the previous column and the bind variable is used (only evaluating the variable, not Join) in the later column. Note that these columns are not combined, so result in different patterns.

      We can move such a constraint to the right pattern. It would provide correct property reactivity

       (before)
         when
             $fact1 : Fact1( $id1 : id == 1 )
             Fact2( $id2 : id == 2 )
             Fact2( id == 2, convertToIdString($id2) == "id2" ) 
         then
      
       (after)
         when
              $fact1 : Fact1( $id1 : id == 1 )
              Fact2( $id2 : id == 2, convertToIdString($id2) == "id2" )
              Fact2( id == 2 )
          then
      

      Acceptance Criteria:

      • Implement the optimization. Enabled by default.

      Attachments

        Issue Links

          Activity

            People

              rhn-support-tkobayas Toshiya Kobayashi
              rhn-support-tkobayas Toshiya Kobayashi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: