Uploaded image for project: 'Red Hat Decision Manager'
  1. Red Hat Decision Manager
  2. RHDM-1696

BRL Column method call data type support is not complete for conversion

    XMLWordPrintable

    Details

    • Affects Build:
      CR1
    • Target Release:
    • Fix Build:
      CR1
    • Steps to Reproduce:
      Hide
      1. Import the sample Mortgages project
      2. Replace the original LoanApplication with LoanApplication.java
      3. Replace the original Pricing Loans with Pricing loans (1).gdst
      4. Convert Pricing Loans into XLS table
      5. Open converted XLS table - switch to 'Source' tab
      6. The addExplanation method assume exp is a variable instead of constant "exp"
      7. The deadline method assumes "08-Mar-2021" is a date, but it is a string, we probably need some wrapper converting String into Date

      Current: Validation of the XLS (converted from the GDST) will fail
      Expected: Validation of the XLS (converted from the GDST) will success

      Show
      Import the sample Mortgages project Replace the original LoanApplication with LoanApplication.java Replace the original Pricing Loans with Pricing loans (1).gdst Convert Pricing Loans into XLS table Open converted XLS table - switch to 'Source' tab The addExplanation method assume exp is a variable instead of constant "exp" The deadline method assumes "08-Mar-2021" is a date, but it is a string, we probably need some wrapper converting String into Date Current: Validation of the XLS (converted from the GDST) will fail Expected: Validation of the XLS (converted from the GDST) will success
    • Story Points:
      3
    • Affects:
      Release Notes
    • Sprint:
      2021 Week 19-21 (from May 10), 2021 Week 22-24 (from May 31), 2021 Week 25-27 (from Jun 21)
    • QE Test Coverage:
      +

      Description

      As part of DROOLS-5892 we introduced support of invoking java methods using template keys.

      However this new feature introduces new issue, if such guided decision table is converted into XLS decision table, then calls with String or Date arguments are not converted correctly.

      See steps to reproduce for more details.

      The good is such issue is not present in conversion of simple columns (Condition, Set the value of a field). Probably just these specific BRL columns invoking method calls are affected.

        Attachments

        1. LoanApplication.java
          4 kB
          Jozef Marko
        2. Pricing loans (1).gdst
          21 kB
          Jozef Marko
        3. string-date-conversion.webm
          1.24 MB
          Jozef Marko

          Issue Links

            Activity

              People

              Assignee:
              trikkola Toni Rikkola
              Reporter:
              jomarko@redhat.com Jozef Marko
              Tester:
              Jozef Marko Jozef Marko
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: