Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 7.31.0.Final
    • Fix Version/s: None
    • Component/s: core engine
    • Labels:
      None
    • Sprint:
      2020 Week 01-03 (from Dec 30)
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      When I study drools , I write a rule use divide operator

      rule "Buzz" salience 2
       when
        $n: Number( this / 5 == 3 )
       then
        System.out.println("Buzz");
      end
      

      It's OK.

      But:

      rule "Buzz" salience 2
       when
        $n: Number( this % 5 == 0 )
       then
        System.out.println("Buzz");
      end
      

      Report parser error: Unable to Analyse Expression this % 5 == 0:

      The drools document mentioned the same example:

      Person( age > 100 && ( age % 10 == 0 ) )
      % is Multiplicative operators, why parser error?

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mfusco Mario Fusco
                Reporter:
                lxbzmy xb l
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: