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
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
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) {
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
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-
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.
__
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
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 :
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
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
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
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
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
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
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
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 =
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
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
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
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
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
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
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
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
24 matches
Mail list logo