[
http://jira.jboss.com/jira/browse/JBRULES-993?page=all ]
Edgardo Carena updated JBRULES-993:
-----------------------------------
Summary: in DSL file, statement ignored when a previous one that is a subset of it
exists (was: statement ignored)
Description:
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
was:
if 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
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: Mark Proctor
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