[rules-users] Drools java program on Apple Ipad?

2011-03-18 Thread Jared Davis
I was just asked to investigate porting a drools based program to an Ipad. Any ideas? Regards, Jared -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-java-program-on-Apple-Ipad-tp2699958p2699958.html Sent from the Drools - User mailing list archive at

Re: [rules-users] Memory Consumption with 5000 Rules

2010-12-09 Thread Jared Davis
su.co == "P", c.co == "C") then Bcf fact = new Bcf (); fact.setC( "123"); insert( fact); end rule "1.matches" when $c_0 : CFRO( fi.co matches "(1|2|3|4|5)", su.co == "P", c.co == "C") then Bcf fact = new Bcf (); fact.setC

Re: [rules-users] Memory usage tied to rule report?

2010-10-07 Thread Jared Davis
Edson, I'm using yEd for the graph viewer and tgf as the format for the graph. Here is the mvel template to produce the tgf file. I left the topten name the same for now. Did I miss any nodes or edges? @declare{"topten"} @code{ buffer = new StringBuilder(); for (ni : session.nodeInfos) {

Re: [rules-users] Memory usage tied to rule report?

2010-10-05 Thread Jared Davis
Edson, Thanks for the report. The top ten on the left was just what I needed to track down the badly written rules. The 385 rules generate 823 documents using 2 facts. My peak heap usage is now only 250mb. Before it would fail with a 1.2GB heap. Do you think this report is a good starting

[rules-users] Memory usage tied to rule report?

2010-09-07 Thread Jared Davis
Tuple objects active. I assume I have a bad rule producing a large cross product. How do I find it? Is there an audit tool that will let me tie ReteTuple back to a specific rule? Regards, Jared Davis -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Memory-

Re: [rules-users] matches doesn't catch rule.

2010-06-24 Thread Jared Davis
try m:myObject(variable matches "(WORD 1|WORD 2)") -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/matches-doesn-t-catch-rule-tp919334p919402.html Sent from the Drools - User mailing list archive at Nabble.com. __

Re: [rules-users] rule fires while condition is false

2010-05-06 Thread Jared Davis
Shai wrote: > > --snip-- > I then do some more things and insert the value of NetRepayment value to > the EnrichedApplication, I re insert it to the workspace and then I run > the rules. > It seems that drools did not re evaluate the EnrichedApplication again > and thus the value of NetRepaye

Re: [rules-users] rule fires while condition is false

2010-05-06 Thread Jared Davis
Could the rules be changing the values outside of a modify block? Please try this (untested) rule as a test. It binds the value on the left hand side. rule "netRepaymentWithLiabilities1TEST" agenda-group "autoUnderwriting" when ea: EnrichedApplicationVersionTO(amount :

Re: [rules-users] evaluation of null not consistent

2010-04-16 Thread Jared Davis
I don't follow this line in the rule: instance_1_Track : Track($var_1_aou : aouAsFloat != null && $var_3_platform_ptr : platform != null ) Should it be the following? instance_1_Track : Track($var_1_aou : aouAsFloat != null , $var_3_platform_ptr : platform != null ) -- View this message in c

Re: [rules-users] User and/or Code problem with insert/retract and salience

2010-03-30 Thread Jared Davis
I've narrowed it down to a smaller example. The order of insertion seems to trump the rule salience. The following rule inserts 4 objects. Inserted as A4,A3,A2,A1 the rules sequence is unexpected. Inserted A1,A3,A4,A2 they fire as expected. rule "setup.two" when then > // generates out of sal

[rules-users] User and/or Code problem with insert/retract and salience

2010-03-30 Thread Jared Davis
We have 5 rules that are firing out of salience order for a particular set of 4 objects. The rules have a branch on the RHS which sometimes retracts the A object. There are reasons why the branch is not in the LHS not shown in this sample. The 5 rules are like the following. The salience values

Re: [rules-users] Need Syntax help for a string match

2009-11-17 Thread Jared Davis
Here are two ways to write the regular expression. m : Customer( age matches "(18|21|33|28|40|41)") m : Customer( age matches "(18|2[18]|33|4[01])") Did you try m : Customer( age in ("18","21","33","28","40","41")) I don't know which solution is faster. I think that would be

Re: [rules-users] Execution time for drools5.0 against la rge data size

2009-11-04 Thread Jared Davis
What happens if you move line "ksession.fireAllRules();" to after the loop? ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Performance is too bad when using matches predicate

2009-06-02 Thread Jared Davis
starsavari wrote: > > We are considering drool rule engine for data profiling (run the data > through the various regex pattern for data analysis) on a large amount of > data. We have rules to determine the SSN, Phone number, Driver license > number, tracking number etc. Most of our rules are re

[rules-users] Re: Help with MatchesEvaluatorsDefinition that caches compiled regular expression patterns

2009-05-05 Thread Jared Davis
guration, with a given default value. This would avoid memory leaks.    Wanna try providing a patch for that?   Thanks,   Edson 2009/5/4 Jared Davis davisprogramming.com>I need some help placing a cache of compiled regular expressions using the > MatchesEvaluatorsDefinition as a startin

[rules-users] Help with MatchesEvaluatorsDefinition that caches compiled regular expression patterns

2009-05-04 Thread Jared Davis
I need some help placing a cache of compiled regular expressions using the MatchesEvaluatorsDefinition as a starting point. Just for a test I placed a static map in the class: static Map uglyHack = new HashMap(); Then in each of the evaluators I have different versions of: Pattern p =

[rules-users] Re: NullPointerException in SessionConfiguration

2009-03-27 Thread Jared Davis
Jared Davis davisprogramming.com> writes: > > Any advice on this NPE? (March 20th snapshot of 5.00) > > It occurs when a second thread attempts to create a session using a static > KnowledgeBase. > > java.lang.N

[rules-users] NullPointerException in SessionConfiguration

2009-03-27 Thread Jared Davis
Any advice on this NPE? (March 20th snapshot of 5.00) It occurs when a second thread attempts to create a session using a static KnowledgeBase. java.lang.NullPointerException at org.drools.SessionConfiguration.initProcessInstanceManagerFactory (SessionConfiguration.java:260) at org.drools.Sessio

[rules-users] How to tell if rule is using eval internally

2009-03-26 Thread Jared Davis
How do you tell if a rule is using eval() without access to Eclipse? The documentation states certain nested accessors will be re-written into eval statements. Regards, ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.or

[rules-users] Compiles in 4.07 not in 5.0 Snapshot (3/20)

2009-03-23 Thread Jared Davis
Hi, This rule (not the best style) compiles fine in 4.07. It gives this error message using 5.0 Snapshot. I changed some of the text to be generic so I could post the code. Rule Compilation error : [Rule name='A.B.inlet.mxb.first.link.20090216.01'] com/zz/yyy/awl/Rule_A_B_inlet_mxb_fi

[rules-users] Re: DSL question: how to apply same conversion multiple times?

2008-11-11 Thread Jared Davis
d > the dsl would follow this cheese example from the drools docs (I grabbed it from 4.03) [when]There is a Cheese with=Cheese() [when]- age is less than {age}=age<{age} [when]- type is '{type}'=type=='{type}' [when]- country equal to '{country}'=country=='{country}' Search the doc for the section "Adding constraints to facts" for more details. HTH, Jared Davis ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] Re: Best way to detect duplicate rule names?

2007-11-27 Thread Jared Davis
Mark Proctor codehaus.org> writes: > > At the moment no, we could expose a handler/even that allows the user to > add additional behaviour. For now your best way of doing this is to > augment the PackageBuilder with AOP. Mark, Thank you for your help with my questions. We have implemented t

[rules-users] Best way to detect duplicate rule names?

2007-11-20 Thread Jared Davis
not detect a duplicate rule name in the same file - that would be even better. Regards, Jared Davis ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] Is InternalRuleBase safe to use?

2007-11-14 Thread Jared Davis
Hi, re:Drools 4.0.3 I want/need to use ConsequenceExceptionHandler for exception handling. I'd like to be able to get the ConsequenceExceptionHandler from a StatefulSession. The only way I see to get the handler relies on InternalRuleBase. The JavaDoc at http://downloads.jboss.com/drools/do