Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-2233

Error when copying Guided Rule with Bigdecimal

    XMLWordPrintable

Details

    • 1
    • CR1
    • +
    • Hide

      1. Import project Reproducer_02415008
      2. enter the folder, git init && git add . && git commit -m "msg"
      3. Import into business central
      4. Open GuidedRule.rdrl asset
      5. Click Copy and save a copy of the file
      6. Open the new file

      Show
      1. Import project Reproducer_02415008 2. enter the folder, git init && git add . && git commit -m "msg" 3. Import into business central 4. Open GuidedRule.rdrl asset 5. Click Copy and save a copy of the file 6. Open the new file
    • 2019 Week 29-31

    Description

      When copying a guided rule that contains a BigDecimal field, it adds another letter "B" in the drools file.

      Initial file:

      package com.myspace.reproducer_02415008;

      import java.lang.Number;

      rule "GuidedRule"
      dialect "mvel"
      when
      DataObject( field == 0.0B )
      then
      end

      --------

      Copied file source result code. Note the two B's :

      package com.myspace.reproducer_02415008;

      import java.lang.Number;

      rule "teste"
      dialect "mvel"
      when
      DataObject( field == 0.0BB )
      then
      end

      Attachments

        1. copiedRule.png
          copiedRule.png
          21 kB
        2. mainRule.png
          mainRule.png
          24 kB
        3. Reproducer_02415008.tgz
          8 kB

        Issue Links

          Activity

            People

              trikkola Toni Rikkola
              kvarela@redhat.com Karina Varela (Inactive)
              Jozef Marko Jozef Marko
              Jozef Marko Jozef Marko
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: