[jboss-jira] [JBoss JIRA] (DROOLS-1249) DSL rule doesn't compile when DSL contains more general pattern defined before more specific pattern.

Tibor Zimányi (JIRA) issues at jboss.org
Tue Aug 9 09:31:01 EDT 2016


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

Tibor Zimányi commented on DROOLS-1249:
---------------------------------------

PR with reproducer: https://github.com/droolsjbpm/drools/pull/872. 

> DSL rule doesn't compile when DSL contains more general pattern defined before more specific pattern.
> -----------------------------------------------------------------------------------------------------
>
>                 Key: DROOLS-1249
>                 URL: https://issues.jboss.org/browse/DROOLS-1249
>             Project: Drools
>          Issue Type: Bug
>          Components: core engine
>    Affects Versions: 6.4.0.Final
>            Reporter: Tibor Zimányi
>            Assignee: Mario Fusco
>            Priority: Minor
>
> When using DSL where more general pattern is defined sooner than more complex pattern, e.g. this: 
> [when]There is a number with=i:Integer()
> [when]There is a number with value of {value}=i:Integer(intValue() == {value})
> DSL rule fails to compile with error like this: 
> [ERR 102] Line 4:20 mismatched input 'of' in rule "sample rule"
> Used DSL rule: 
> package org.test
> rule 'sample rule'
> when There is a number with value of 10
> then end
> I will make a PR with reproducer for this. 



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)



More information about the jboss-jira mailing list