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

MVELExprAnalyzer assesses a correct date syntax as error

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Critical Critical
    • None
    • 6.1.0
    • Eclipse Tooling
    • None

      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:

              bbrodt_jira Robert (Bob) Brodt (Inactive)
              rhn-support-hfuruich Hisao Furuichi
              Archiver:
              rhn-support-ceverson Clark Everson
              Tomas David Tomas David
              Tomas David Tomas David
              etirelli, Kris Verlaenen, Mario Fusco

                Created:
                Updated:
                Resolved:
                Archived: