Re: [rules-users] Planning Under Uncertainty

2011-09-23 Thread Chris Spencer
On Fri, Sep 23, 2011 at 6:39 PM, Davide Sottara wrote: > I'm adding support native for uncertainty to drools: the code is in a > sub-project repository called "drools-chance". I'll probably commit an > update next week, supporting the declaration of beans with distributions as > fields. That's gr

Re: [rules-users] Planning Under Uncertainty

2011-09-23 Thread Davide Sottara
I'm adding support native for uncertainty to drools: the code is in a sub-project repository called "drools-chance". I'll probably commit an update next week, supporting the declaration of beans with distributions as fields. Full support in the rules, instead, will take some more time. I would lik

Re: [rules-users] Changeset does not monitor folder correctly

2011-09-23 Thread lhorton
I wrote a small test for loading your drl files with different change sets, and both methods worked fine and the rules executed the same way for both. I don't have time today to do a more extensive test. my change sets are: http://drools.org/drools-5.0/change-set"; xmlns

[rules-users] Planning Under Uncertainty

2011-09-23 Thread Chris Spencer
Hi, Does Drools Planner support uncertainty / probabilistic planning? I've Googled, and only found a single reference, in the form of a research paper, "Reasoning with Uncertainty in Drools", which doesn't even appear to be publicly downloadable. If not, how difficult would it be to add? Regards

Re: [rules-users] Ant Build of PKG with Declared Types

2011-09-23 Thread Ansgar Konermann
Am 23.09.2011 20:03 schrieb "TroyL" : > > Thank you for the reply. I have run a number of much simpler applications in > several environments, below are my results: > > My Ant Script remains unchanged. Next things to try could be: - increase verbosity of your ant compile so you can see what is ac

Re: [rules-users] Expiry of events not occurring for sliding window

2011-09-23 Thread cfuser
Thanks for the quick turnaround. Hmm...ok, I added a sliding window to the CE you called (5s), but still, no expiry (and I removed the log instance to make sure there wasn't some oddness there). So, it seems there is there some implicit expiration that is greater than my 10s that I declared--it's

Re: [rules-users] Ant Build of PKG with Declared Types

2011-09-23 Thread TroyL
Thank you for the reply. I have run a number of much simpler applications in several environments, below are my results: My Ant Script remains unchanged. *My Test Application*: KnowledgeBuilder builder = KnowledgeBuilderFactory.newKnowledgeBuilder(); builder.add(ResourceFactory

Re: [rules-users] Fusion and open-ended intervals?

2011-09-23 Thread pereirazc
Hi Edson, I'm a computer science undergraduate, I've been studying rule-based situation detection during my final year project and more recently get in use with the Drools platform. My initial goal was to develop a situation detection tool using drools. Providing support to situation definition (

Re: [rules-users] Ant Build of PKG with Declared Types

2011-09-23 Thread Ansgar Konermann
Am 16.09.2011 16:15 schrieb "TroyL" : > > I am attempting to build a PKG utilizing an Ant Script. My DRL includes two > declared types. When the declared types have only one field the PKG will > compile but when the declared types have more than one field I get an error > stating that a class of

Re: [rules-users] Expiry of events not occurring for sliding window

2011-09-23 Thread Mauricio Salatino
Looking pretty quickly to the rules it looks like: $mih:InstanceHealth($id:id, $luid:name, $stat:stat ) from entry-point "stat-stream" Will match for every InstanceHealth without any time restriction, causing that your events will be never evicted . Cheers On Fri, Sep 23, 2011 at 1

[rules-users] Expiry of events not occurring for sliding window

2011-09-23 Thread cfuser
I'll preface this by saying this may not be the correct way to do this, so suggestions welcome... For this example, the name can be something like 'collector1', 'collector2'. For each collector, there are normalized stats, like 'CPU', 'IO', etc. // Imports and other stuff dec

Re: [rules-users] CEP sliding window in the past

2011-09-23 Thread cfuser
I can (belatedly) confirm that this works for this instance. We want to do averages and other accumulations in the future, so it won't be as applicable then. I looked at the source and it shouldn't be that difficult to implement that offset, so when that time comes when we need those different

Re: [rules-users] Help with URL resource caching

2011-09-23 Thread benji2212
Ah, I found my problem. There was an issue with the builds, and my latest changes weren't being applied to the environment I was testing in. I've got it working with the code I posted above. Thanks. -- View this message in context: http://drools.46999.n3.nabble.com/Help-with-URL-resource-cachi

Re: [rules-users] Issue using global 'variable' with Drools 5.2 in DRL

2011-09-23 Thread Slorg1
Hi, Thank you guys, it now works (at least that part) for me! -- View this message in context: http://drools.46999.n3.nabble.com/Issue-using-global-variable-with-Drools-5-2-in-DRL-tp3360343p3362157.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___

Re: [rules-users] Issue using global 'variable' with Drools 5.2 in DRL

2011-09-23 Thread Wolfgang Laun
Please follow Thomas' advice. That now.time worked in 5.1.1 was actually an "accident", as it contradicted the specs. I'm not sure whether this behaviour is going to be reinstated. If you do need to do the comparison on long (milliseconds since the epoch) values you'd have to do subObject.d

[rules-users] Help with URL resource caching

2011-09-23 Thread benji2212
I'm using KnowledgeAgent to poll regularly for three DRL files hosted on a web server. If the web server goes down for any reason or one of the DRL files becomes unavailable, the change scanner and knowledge agent unsubscribe from the resource(s) that were unavailable. After reading some topics

Re: [rules-users] Ant Build of PKG with Declared Types

2011-09-23 Thread TroyL
Update on my original post. I am able to successfully build my PKG file using the ANT script when using all versions of Drools (ie 5.0.1, 5.1.1, 5.2.0.M2 etc). I only get the above mentioned error when I am using 5.2.0.Final. This error has been reproduced on two different machines and in Eclips

Re: [rules-users] Issue using global 'variable' with Drools 5.2 in DRL

2011-09-23 Thread Swindells, Thomas
If it a java.util.Date then drools supports comparing them out of the box so you can just do subObjcet.dateField >= now. Just make sure you don't mix up instances of java.util.Date and java.sql.Timestamp (eg if you have jpa code fetching object from the db) as sun in their wisdom made it that y

Re: [rules-users] BPMN editor not working

2011-09-23 Thread Jamie
For me, the key was at the very end of my last post - the flow needs to have an ID. If it doesn't, the editor chokes when you re-open the file. -- View this message in context: http://drools.46999.n3.nabble.com/BPMN-editor-not-working-tp3182776p3361784.html Sent from the Drools: User forum maili

[rules-users] Facing an inconsistent error executing rules during runtime

2011-09-23 Thread S_Kumar_P
Hi, I am getting an error at inconsistent intervals while executing one scheduled task, which uses rules, in Websphere AS. Below is the error trace, [9/22/11 8:57:59:316 CDT] 004d SystemErr R Caused by: java.lang.ClassNotFoundException: autoclassification.Rule_10___10_Auto_Classificati

Re: [rules-users] Issue using global 'variable' with Drools 5.2 in DRL

2011-09-23 Thread Slorg1
Hi Wolfgang, Thank you for answering, here is the rule rewritten but closer to reality: // package // imports global java.util.Date now; rule "MyRule" salience 5 when // Prevent rule activation for other offer types. MyObject(type == Type.TYPE_SOUGHT) $candidate

Re: [rules-users] Exception in Banking Tutorial in Drools expert guide...

2011-09-23 Thread Manohar Kokkula
Ok got it, Thanks alot. Regards Manohar Kokkula Mailto: manohar.kokk...@tcs.com From: Tan Hui Onn To: Rules Users List Date: 09/23/2011 04:39 PM Subject: Re: [rules-users] Exception in Banking Tutorial in Drools expert guide... Sent by: rules-users-boun...@lists.jboss.org Obviously, it

Re: [rules-users] Exception in Banking Tutorial in Drools expert guide...

2011-09-23 Thread Tan Hui Onn
Obviously, it should be for (int i=0; i < facts.length;i++), right? 2011/9/23 Manohar Kokkula > Hi, > > I am trying to execute Banking Tutorial Example given in Drools expert(* > http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-expert/html_single/index.html#d0e7769 > *

[rules-users] Exception in Banking Tutorial in Drools expert guide...

2011-09-23 Thread Manohar Kokkula
Hi, I am trying to execute Banking Tutorial Example given in Drools expert( http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-expert/html_single/index.html#d0e7769 ),but im getting following error, Exception in thread "main" java.lang.ClassCastException: java.util.ArrayList cannot

[rules-users] persisted stateful sessions and knowledge base changes

2011-09-23 Thread Jordi Alvarez
Hello, I am working for an organization for which we have adopted Drools flow as the BPM solution. We are making use also of Drools Expert, which results in a nice combination. We have stateful sessions persisted in a database in order to record the state of long-time running processes (which are