Re: [rules-users] [Drools Interest] Dynamic rule loading from DB

2011-03-24 Thread Michael Anstis
The easiest suggestion would be to store DRL in your database ;) These is a (dieing) BRL XML format but I believe its use is discouraged (as it's essentially an XStream output of a object model). You could also look at writing a persistence layer over FactModel which is the foregoing object model

Re: [rules-users] accumulate min over java.util.Date

2011-03-24 Thread Greg Barton
Well, if it can work that way it should. I'd say open a JIRA and request that feature. It works with the "principle of least confusion." :) --- On Thu, 3/24/11, jkrupka wrote: > From: jkrupka > Subject: Re: [rules-users] accumulate min over java.util.Date > To: rules-users@lists.jboss.org >

[rules-users] [Drools Interest] Dynamic rule loading from DB

2011-03-24 Thread bilasini sahoo
Hi All, I am new to this Drool rule ingine use. Normal drl is working for me. But mu requirement is i need to configure all the rules in Data base and from there i need to inject to the Rule engine.This is beacuse Rules can be configured any point of time. Please let me know if is there any spe

Re: [rules-users] accumulate min over java.util.Date

2011-03-24 Thread jkrupka
Yea the docs weren't really clear about it, so I just thought it would work for anything that implemented Comparable =) Yep, used the long from getTime() - not the prettiest way of doing it, but it works great. Thanks! -- View this message in context: http://drools-java-rules-engine.46999.n3.na

[rules-users] execute Rules selectively

2011-03-24 Thread Benson Fung
Hi, I have setup about 10 rules in the rulebase. Can you tell me how I can execute more than one specific rule at the same time? Please help Thanks Benson ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listin

Re: [rules-users] combining fact model and processes

2011-03-24 Thread Mauricio Salatino
yes I think that it's perfectly possible.. As long as you load first the drl file that include the definitions and then the processes that uses that data types.. it should work. Let us know if you find any problem around that.. Greetings. 2011/3/24 Jordi Alvarez > Hello, we are starting a projec

[rules-users] combining fact model and processes

2011-03-24 Thread Jordi Alvarez
Hello, we are starting a project using Drools and we are interested in the conbination of fact models defined in drl files and processes. We have been looking for documentation regarding this issue, but we have seen only examples of combining drl-defined types from within rules. We are interested

[rules-users] Drools Server, WSDL

2011-03-24 Thread Peter Ashford
Hey All Can anyone please point me to documentation explaining how to get a WSDL with a service endpoint generated for the Drools server? Cheers! Peter ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman

Re: [rules-users] accumulate min over java.util.Date

2011-03-24 Thread Michael Anstis
As Greg eludes to the default "min" accumulate function expects (java.lang.)Numbers. If you require one to handle dates you can write your own custom Accumulate Function. On 24 March 2011 17:50, Greg Barton wrote: > That's because a java.util.Date is not a java.lang.Number. :) You can get > th

Re: [rules-users] accumulate min over java.util.Date

2011-03-24 Thread Greg Barton
That's because a java.util.Date is not a java.lang.Number. :) You can get the long value behind the Date by calling Date.getTime(), though. Try that. --- On Thu, 3/24/11, jkrupka wrote: > From: jkrupka > Subject: [rules-users] accumulate min over java.util.Date > To: rules-users@lists.jboss.

Re: [rules-users] Merge repository in Guvnor and editing brl with eclipse plugin

2011-03-24 Thread Eddy Hautot
Hi, We almost reach to merge 2 repositories using eclipse plugin but had to create first package then upload the new model jar then only the ressources. Still have tests to do to be sure it's doing all well. But now i face problem with package generated with Guvnor. I generate a full package wit

[rules-users] accumulate min over java.util.Date

2011-03-24 Thread jkrupka
Should I be able to do an accumulate min over java.util.Date objects? Like this: $minDate : Date() from accumulate(MyFact ($startDate : startDate), min($startDate)) I would have thought so, but when I try it, I'm getting: Caused by: java.lang.ClassCastExc

[rules-users] xdrl fixes/enhancements

2011-03-24 Thread Veit Guna
Hi. Any chance that this could be reviewed and maybe integrated into the release? https://jira.jboss.org/browse/JBRULES-2672 Regards, Veit ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] Drools 5.2.0-SNAPSHOT: NullPointerException in PatternBuilder#build

2011-03-24 Thread ljnelson
See https://issues.jboss.org/browse/JBRULES-2932. Stack: Caused by: java.lang.NullPointerException at org.drools.rule.builder.PatternBuilder.build(PatternBuilder.java:323) at org.drools.rule.builder.PatternBuilder.build(PatternBuilder.java:268) at org.drools.rule.builder.P

Re: [rules-users] Drools 5.2.0-SNAPSHOT: .drl broken?

2011-03-24 Thread ljnelson
JIRA closed, because it turns out that Drools 5.2.0-SNAPSHOT now relies on MVEL 2.1-SNAPSHOT. I had 2.0.19 in the dependency tree. Now I'm hitting another NullPointerException within the bowels of drools-compiler; I'll file that JIRA shortly. -- View this message in context: http://drools-java-

[rules-users] [planner] Hard constraints in drl, MoveFactory or isMoveDoable

2011-03-24 Thread Evert Penninckx
Hi General question on the drools planner. If I'm not mistaken, I see three ways to impose hard constraints: 1. Generate violations in the scoring DRL. 2. Check them in isMoveDoable 3. Do not create moves in the MoveFactory which cause hard constraints to be broken. For safety I would always a

Re: [rules-users] Drools 5.2.0-SNAPSHOT: .drl broken?

2011-03-24 Thread ljnelson
JIRA filed: https://issues.jboss.org/browse/JBRULES-2931 -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-5-2-0-SNAPSHOT-drl-broken-tp2724780p2724897.html Sent from the Drools - User mailing list archive at Nabble.com. ___

[rules-users] Drools 5.2.0-SNAPSHOT: .drl broken?

2011-03-24 Thread ljnelson
My rule that I'm using in unit testing only looks like this: rule "Testing contains" dialect "mvel" when Response( $answerSelections : answerSelections ) AnswerSelection( answer.ID in (2, 3) ) then System.out.println("Testing contains activated") end Response has a getAnswerSele

Re: [rules-users] can't find google calendar and logging samples in drools flow workitems samples

2011-03-24 Thread Mauricio Salatino
Hi, I don't know where that code is but it's very easy to create your own work item. You can create your own using any type of framework and communicate with any other type of application. Greetings. PS: by the way, now the jBPM5 project is hosted in git at: http://www.github.com/krisv/jbpm 20

Re: [rules-users] Drool Tutorial

2011-03-24 Thread Mauricio Salatino
Hi, I'm creating some slides about Drools too, like a community training: take a look at: http://salaboy.wordpress.com/2011/02/23/drools-5-community-training-announced-roadmap/ I will be posting more modules next week. Greetings. 2011/3/24 Michael Anstis > Your best starting point would be to r

Re: [rules-users] endless loop even with "no-loop"

2011-03-24 Thread Gabor Szokoli
Maybe your actual business needs have a procedural, flow chart like aspect to them? You can chain ruleflow groups in Drools Flow... If your needs are mostly declarative and you'd like to handle a rare exception with this "fire once" rule, it can be done of course by tweaking the rule a bit: One wa

Re: [rules-users] endless loop even with "no-loop"

2011-03-24 Thread Vincent Legendre
If you don't want to change your rules (add conditions, controls facts ...), you can set an AgendaFilter that only accepts rules not executed yet. If your rules are not chaining (ie one rule changes an attribute that trigger another rule), you should use sequential mode. Le 24/03/2011 10:27, Jam

Re: [rules-users] endless loop even with "no-loop"

2011-03-24 Thread James Gu
I tried lock-on-active and it is better than no-loop because it can avoid activate other rules in a group. Maybe it is too strong for me. What I want is : rule 1 change a attribute and it tells other rules (for example, rule 2) that the fact data is changed. rule 2 change another attribute, but d

Re: [rules-users] Drool Tutorial

2011-03-24 Thread Michael Anstis
Your best starting point would be to read the Drools Expert documentation and look through the examples. Any questions you may subsequently have can be asked here and people will always be willing to provide assistance. With kind regards, Mike On 24 March 2011 03:13, Heng hh wrote: > Hi all >