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

[Guided Decision Table] Error using a BigDecimal (or boolean?) field in a guided decision table

XMLWordPrintable

    • Undefined
    • NEW
    • NEW
    • ---
    • ---

      I created a guided decision table as in the screenshot-2 attached. It has a couple of BigDecimal fields in the pattern matching part and a boolean in the consequence. Immediately after I put a value in one of the 2 BigDecimal Field I have started being prompted with the error in screenshot-1.

      I checked the log it only has the following error message

      2020-10-22 10:15:33,734 ERROR [org.kie.workbench.common.services.backend.logger.GenericErrorLoggerServiceImpl] (default task-12) Error from user: wbadmin Error ID: 1541951009 Location: LibraryPerspective|$ProjectScreen,org.kie.workbench.common.screens.messageconsole.MessageConsole,DataModelerEditor?path_uri=default://master@MySpace/myproject/src/main/java/com/myspace/myproject/Person.java&file_name=Person.java&has_version_support=true,DataModelerEditor?path_uri=default://master@MySpace/myproject/src/main/java/com/myspace/myproject/Loan.java&file_name=Loan.java&has_version_support=true,AddAssetsScreen,GuidedDecisionTableEditor?path_uri=default://master@MySpace/myproject/src/main/resources/com/myspace/myproject/Loan%2520approval.gdst&file_name=Loan%20approval.gdst&has_version_support=true Exception: Uncaught exception: TypeError: b is undefined (http://localhost:8080/business-central/verifier/dtableVerifier/0AB389FF843679A9616206C669F1BFB6.cache.js:2637)

      I'm not sure that the error is cause by the BigDecimal field though. Since it says "TypeError: b is undefined" it could be also caused by the boolean (or maybe that b means something totally different). The generated drl, attached in screeshoot-3, seems correct however.

        1. screenshot-1.png
          30 kB
          Mario Fusco
        2. screenshot-2.png
          15 kB
          Mario Fusco
        3. screenshot-3.png
          21 kB
          Mario Fusco

              trikkola Toni Rikkola
              mfusco@redhat.com Mario Fusco
              Jozef Marko Jozef Marko (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: