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

Accept hexadecimal values in rule LHS

    XMLWordPrintable

Details

    Description

      It is not possible to use a hexadecimal value in the LHS of a rule.

      The manual says: "All standard Java numeric primitives are supported." As hexadecimal values are standard Java numeric primitives, this could be considered not just a new feature, but a bug (documentation bug at least).

      I found this issue first mentioned in the referenced user forum post from 2006; sadly, the poster did not create a JIRA issue as suggested, or at least I could not find one.

      Example:

      rule "bla"
      when
      Value( tag == 0x00080060 ) // ERROR!
      then
      //something
      end

      Attachments

        Activity

          People

            Unassigned Unassigned
            ulibube_jira Uli Bubenheimer (Inactive)
            Jozef Marko Jozef Marko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: