Re: [rules-users] Is it possible to Iteriate over a list of string values ?

2011-03-08 Thread Michael Anstis
The Expert documentation states "The expression used to define the object source is any expression that follows regular MVEL syntax." Therefore "from" should be able to use the MVEL syntax for arrays ["one", "two", "three"] however I've not tried and never seen it used. Normally people use "from" t

Re: [rules-users] Misunderstanding salience?

2011-03-08 Thread Peter Ashford
Thanks for the ideas, David. What I ultimately want to achieve is to have the individual rules independent of each other to the maximal degree to which that is possible. That's why I didn' t want to have isZombie==false in the general rule - I wanted the general case to be unaware of the ex

[rules-users] Is it possible to Iteriate over a list of string values ?

2011-03-08 Thread groovenarula
Hello all, In one of my use cases, I need to insert a variable collections of facts into working memory in order to be able to test for those values later : So I was wondering if there's a way to do something like this when $vals : String() from [ "A 12345", "B 45678", "C 8695" ]

Re: [rules-users] not sure if this is a bug of drools or my bad usage...

2011-03-08 Thread Simon Chen
Hi Wolfgang, First, your rules work... But for the second rule, I replaced the first Reachable() in the when clause to Link(), and the result is still correct. Only if I remove "no-loop true", the issue I had appeared. So, I understand how "no-loop true" in this case helps to make the result cor

Re: [rules-users] Misunderstanding salience?

2011-03-08 Thread David Faulkner
Peter, The EXACT way to accomplish the functionality that you are looking for is "activation-group"; if two rules are in the same activation group, only one of them will fire. Note that the rule with HIGHER salience will fire first; to accomplish what you are looking for you'd have to give the

Re: [rules-users] Misunderstanding salience?

2011-03-08 Thread Peter Ashford
Actually, I think I've figured this one out : in the Zombie case, it's firing both rules and it's just that with the negative salience, the zombie exception rule is the last rule fired, therefore, the last thing written into advice. So... what would be the correct way to do what I'm trying t

Re: [rules-users] Process instance status not completing when using JPA.

2011-03-08 Thread Dan Nathanson
Thanks for the reply, Kris. I figured it might be something like that, but was thrown because one of the test cases in PersistentStatefulSessionTest (testPersistenceWorkItems3) does check for process state COMPLETE. I worked around the issue by adding a ProcessEventListener that implements the af

Re: [rules-users] Process instance status not completing when using JPA.

2011-03-08 Thread Kris Verlaenen
Dan, Once you start using persistence, you should know that the process instance you are retrieving is no longer the internal process instance but a version of the process instance at the moment you requested it. This process instance however is disconnected, meaning that it will not automati

[rules-users] Misunderstanding salience?

2011-03-08 Thread Peter Ashford
Hi There I'm new to drools. I've just set up the Drools-Server and it is (finally!) working and serving my test rule-set. The one thing that's not working as I expect it is the rule ordering via salience. This is my simple test rule set: rule "General brain eating advice" when

Re: [rules-users] Guvnor and drools implementation - questions

2011-03-08 Thread Vincent Legendre
> Yes i created rueles with guided editor and it's working with my > attribute. is there a way to remove "empty", "entrySet", "keySet", > "clone",... herited from Map. So i would have only the attribute i > have defined? Don't make the POJO extends Map, but containing a map. > > i have always u

Re: [rules-users] work definition conf file - parameter mapping

2011-03-08 Thread nfox241
Nevermind. I get it now :) -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/work-definition-conf-file-parameter-mapping-tp2652643p2652875.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rule

[rules-users] work definition conf file - parameter mapping

2011-03-08 Thread nfox241
I am creating a custom work item and wanted to set the parameter mapping and result mapping in the conf file. Is that possible? What about adding an onEntry-script tag in the definition? thanks, Nick -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/work-defini

Re: [rules-users] Best approach for handling parallel requests for a stateful rules session

2011-03-08 Thread Greg Barton
They submit the commands to an execution queue, and they're executed in the order received in a thread safe manner. And note there's an asyncFireAllRules() method, so you can time when rules fire. As for whether objects are fed into working memory while rules are firing, I'm not sure, but tha

Re: [rules-users] Drools Logging

2011-03-08 Thread smileychappy
Thanks! I could get the facts by adding a WorkingMemoryEventListener but I'm more interested in generating a XML file similar to the one generated by KnowledgeLoggerFactory. Any idea if that is possible by passing a Logger object instead of a file name? -- View this message in context: http://dr

Re: [rules-users] Best approach for handling parallel requests for a stateful rules session

2011-03-08 Thread jkrupka
Took a look... thanks. I'm not sure that they will help me though - do the async methods actually look to see if fireAllRules is already running somewhere else and synchronize the calls? Or do they just wrap a Callable around it so that if your rules take a long time to run you can do something el

Re: [rules-users] Best approach for handling parallel requests for a stateful rules session

