[rules-users] Weblogic rules to Drools rules.

Edson Tirelli ed.tirelli at gmail.com
Fri Jan 29 14:02:21 EST 2010


   You mean there are 40-50 conditions like that in a single rule? It is not
that you can't do, but how do you maintain such a thing? Sounds to me that
you need to step back and re-evaluate the way you are modeling your rules.
It is hard to point you to any direction based solely on the information in
this e-mail. If you have an example maybe? or if you are a Red Hat
subscriber, you could contact an SA to help you on this...

    Edson

2010/1/27 kashif10 <kash452 at yahoo.com>

>
> Thanks Edson,
>
> I Went throught the documentation.
> I cerate  a small rule & its laod & evaluate ok.
> But when I try to load a some bit large rule it stuks & thorws following
> exception:
>
> which is more than the configured time (StuckThreadMaxTime) of "600"
> seconds. Stack trace:
>        org.mvel2.asm.ClassReader.<init>(ClassReader.java:146)
>        org.mvel2.asm.ClassReader.<init>(ClassReader.java:128)
>
>
> d1.rule.Rule_0b48e126250100000080cb1e0dd40f6f_0Eval66Invoker.getMethodBytecode(Rule_0b48e126250100000080cb1e0dd40f6f_0Eval66Invoker.java:52)
>
>
> d1.rule.Rule_0b48e126250100000080cb1e0dd40f6f_0Eval83Invoker.equals(Rule_0b48e126250100000080cb1e0dd40f6f_0Eval83Invoker.java:73)
>        org.drools.rule.EvalCondition.equals(EvalCondition.java:169)
>
> org.drools.reteoo.EvalConditionNode.equals(EvalConditionNode.java:231)
>
>
> org.drools.reteoo.CompositeLeftTupleSinkAdapter.getMatchingNode(CompositeLeftTupleSinkAdapter.java:102)
>        org.drools.reteoo.builder.BuildUtils.attachNode(BuildUtils.java:128)
>        org.drools.reteoo.builder.EvalBuilder.build(EvalBuilder.java:42)
>
>
> org.drools.reteoo.builder.GroupElementBuilder$AndBuilder.build(GroupElementBuilder.java:126)
>
>
> org.drools.reteoo.builder.GroupElementBuilder.build(GroupElementBuilder.java:73)
>
>
> org.drools.reteoo.builder.ReteooRuleBuilder.addSubRule(ReteooRuleBuilder.java:153)
>
>
> org.drools.reteoo.builder.ReteooRuleBuilder.addRule(ReteooRuleBuilder.java:126)
>        org.drools.reteoo.ReteooBuilder.addRule(ReteooBuilder.java:117)
>        org.drools.reteoo.ReteooRuleBase.addRule(ReteooRuleBase.java:362)
>
> org.drools.common.AbstractRuleBase.addRule(AbstractRuleBase.java:618)
>
> org.drools.common.AbstractRuleBase.addPackages(AbstractRuleBase.java:500)
>
> org.drools.reteoo.ReteooRuleBase.addPackages(ReteooRuleBase.java:379)
>
>
> org.drools.impl.KnowledgeBaseImpl.addKnowledgePackages(KnowledgeBaseImpl.java:121)
>
>
>
>
>
> My questions are:
> i) How can I increase the time.
> ii) Currently I am using some thng as follows in our drl file:
>
> when
>        #conditions
>
>                eval(cdaUtil.compareObservation("Blood Glucose", "82947",
> "2.16.840.1.113883.6.12", "<93312000000", "", "", "", "",
> "").equals("false")  )
>
>                                        and
>
>                        eval(cdaUtil.compareDiagnosis("Coronary Artery
> Disease", "414.8",
> "2.16.840.1.113883.6.2", "").equals("true")  )
>
> :
> :
> :
> more conditions as above. around 40 -50 with OR / AND .
>
> Actualy we have a class which have methods such as (compareObservation,
> compareDiagnosis etc) to evaluate those conditions, We were using this
> methodology in Weblogic rule xml too.
> We don't have a class with attributes to set & evluate.  So is the above
> logic I ma using is ok or could you suggest some other drl way to evaluate
> such rules.
>
> Thanks
>
>
> --
> View this message in context:
> http://n3.nabble.com/Weblogic-rules-to-Drools-rules-tp126265p140878.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



-- 
 Edson Tirelli
 JBoss Drools Core Development
 JBoss by Red Hat @ www.jboss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100129/df3c8346/attachment.html 


More information about the rules-users mailing list