Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-2597

Decision table only supports "." as decimal seperator

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

    XMLWordPrintable

Details

    • Hide
      • Create a decision table with a localized version of Excel (use a locale where decimal seperator is "," e.g. german)
      • create an ACTION column with numeric values and try to use them as a function parameter.
      • See attached xls file for reference
      Show
      Create a decision table with a localized version of Excel (use a locale where decimal seperator is "," e.g. german) create an ACTION column with numeric values and try to use them as a function parameter. See attached xls file for reference
    • Compatibility/Configuration
    • Hide

      I was not able to find a workaround. Changing the settings for decimal seperator in Excel or in Windows Control Panel does not work

      Show
      I was not able to find a workaround. Changing the settings for decimal seperator in Excel or in Windows Control Panel does not work

    Description

      In the german locale "," is used as decimal seperator.
      When using a "," in a localized spreadsheet drools does not parse this as a number but tries to read two arguments instead.

      Attached sheet has the following Rule Compilation error:
      The method set(String, Object) in the type RegelErgebnis is not applicable for the arguments (String, int, int)

      This error comes from coulumn G of the spreadsheet when trying to execute action: ergebnis.set(String, Object);
      This fails as $param is read as two int values instead of an Object.

      Attachments

        Activity

          People

            mproctor@redhat.com Mark Proctor
            rueckemann Lars Rückemann (Inactive)
            Archiver:
            rhn-support-ceverson Clark Everson

            Dates

              Created:
              Updated:
              Archived:

              PagerDuty