[jboss-jira] [JBoss JIRA] Updated: (JBRULES-2130) DSL Bug while creating comparison combinations

Mark Proctor (JIRA) jira-events at lists.jboss.org
Sun Jul 12 23:36:29 EDT 2009


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

Mark Proctor updated JBRULES-2130:
----------------------------------

    Assignee: Edson Tirelli  (was: Mark Proctor)
    Priority: Major  (was: Blocker)


> DSL Bug while creating comparison combinations
> ----------------------------------------------
>
>                 Key: JBRULES-2130
>                 URL: https://jira.jboss.org/jira/browse/JBRULES-2130
>             Project: JBoss Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 5.0.1.FINAL
>         Environment: I tried building the DSL using Guvnor
>            Reporter: Prem Stephen
>            Assignee: Edson Tirelli
>
> In http://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-expert/html_single/index.html#d0e5595, section 4.10.4 - I am expanding on the following syntax example for structuring combinations in the DSL.
> In my example, I have
> [when]There is a Contact with=Contact()
> [when]- age is less than {age}=age < {age}
> [when]- age is greater than {age}=age > {age}
> [when]- age is less than or equal to {age}=age <= {age}   <-------------------- this line does not work
> [when]- age is foo than or equal to {age}=age <= {age}
> and my rule is
> when
> 	There is a Contact with
> 	- age is foo than or equal to 35
> 	
> then
> 	Log : "Contact exists Test";
> Now, the line that does not work is because it shares the start "age is less than " with an earlier DSL.
> Replacing "less" with "foo" works for this reason.
> I think the parsing needs to be fixed to look at the whole sentence.

-- 
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