2011-03-08 Thread Greg Barton
Take a look at the org.drools.StatefulSession.async*() methods. I've used them in a multithreaded context before. --- On Tue, 3/8/11, jkrupka wrote: > From: jkrupka > Subject: [rules-users] Best approach for handling parallel requests for a > stateful rules session > To: rules-users@lists.

Re: [rules-users] Process instance status not completing when using JPA.

2011-03-08 Thread Dan Nathanson
More info... This behavior is reproducible in the Drools JPA test cases. In org.drools.persistence.session.PersistentStatefulSessionTest.testPersistenceState() and testPersistenceRuleSet(), if you add a breakpoint before loading the processInstance the last time (when it is null because the proce

[rules-users] Best approach for handling parallel requests for a stateful rules session

2011-03-08 Thread jkrupka
We've been over multiple ways of handling multiple parallel requests for a stateful rules session and I want to make sure the approach we have settled on makes sense. We will be getting multiple requests at a time to run some score calculation rules for various products. In the past we used state

Re: [rules-users] Guvnor and drools implementation - questions

2011-03-08 Thread ioda100
it's working for pkg, bad library On Tue, Mar 8, 2011 at 4:30 PM, Eddy Hautot wrote: > Hi Vincent, > > Thanks for precisions. > > Didn't knew only set/get are used. Get to be careful when i will have 100+ > attributes :-) > > Yes i created rueles with guided editor and it's working with my attr

Re: [rules-users] Guvnor and drools implementation - questions

2011-03-08 Thread ioda100
Hi Vincent, Thanks for precisions. Didn't knew only set/get are used. Get to be careful when i will have 100+ attributes :-) Yes i created rueles with guided editor and it's working with my attribute. is there a way to remove "empty", "entrySet", "keySet", "clone",... herited from Map. So i wou

Re: [rules-users] (no subject)

2011-03-08 Thread Eddy Hautot
i said that because i had the exact same problem these last 2 days. had to do a right clic and save link as. Now it's reworking with left clic/continue download :-) 2011/3/8 Wolfgang Laun > A left click is OK, too; then "continue download". > -W > > 2011/3/8 Eddy Hautot > > right clic on it an

Re: [rules-users] (no subject)

2011-03-08 Thread Wolfgang Laun
A left click is OK, too; then "continue download". -W 2011/3/8 Eddy Hautot > right clic on it and save link as? > > > > 2011/3/8 Billy Buzzard > >> I am new to drools and I would like to download the binaries and try >> some of the examples. However, when I click on the download like of the >

Re: [rules-users] Can not download Drools binaries

2011-03-08 Thread Geoffrey De Smet
Just got a mail saying that it's resolved and I 've verified it: http://www.jboss.org/drools/downloads Op 07-03-11 16:01, Wolfgang Laun schreef: > It's being looked into and hopefully resolved soon: > https://issues.jboss.org/browse/ORG-990 > -W > > > 2011/3/7 Faisal Shafique

Re: [rules-users] (no subject)

2011-03-08 Thread Eddy Hautot
right clic on it and save link as? 2011/3/8 Billy Buzzard > I am new to drools and I would like to download the binaries and try some > of the examples. However, when I click on the download like of the Drools > binaries the screen goes dim and nothing happens. Would someone please > explain

Re: [rules-users] (no subject)

2011-03-08 Thread Wolfgang Laun
Please retry - I think the update happened 10mins ago. Working for me now. -W 2011/3/8 Billy Buzzard > I am new to drools and I would like to download the binaries and try some > of the examples. However, when I click on the download like of the Drools > binaries the screen goes dim and nothin

[rules-users] (no subject)

2011-03-08 Thread Billy Buzzard
I am new to drools and I would like to download the binaries and try some of the examples. However, when I click on the download like of the Drools binaries the screen goes dim and nothing happens. Would someone please explain to me what is going on and what I should do to get the binaries? I

Re: [rules-users] Object insertion on runtime

2011-03-08 Thread Michael Anstis
Hi Frank, It's good to have feedback :) Closing the loop will help others who Google for similar issues at some future date. At least you no longer have to stare at your code getting bored! With kind regards, Mike On 8 March 2011 11:31, FrankVhh wrote: > I know etiquette stipulates to avoid

Re: [rules-users] Object insertion on runtime

2011-03-08 Thread FrankVhh
I know etiquette stipulates to avoid small talk, but since there is no "resolved" button, I think this can be useful. You suspected rightly, manstis, removing lock-on-active and replacing it with extra constraints in the LHS indeed solved the problem. Thanks for the quick (and correct) response :

Re: [rules-users] Object insertion on runtime

2011-03-08 Thread Michael Anstis
I suspect your use of lock-on-active. Expert's documentation states: "Whenever ... an agenda-group receives the focus, any rule within that group that has lock-on-active set to true will not be activated any more; irrespective of the origin of the update, the activation of a matching rule is disca

[rules-users] Object insertion on runtime

2011-03-08 Thread FrankVhh
Hi all, Since yesterday, I am having a problem with reading inserted objects from memory. I don't know why it does not go as planned, because it should be quite straightforward. It is getting boring to stare at the code, so maybe one of you can detect an error. There are 2 kinds of rules. One kin