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

Method calls with two parameters are not converted ocrrectly

XMLWordPrintable

    • Hide
      1. Import the sample Mortgages project
      2. Replace the original LoanApplication with LoanApplication.java
      3. Replace the original Pricing Loans with Pricing loans.gdst
      4. Convert Pricing Loans into XLS table

      Current: there will be two calls application.complexFunction("a value") and application.complexFunction("b value")
      Expected: there is one call application.complexFunction("a value", "b value")

      Show
      Import the sample Mortgages project Replace the original LoanApplication with LoanApplication.java Replace the original Pricing Loans with Pricing loans.gdst Convert Pricing Loans into XLS table Current: there will be two calls application.complexFunction("a value") and application.complexFunction("b value") Expected: there is one call application.complexFunction("a value", "b value")
    • Undefined
    • NEW
    • NEW
    • ---
    • ---

      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.

      The original guided decision table produces code like:

      However once converted into xls:

        1. LoanApplication.java
          4 kB
          Jozef Marko
        2. Pricing loans.gdst
          15 kB
          Jozef Marko
        3. Screenshot from 2021-03-08 12-37-43.png
          47 kB
          Jozef Marko
        4. Screenshot from 2021-03-08 12-37-55.png
          44 kB
          Jozef Marko

              trikkola Toni Rikkola
              rh-ee-jomarko Jozef Marko (Inactive)
              Jozef Marko Jozef Marko (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: