Uploaded image for project: 'JBoss BRMS Platform'
  1. JBoss BRMS Platform
  2. RHBRMS-1416

MVELExprAnalyzer assesses a correct date syntax as error

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Won't Do
    • 6.1.0
    • None
    • Eclipse Tooling
    • None

    Description

      Description of problem:
      Although a following drl works fine, there is an ERROR report in Problem tab.

      [rule]
      rule "GoodBye"
      when
      Message( status == Message.GOODBYE, myMessage : message, today <= "2015/07/26" )
      then
      System.out.println( myMessage );
      end

      [error message]
      Unable to Analyse Expression today <= "2015/07/26":
      [Error: Comparison operation requires compatible types. Found class java.util.Date and class java.lang.String]
      [Near :

      {... today <= "2015/07/26" ....}

      ]
      ^

      Version-Release number of selected component (if applicable):
      JBDS 8.1.0.GA
      JBDSIS 8.0.2.GA

      Steps to Reproduce:
      1. Create a new sample Drools project using JBDS
      2. Replace a drl file with the attached one
      3. check problem tab(make sure the Drools runtime is set)

      Actual results:
      There is a error message relating with the rule

      Expected results:
      There is no error message

      Additional info:

      Attachments

        Activity

          People

            bbrodt_jira Robert (Bob) Brodt (Inactive)
            rhn-support-hfuruich Hisao Furuichi
            Edson Tirelli, Kris Verlaenen, Mario Fusco
            Tomas David Tomas David
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: