Re: [rules-users] Is it possible to access created Object inside RHS???

2010-05-18 Thread Kuttiraja
Hi Thomas, Thanks a lot!! Your Pointer helps me at the correct time!! Thanks Kutti -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Is-it-possible-to-access-created-Object-inside-RHS-tp823356p825613.html Sent from the Drools - User mailing list archive at

Re: [rules-users] error while executing business rules

2010-05-18 Thread Puneet duggal
@ friends, any solution for my problem ?? org.drools.RuntimeDroolsException: unable to determine ValueType for Class [class com.fpl.dsm.busrules.parameters.Para_568] at org.drools.base.ValueType.determineValueType(ValueType.java:222) at

Re: [rules-users] error while executing business rules

2010-05-18 Thread Wolfgang Laun
What kind of class is com.fpl.dsm.busrules.parameters.Para_568 when used as a fact? What do you mean by saying my getter setter class? And do show examples (a) where that is used, as a fact in a rule, and (b) as a field in a pattern constraint. -W 2010/5/18 Puneet duggal duggalpu...@gmail.com

Re: [rules-users] error while executing business rules

2010-05-18 Thread Swindells, Thomas
You've got a problem. Probably with what your rules are trying to do, possibly with the design of your fact class. Use a process of elimination to work out which rule is the problem and construct the simplest example you can which causes this problem. Then try working out if there is anything in

Re: [rules-users] removeKnowledgePackage Call Hangs!!

2010-05-18 Thread Swindells, Thomas
Why are you trying to remove a knowledge package while you are in the middle of running rules? I'm not a drools developer and don't know whether it has been designed to allow this area of code to be re-entrant but to me it seems like you are trying to pull the rug (or at least part of it) out

Re: [rules-users] Drools Execution Query

2010-05-18 Thread djb
what i've found is that you should always just make things as easy as possible for the rule engine. the RETE graph cannot put 'evaluated' conditions into its graph. it can't make a graph link because the method could evaluate to anything, and therefore there is no 'cacheing', though i doubt

[rules-users] Using Drools as a glorified Hashmap

2010-05-18 Thread djb
Hi Drools users, I've got a situation where I've got a list of Drug codes which can only be used for certain prescription codes. The traditional method for implementing this is to simply pre-load the values in a static Hashmap. Then if get() returns null, it is not a valid combination. O(1),

[rules-users] Entry-Points can cause NullPointerExceptionand/or no rule firing

2010-05-18 Thread Makewise - Vitor Rui Mendonça
Hi! Anyone with some other thought about this issue? I'm running out of ideas... Best regards, Vítor Mendonça Moreira Analista / Programador Direcção de Investigação e Desenvolvimento Rua Dr. Francisco Sá Carneiro, nº. 4 r/c esq. 2500 - 206 - Caldas da Rainha Tel: (+351) 262 832

Re: [rules-users] Time Taken To Load Rule Resource

2010-05-18 Thread Adeyinka Timi
Hi, Thanks for the help! I have tried implemented your idea by creating a method that compiles the rules resources (DRL and RF files). But I keep getting a java.lang.RuntimeException: java.io.EOFException error when I call

Re: [rules-users] Time Taken To Load Rule Resource

2010-05-18 Thread Adeyinka Timi
May I add that the .pkg file was created successfully. Adeyinka Timi | Technical Supprt | Nathean Technologies Ltd Registered Office 3 Lyncon Court, IDA Science Technology Park, Snugborough Road, Blanchardstown, Dublin 15, Ireland T +353 1 685 3001 | VOIP 076 615 1117 | E

Re: [rules-users] Using Drools as a glorified Hashmap

2010-05-18 Thread Wolfgang Laun
If I understand the chemistry correctly, the relation mayUse( Drug, Presc ) - Boolena must be implemented. Then, the Facts are pairs of MayUseDrug, Presc. To see whether it's valid, you insert a Fact IsValid containing just the two. If a rule can match the IsValid to a MayUse, then it's valid

Re: [rules-users] How to find ALL active sub/processes for a root process instance?

2010-05-18 Thread Mauricio Salatino
you can create custom audit logs and then query that.. that can be in a separate database and in a separate machine. Sorry to not review your problem in depth. On Mon, May 17, 2010 at 11:25 PM, tolitius webaka...@gmail.com wrote: had to go with custom solution... g audit logs are too

Re: [rules-users] How to find ALL active sub/processes for a root process instance?

2010-05-18 Thread Mauricio Salatino
Can I ask what's the goal of finding all the active sub processes of a main process? Because for my point of view in most scenarios if you find the active work items you can create a list of the things that you need to finish. Each work item can contain a tag (ID, Name) of the process that it

Re: [rules-users] Using Drools as a glorified Hashmap

2010-05-18 Thread John Peterson
How many match rules do you have? You could always set a single invalid rule with a low salience (at least lower than your match rules) that is always true and sets the flag that it is invalid. Then put all the rules into the same activation-group so that only one can fire. If the invalid flag

[rules-users] Drools Rule Engine

2010-05-18 Thread ramram
Hi All, I am evaluating the rule engine of Drools and I have some questions: 1- Is there a way to make the rule dynamic and by that i mean that the parameter it takes can vary between 1 instance and another? 2- is there a way to set the parameter in java and pass the parameter set to the

Re: [rules-users] Debug as within Eclipse

2010-05-18 Thread UPBrandon
I'm also using the standard Galileo install and cannot debug. -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Debug-as-within-Eclipse-tp66651p826559.html Sent from the Drools - User mailing list archive at Nabble.com.

[rules-users] Wrong flow script task executes when multiple flows are loaded

2010-05-18 Thread H.C.
I am observing some strange behavior in drools 5.0.1 which behaved correctly in 5.1.0-M1. I have two different ruleflows defined, each with a script task at the beginning fetching different types of data from DB. It seems that when both flows are loaded by drools and I choose to execute the

Re: [rules-users] Potential Deadlock using fireUntilHalt and signalEvent

2010-05-18 Thread Barry Kaplan
Thanks for tracking that down. I've had to stop using fireUntilHalt due to deadlocks but did not get the chance to determine the problem. -- View this message in context:

Re: [rules-users] Potential Deadlock using fireUntilHalt and signalEvent

2010-05-18 Thread Paul R.
This looks like an ago I logged a few months ago: https://jira.jboss.org/jira/browse/JBRULES-2375 Cheers, Paul On Tue, May 18, 2010 at 6:09 PM, Barry Kaplan grou...@memelet.com wrote: Thanks for tracking that down. I've had to stop using fireUntilHalt due to deadlocks but did not get the

[rules-users] Error when Loading New KnowledgeBuilder

2010-05-18 Thread Ken Archer
I just built installed the Drools Eclipse plug-in on a new development machine, and now whenever I load a new KnowledgeBuilder (KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();), the source of PackageBuilderConfiguration.class loads in a new tab with the following

Re: [rules-users] removeKnowledgePackage Call Hangs!!

2010-05-18 Thread malkhafaji
Thanks for the post Thomas. Actually, I wanted to load and unload KBs WHILE I am running the rules. That was not a problem at all, and it is not a problem with many other KBs. I was inspired by your post (so thank you very much) and started looking to maybe externalizing the removal from the