[JBoss JIRA] Created: (JBRULES-1826) illegal group reference while try to compile rule
by jey paulraj (JIRA)
illegal group reference while try to compile rule
--------------------------------------------------
Key: JBRULES-1826
URL: https://jira.jboss.org/jira/browse/JBRULES-1826
Project: JBoss Drools
Issue Type: Release
Security Level: Public (Everyone can see)
Components: drools-compiler
Affects Versions: 5.0.0.M2
Environment: WINDOWS XP
Reporter: jey paulraj
Assignee: Mark Proctor
I am getting the following error when I try to compile the rule using Drools compiler .50.0 MR2 jar. I am able to compile the same rule using Drools compiler 4.0.7.
java.lang.IllegalArgumentException: Illegal group reference
at java.util.regex.Matcher.appendReplacement(Matcher.java:722)
at java.util.regex.Matcher.replaceAll(Matcher.java:822)
at org.drools.lang.dsl.DefaultExpander.expandRHS(DefaultExpander.java:303)
at org.drools.lang.dsl.DefaultExpander.expandConstructions(DefaultExpander.java:143)
at org.drools.lang.dsl.DefaultExpander.expand(DefaultExpander.java:114)
at org.drools.compiler.DrlParser.parse(DrlParser.java:110)
at org.drools.compiler.DrlParser.parse(DrlParser.java:119)
at org.drools.compiler.DrlParser.parse(DrlParser.java:92)
at org.drools.compiler.DrlParser.parse(DrlParser.java:86)
at org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:297)
Here is the rules
drl
global java.util.List errorlist;
rule "excluded driver rule for ALL state"
#include attributes such as "salience" here...
when
#conditions
Excluded driver is present and check relationship code is valids for the look up type 4
then
#actions
log an error "UWED1001"
end
dsl
[consequence][]log an error "{errorCode}"= String[] errorMessage = {$name}; errorlist.add( new UWError("{errorCode}",$driverKey, errorMessage) );
[condition][] Excluded driver is present and check relationship code is valids for the look up type {TYPECODE} = ExcludedDriverDomain( $driverKey : driverKey , $name : driverName, $relationship : excludedDriverRelationshipToInsured ) PolicyLookupDataObject( type == {TYPECODE} , codeValues excludes $relationship )
--
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
15 years, 8 months
[JBoss JIRA] Created: (JBRULES-1763) extra writespace when use dsl
by zhou xianli (JIRA)
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-brms
Affects Versions: 5.0.0.M1, 4.0.7
Environment: jboss-4.2.3.GA,drools-jbrms.war(4.0.7),Windows XP,IE7
Reporter: zhou xianli
Assignee: Mark Proctor
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
15 years, 8 months
[JBoss JIRA] Created: (JBRULES-1863) Search in BRMS raises ERROR level messages in server.log
by Len DiMaggio (JIRA)
Search in BRMS raises ERROR level messages in server.log
--------------------------------------------------------
Key: JBRULES-1863
URL: https://jira.jboss.org/jira/browse/JBRULES-1863
Project: JBoss Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: drools-guvnor
Affects Versions: 5.0.0.M3
Reporter: Len DiMaggio
Assignee: Mark Proctor
Priority: Minor
The search - for all strings - was successful - these log messages were written:
18:05:10,715 INFO [STDOUT] DEBUG 24-11 18:05:10,714 (ServiceImplementation.java:quickFindAsset:1228) Search time: 4
18:05:10,719 ERROR [STDERR] jcr:path=/drools:repository/drools:package_area/defaultPackage/assets/drools
18:05:10,720 ERROR [STDERR] jcr:path=/drools:repository/drools:package_area/myPackage/assets/drools
18:05:10,720 ERROR [STDERR] jcr:path=/drools:repository/drools:package_area/myPackage/assets/model.jar
18:05:10,720 ERROR [STDERR] jcr:path=/drools:repository/drools:package_area/myPackage/assets/myrule
--
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
15 years, 8 months
[JBoss JIRA] Created: (JBRULES-1664) Or with From doesn't work
by Jaroslaw Kijanowski (JIRA)
Or with From doesn't work
-------------------------
Key: JBRULES-1664
URL: http://jira.jboss.com/jira/browse/JBRULES-1664
Project: JBoss Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Reteoo
Affects Versions: 4.0.7, 5.0.0-M1
Reporter: Jaroslaw Kijanowski
Assigned To: Mark Proctor
This affects 4.0.7 and trunk (rev 20869)
As reported in the ML, using OR together with FROM doesn't work, I'm attaching the test and rule file, which should fire:
when
Person( add:address )
Address( zipcode == "99999") from add
and
(
Address( zipcode == "12345") from add
or
Address( zipcode == "54321") from add
)
then
System.out.println("Rule fired");
end
Changing or to and does work
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 8 months