[jboss-jira] [JBoss JIRA] Created: (JBRULES-1763) extra writespace when use dsl
zhou xianli (JIRA)
jira-events at lists.jboss.org
Fri Sep 12 06:22:20 EDT 2008
extra writespace when use dsl
-----------------------------
Key: JBRULES-1763
URL: https://jira.jboss.org/jira/browse/JBRULES-1763
Project: JBoss Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: drools-brms
Affects Versions: 5.0.0.M1, 4.0.7
Environment: jboss-4.2.3.GA,drools-jbrms.war(4.0.7),Windows XP,IE7
Reporter: zhou xianli
Assignee: Mark Proctor
I create a bussiness rule using guided editor. then i add a WHEN use DSL sentence.
View source:
----------------------------------
rule "TestRule"
dialect "mvel"
when
m.message=="var1" ||m.message=="var2"
thenend
----------------------------------
That's OK.
but when i change the value var1 to var11,View source:
----------------------------------
rule "TestRule"
dialect "mvel"
when
m.message==" var11 " ||m.message==" var2 "
thenend
----------------------------------
That's not ok,it add a extra writespace around "var11".
My DSL
----------------------------------
[when]Message is "{var1}" or "{var2}"=m.message=="{var1}" ||m.message=="{var2}"
----------------------------------
--
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
More information about the jboss-jira
mailing list