[jboss-jira] [JBoss JIRA] Updated: (JBRULES-2475) DSL configuartion conditions with same beginnings cause errors
Rudi Mentaer (JIRA)
jira-events at lists.jboss.org
Fri Apr 9 03:39:38 EDT 2010
[ https://jira.jboss.org/jira/browse/JBRULES-2475?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rudi Mentaer updated JBRULES-2475:
----------------------------------
Description:
To reproduce the error you can create a new DSL configuration:
[condition][]ArbitraryClass=$c: ArbitraryClass()
[condition][ArbitraryClass]- Client ID equals {id}=clientID == {id}
[condition][ArbitraryClass]- Client ID equals {id1} or {id2}=clientID == {id1} || clientID == {id2}
in the DSL:
when
ArbitraryClass
- Client ID equals 1 or 2
then
#arbitrary action
You will get the following errors:
[ERR 102] Line 3:39 mismatched input 'or' expecting ')' in rule '...' in pattern ArbitraryClass
[ERR 101] Line 3:42 no viable alternative at input '2' in rule '...'
However, if you change the second line of the DSL configuration to
[condition][ArbitraryClass]- Client ID is {id}=clientID == {id}
it will work like a charm
was:
To reproduce the error you can create a new DSL configuration:
[condition][]ArbitraryClass=$c: ArbitraryClass()
[condition][ArbitraryClass]- Client ID equals {id}=clientID == {id}
[condition][ArbitraryClass]- Client ID equals {id1} or {id2}=clientID == {id1} || clientID == {id2}
in the DSL:
when
Arbitrary
- Client ID equals 1 or 2
then
#arbitrary action
You will get the following errors:
[ERR 102] Line 3:39 mismatched input 'or' expecting ')' in rule '...' in pattern ArbitraryClass
[ERR 101] Line 3:42 no viable alternative at input '2' in rule '...'
However, if you change the second line of the DSL configuration to
[condition][SomeClass]- Client ID is {id}=clientID == {id}
it will work like a charm
> DSL configuartion conditions with same beginnings cause errors
> --------------------------------------------------------------
>
> Key: JBRULES-2475
> URL: https://jira.jboss.org/jira/browse/JBRULES-2475
> Project: Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: drools-guvnor
> Affects Versions: 5.1.0.M1
> Reporter: Rudi Mentaer
> Assignee: Mark Proctor
>
> To reproduce the error you can create a new DSL configuration:
> [condition][]ArbitraryClass=$c: ArbitraryClass()
> [condition][ArbitraryClass]- Client ID equals {id}=clientID == {id}
> [condition][ArbitraryClass]- Client ID equals {id1} or {id2}=clientID == {id1} || clientID == {id2}
> in the DSL:
> when
> ArbitraryClass
> - Client ID equals 1 or 2
> then
> #arbitrary action
> You will get the following errors:
> [ERR 102] Line 3:39 mismatched input 'or' expecting ')' in rule '...' in pattern ArbitraryClass
> [ERR 101] Line 3:42 no viable alternative at input '2' in rule '...'
> However, if you change the second line of the DSL configuration to
> [condition][ArbitraryClass]- Client ID is {id}=clientID == {id}
> it will work like a charm
--
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