[jboss-jira] [JBoss JIRA] Closed: (JBRULES-1763) extra writespace when use dsl

Toni Rikkola (JIRA) jira-events at lists.jboss.org
Mon Apr 13 11:24:23 EDT 2009


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

Toni Rikkola closed JBRULES-1763.
---------------------------------

    Resolution: Done


Bug was in Guvnor. DSLSentenceWidget added extra space before and after the variable if text box was used. 

> 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-guvnor
>    Affects Versions: 4.0.7, 5.0.0.M1
>         Environment: jboss-4.2.3.GA?drools-jbrms.war(4.0.7)?Windows XP?IE7
>            Reporter: zhou xianli
>            Assignee: Toni Rikkola
>             Fix For: 5.0.0.GA
>
>
> 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