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

Build fails when condition in spreadsheet contains '(' and ')' separately as a value

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 7.25.0.Final, 7.26.0.Final
    • Fix Version/s: None
    • Component/s: build, decision tables
    • Labels:
    • Environment:
      • 7.25.0.Final or 7.26.0.Final
      • spreadsheet decition table
      • EscapeQuote: false
    • Sprint:
      2019 Week 41-43 (from Okt 7)
    • Story Points:
      7
    • Steps to Reproduce:
      Hide

      unzip attached reproducer project and run mvn clean install

      Show
      unzip attached reproducer project and run mvn clean install
    • Workaround Description:
      Hide

      modify expression like RuleTable in 2nd sheet of Sample.xls in reproducer if possible

      Show
      modify expression like RuleTable in 2nd sheet of Sample.xls in reproducer if possible
    • Release Notes Text:
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      If condition contains '(' and ')' separately as different value in value cell, build fails with error like:

      [main] ERROR Unable to build KieBaseModel:dtables
      Unable to Analyse Expression $2:
      [Error: unable to resolve method using strict-mode: com.sample.Message.$2()]
      [Near : {... $2 ....}]
                   ^
      [Line: 6, Column: 2] : [Rule name='HelloWorld_11']
      

      This worked with 7.18.0.Final-redhat-00004 (RHDM7.4.1), but fails with 7.25.0.Final or 7.26.0.Final.

      Condition in DRL generated by spreadsheet compiler are different per these version.

      • 7.25.0.Final/7.26.0.Final
      		m:Message(status in (Message.HELLO), errorMessage in ("Hello", "Hi"), $2)
      
      • 7.24.0.Final/7.18.0.Final
      		m:Message(status in (Message.HELLO), errorMessage in ("Hello",  "Hi"))
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  volothamp Luca Molteni
                  Reporter:
                  hiroko Hiroko Miura
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: