[jboss-jira] [JBoss JIRA] (DROOLS-4902) Can not use mod operators (%) in when closures.

Mario Fusco (Jira) issues at jboss.org
Mon Jan 6 05:02:22 EST 2020


     [ https://issues.redhat.com/browse/DROOLS-4902?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mario Fusco updated DROOLS-4902:
--------------------------------
    Sprint: 2020 Week 01-03 (from Dec 30)


> Can not use mod operators (%) in when closures.
> -----------------------------------------------
>
>                 Key: DROOLS-4902
>                 URL: https://issues.redhat.com/browse/DROOLS-4902
>             Project: Drools
>          Issue Type: Bug
>          Components: core engine
>    Affects Versions: 7.31.0.Final
>            Reporter: xb l
>            Assignee: Mario Fusco
>            Priority: Major
>
> When I study drools , I write a rule use divide operator
> {code:java}
> rule "Buzz" salience 2
>  when
>   $n: Number( this / 5 == 3 )
>  then
>   System.out.println("Buzz");
> end
> {code}
> It's OK.
> But:
> {code:java}
> rule "Buzz" salience 2
>  when
>   $n: Number( this % 5 == 0 )
>  then
>   System.out.println("Buzz");
> end
> {code}
> Report parser error: Unable to Analyse Expression this % 5 == 0:



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jboss-jira mailing list