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

Error when copying Guided Rule with Bigdecimal

XMLWordPrintable

    • 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
    • NEW
    • NEW

      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

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

                Created:
                Updated:
                Resolved: