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

Decision table conversion to DRL logic change in some version later than 6.1.0.Final

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • None
    • None
    • None
    • NEW
    • NEW

      It seems there was a change of how decision tables are converted to DRL in some version later than 6.1.0. See attached screenshot for decision table i'm trying to generate.

      In 6.1.0.Final this gets converted to:

      // rule values at C42, header at C37
      rule "X_42"
      	no-loop true
      	salience 65494
      	when
      		$p: Project(id == "40098")
      $c: Client()
      	then
      		modify($c) { incrementPricingStep(2, 8); }
      end
      

      but in 6.4.0.CR1 it gets converted to:

      // rule values at C42, header at C37
      rule "X_42"
      	no-loop true
      	salience 65494
      	when
      		$p: Project()
      $c: Client(id == "40098")
      	then
      		modify($c) { incrementPricingStep(2, 8); }
      end
      

      Maybe this is not intentional and caused by accident?

              mfusco@redhat.com Mario Fusco
              vgimbutas Vytautas Gimbutas (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: