[jboss-jira] [JBoss JIRA] Closed: (JBRULES-993) in DSL file, statement ignored when a previous one that is a subset of it exists
Edson Tirelli (JIRA)
jira-events at lists.jboss.org
Mon Jul 16 13:33:54 EDT 2007
[ http://jira.jboss.com/jira/browse/JBRULES-993?page=all ]
Edson Tirelli closed JBRULES-993.
---------------------------------
Resolution: Rejected
Assignee: Edson Tirelli (was: Mark Proctor)
This is expected behavior, since you can define a recursive template that apply multiple rules during the transformation, and they are applied in sequence. What needs to be done is add proper documentation.
> in DSL file, statement ignored when a previous one that is a subset of it exists
> --------------------------------------------------------------------------------
>
> Key: JBRULES-993
> URL: http://jira.jboss.com/jira/browse/JBRULES-993
> Project: JBoss Rules
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Drl Parser/Builder
> Affects Versions: 4.0.0.MR3
> Reporter: Edgardo Carena
> Assigned To: Edson Tirelli
> Priority: Optional
>
> in a DSL file if you put 2 statements like this:
> [when]There is a Person at least {age} years old=Person(age > {age})
> [when]There is a Person at least {age} years old with name of "{name}"=Person(name=="{name}",age > {age})
> the second one will be ignored, while if you put the same in reverse
> [when]There is a Person at least {age} years old with name of "{name}"=Person(name=="{name}",age > {age})
> [when]There is a Person at least {age} years old=Person(age > {age})
> it will work well
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list