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

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

    XMLWordPrintable

    Details

    • 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
    • Docs QE Status:
      NEW
    • QE Status:
      NEW
    • [QE] How to address?:
      ---
    • [QE] Why QE missed?:
      ---

      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

          Issue Links

            Activity

              People

              Assignee:
              Rikkola Toni Rikkola
              Reporter:
              jomarko Jozef Marko
              Tester:
              Jozef Marko Jozef Marko
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: