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

Guided Decision Tables: Construction of DRL for "otherwise" values includes empty String

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

    XMLWordPrintable

Details

    Description

      Description of problem:

      Columns with "otherwise" cells generate DRL including the "otherwise" cell; manifesting itself as an empty String in the DRL. For example 'Person( name not in ( "Mike", "Mark", "" ) )'. This is caused by marshalling of the Decision Table model from client to server where the default constructor for DTCellValue52 sets the cell's value to an empty String.

      Version-Release number of selected component (if applicable):

      6.4.0.Final (Community); 6.3.x (Product)

      How reproducible:

      Steps to Reproduce:
      1. Create a Guided Decision Table
      2. Add a Condition column for a String field
      3. Set operator to "=="
      4. Add at least 2 rows
      5. Set the cell of the column, row 1 to "a"
      6. Set the cell of the column, row 2 to <otherwise>
      7. View source

      Actual results:

      DRL like 'Person( name not in ("a", "") )' is generated.

      The empty String is erroneous.

      Expected results:

      DRL like 'Person( name not in ("a") )' is generated.

      Attachments

        Activity

          People

            manstis@redhat.com Michael Anstis
            manstis@redhat.com Michael Anstis
            Archiver:
            rhn-support-ceverson Clark Everson
            Tomas David Tomas David
            Tomas David Tomas David
            etirelli, Rajesh Rajasekaran

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              PagerDuty