Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-1191

compilation error when consequence has no space between rule mappings

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.0.1
    • Fix Version/s: 4.0.2
    • Component/s: None
    • Labels:
      None
    • Environment:

      Windows XP, Eclipse Europa

      Description

      I am using a DRL with a DSL. My DRL has a rule as follows:
      rule "Maximum Order Amount Exceeded"
      salience 9800
      when
      There is an Order

      • with an amount that exceeds 100000
        then
        Manually release the Order
        end

      The DSL for this rule is as follows:
      [condition][]There is an Order to release=theOrder : Order ( releasable == true)
      [condition][]- with an amount that exceeds

      {number}=amount >= {number}

      [consequence][]Manually release the Order=setManualRelease(drools.getRule().getName());retract(theOrder);

      But this produces a compilation error as follows:
      The method retract(Order) is undefined for the type Rule_Maximum_Order_Amount_Exceeded_0

      Thanks to the help of Edson we discovered that an embedded space is needed between the ; and the retract statement.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                cbrock Mike Brock
                Reporter:
                cmathrusse Chris Mathrusse
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: