[jboss-jira] [JBoss JIRA] Updated: (JBRULES-1455) Or / And used with DSL language

Mark Proctor (JIRA) jira-events at lists.jboss.org
Tue May 17 01:42:02 EDT 2011


     [ https://issues.jboss.org/browse/JBRULES-1455?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Proctor updated JBRULES-1455:
----------------------------------

    Fix Version/s: 5.2.0.CR1
                       (was: 5.2.0.M1)


> Or / And used with DSL language
> -------------------------------
>
>                 Key: JBRULES-1455
>                 URL: https://issues.jboss.org/browse/JBRULES-1455
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: drools-compiler
>    Affects Versions: 4.0.4
>            Reporter: M H
>             Fix For: 5.2.0.CR1
>
>
> DSL:
> [condition][]is a Person=Person()
> [condition][]- female=sex == "f"
> [condition][]- male=sex == "f"
> [condition][]- age {value}=age=={value}
> DSLR:
> rule
>    when
>         ($person: is a Person
>               - male
>               - age 60
>         or
>         $person: is a Person
>               - female
>               - age 70)
>    then
> end
> resolves to:
>                                |
>                               \/
> .... ($person: Person( , sex="m", age == 60)
>     or
>      $person: Person(sex="f", age == 70))

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list