[
https://jira.jboss.org/jira/browse/JBRULES-1262?page=com.atlassian.jira.p...
]
Edson Tirelli updated JBRULES-1262:
-----------------------------------
Component/s: drools-compiler-DSL
(was: drools-compiler)
Fix Version/s: FUTURE
(was: 5.0.0.GA)
DSL Parser "eval"
-----------------
Key: JBRULES-1262
URL:
https://jira.jboss.org/jira/browse/JBRULES-1262
Project: JBoss Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: drools-compiler-DSL
Affects Versions: 4.0.1
Reporter: M H
Assignee: Edson Tirelli
Priority: Minor
Fix For: FUTURE
[when]of type Item=Item()
[when]- Title equals "{value}"=eval(title.isEqual("{value}")
[when]- Event equals "{value}"=eval(id.isEqual("{value}")
[then]Log : "{message}"=System.out.println("{message}");
the dslr File:
expander Test.dsl
rule "Your First Rule"
when
$p : of type Item
- Title equals "test"
- Event equals "test"
then
#actions
end
resolves to (could be seen in the drl viewer)
rule "Your First Rule"
when
$p :Item( eval(title.isEqual("test",
eval(id.isEqual("test") ) )
then
#actions
end
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira