Re: [rules-users] Decision table max rows
Simplistically, split your decision table into smaller ones. To answer your question more fully; the maximum number of rows that can exist in a XLS is (IIRC) 65535. That said; how many can be processed on a given computer, depends on how much RAM has been associated with the JVM heap and how many decision table columns are on a row. With kind regards, Mike On 17 July 2014 04:49, J Rose u...@comcast.net wrote: What is the maximum number of rows you can use in a decision table? I need to use over 12,000 rows but seem to get an out of memory error for even 1,000 rows. I already increased the memory used. What are my options if I need to lookup values for that many rows? -- View this message in context: http://drools.46999.n3.nabble.com/Decision-table-max-rows-tp4030382.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Processing xml with control characters in droolserver
Hi, I am sending xml to initiate rule execution in drools server 5.4. When there is control character in the xml, it is failing with following error, is there any way to overcome this? 16 Jul 2014 00:03:28,852 ERROR [org.apache.camel.processor.DefaultErrorHandler] (http--0.0.0.0-8080-239) Failed delivery for exchangeId: ID-svl-prod-prwf04-juniper-net-51091-1404737660521-0-3260214. Exhausted after delivery attempt: 1 caught: com.thoughtworks.xstream.converters.ConversionException: : Illegal character ((CTRL-CHAR, code 8)) [note: in XML 1.1, it could be included via entity expansion] at [row,col {unknown-source}]: [30,126] : : Illegal character ((CTRL-CHAR, code 8)) [note: in XML 1.1, it could be included via entity expansion] at [row,col {unknown-source}]: [30,126] Debugging information message : : Illegal character ((CTRL-CHAR, code 8)) [note: in XML 1.1, it could be included via entity expansion] at [row,col {unknown-source}]: [30,126] cause-exception : com.thoughtworks.xstream.io.StreamException cause-message : : Illegal character ((CTRL-CHAR, code 8)) [note: in XML 1.1, it could be included via entity expansion] at [row,col {unknown-source}]: [30,126] class : java.lang.String required-type : java.lang.String converter-type : com.thoughtworks.xstream.converters.SingleValueConverterWrapper wrapped-converter : com.thoughtworks.xstream.converters.basic.StringConverter path: /batch-execution/set-global[7]/map/entry[50]/string[2] line number : 2 class[1]: java.util.HashMap converter-type[1] : com.thoughtworks.xstream.converters.collections.MapConverter class[2]: org.drools.command.runtime.SetGlobalCommand converter-type[2] : org.drools.runtime.help.impl.XStreamXML$SetGlobalConverter class[3]: org.drools.command.runtime.BatchExecutionCommandImpl converter-type[3] : com.thoughtworks.xstream.converters.reflection.ReflectionConverter version : null Thanks Regards, Shameer ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] condition altered while unmarshalling a drl to guided rule
Fixed. 6.2.0-SNAPSHOT (master branch) has improved Expression handling. 6.1.0.Final will include the fix for this issue; but other aspects of Expression handling are not as developed as 6.2.0-SNAPSHOT. On 16 July 2014 16:40, Michael Anstis michael.ans...@gmail.com wrote: https://issues.jboss.org/browse/GUVNOR-2109 Working on a fix. On 16 July 2014 14:27, Sumit Dhaniya sumitdhan...@gmail.com wrote: I created a guided rule and when I open it again some conditions which I wrote using the --Text-- option from drop down are altered. It seems the issue is only with unmarshalling because condition remains unaltered in rdrl file until you save it again so everything is fine if you change it every time you make any change to the rule or save it. Below is the scenario to reproduce(use 6.1CR2) :- 1) Made a Maven-ized JAR containing the following classes: package com.demo; import java.util.List; public class Foo { private List myList; public List getMyList() { return myList; } public void setMyList( List myList ) { this.myList = myList; } } public class Bar { private String myString; public String getMyString() { return myString; } public void setMyString( String myString ) { this.myString = myString; } } 2) Uploaded JAR to the workbench's Artifact Repository 3) Added a project dependency on this artifact 4) Added an Import Suggestion for java.util.List 5) Created a new Guided Rule 6) Imported Foo,Bar and java.util.List (Config tab) 7) Created the following rule: package org.mortgages; import java.lang.Number; import java.util.List; import org.anstis.MyListClass; rule r1 dialect mvel when $foo : Foo() Bar : Bar( myString == $foo.myList.get(1)) then end 8) Validate rule :- will be vaidated 9) Save and close rule Now when rule will be opened again this get(1) will change to get moreover while creating rule get(index) method is not specified in dropdown so selected -- Text -- option to create the rule. DRL remains in valid format until overwritten in another save. -- View this message in context: http://drools.46999.n3.nabble.com/condition-altered-while-unmarshalling-a-drl-to-guided-rule-tp4030375.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Activation-group doubt
As far as i understand the activation group fires only one rules for a given group. But does it run once for each fact inserted or only just once. for example i have activation group act1 with 3 rules: rule1,rule2,rule3 and inserted 4 facts . But the rule1 runs only once , i wanted rule1 to run for each of the 4 facts inserted. -- View this message in context: http://drools.46999.n3.nabble.com/Activation-group-doubt-tp4030388.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users