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

    • 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

      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

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

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

                Created:
                Updated:
                Resolved: