[jboss-jira] [JBoss JIRA] (JBRULES-3447) Parametrized queries don't work in DSL

RH Bugzilla Integration (JIRA) jira-events at lists.jboss.org
Sun Jun 3 17:59:17 EDT 2012


    [ https://issues.jboss.org/browse/JBRULES-3447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12698269#comment-12698269 ] 

RH Bugzilla Integration commented on JBRULES-3447:
--------------------------------------------------

lcarlon <lcarlon at redhat.com> made a comment on [bug 742893|https://bugzilla.redhat.com/show_bug.cgi?id=742893]

Thanks Mario!
                
> Parametrized queries don't work in DSL
> --------------------------------------
>
>                 Key: JBRULES-3447
>                 URL: https://issues.jboss.org/browse/JBRULES-3447
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>            Reporter: Mario Fusco
>            Assignee: Mario Fusco
>             Fix For: 5.3.2.Final, 5.4.0.Final
>
>
> When expanding rule file containing definition of query with parameters I get from knowledge builder 'Unable to expand: (Person p)'.
> Steps to Reproduce:
> 1. add included dsl and dslr files to KnowledegBuilder
> 2. check that KnowledgeBuilder.getErrors() returns reported problem
> dslr file:
> package org.jboss.qa.drools.features
> import org.jboss.qa.drools.domain.Person
> query "isMature"(Person p)
>  There is a person
>   - age is greater than 18
>   - equals p
> end
> dsl file:
> [when]There is a person=Person()
> [when]- {field:\w*} {operator} {value:\d*}={field} {operator} {value}
> [when]- equals {variable}=this := {variable}
> [when]is greater than=>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list