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

Mvel type coercion and rounding behavior compatibility between mvel 2.2.8 and 2.4.3

XMLWordPrintable

    • 2020 Week 07-09 (from Feb 10), 2020 Week 10-12 (from Mar 2)
    • 4
      • Try to execute rule from the description in BRMS 6.4.x and in RHDM 7.4+ release.
      • In the response we can see different values.
    • NEW
    • NEW

      I have rule like as:

      =========
      rule "My Rule"
      no-loop true
      dialect "mvel"
      when
      $info : MyInfo()
      then
      modify ($info)

      { setResult(15 * Math.round( new BigDecimal("49.4") ) / 100 ) }

      end
      =========

      If I execute this rule in BRMS 6.4.x release (mvel 2.2.8), I will get 7.35 in the response . But if I execute same rule in RHDM 7.4.+ release (mvel 2.4.3) I will 7 in the response.

            rhn-support-tkobayas Toshiya Kobayashi
            rhn-support-tkobayas Toshiya Kobayashi
            Daniel Rosa Daniel Rosa
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: