Re: [rules-users] Guvnor Building pkg error

2009-06-17 Thread Toni Rikkola
Hi, Just noticed that you asked this same thing in the drools-dev list ( and I even replied to it :) ). Please try to only ask on one list. This list, drools-users is the one for this type of questions. Thanks Toni Yan Liu wrote: When trying to build a package (even using the sample pkg

[rules-users] Where is the log4j configuration file kept?

2009-06-17 Thread Lukas, Ray
This is such a simple thing I would think.. But I don't have it working. Con someone please help out. I am running a standalone Drools application in Eclipse, I have it all working and all my rules fire and everything works great, but I can not get log4J working with it. I have climbed mountains

Re: [rules-users] Guvnor Building pkg error

2009-06-17 Thread Yan Liu
Toni, Thanks for your reply. Seems you guys use a different version of mvel2.jar for Guvnor 5 and my glassfish picked up the older version. Had it fixed and it builds fine now. Yan ___ rules-users mailing list rules-users@lists.jboss.org

[rules-users] Creating drools rules porgramatically?

2009-06-17 Thread Malay Shah
Hi, I am looking to create the drools Rule objects programatically, and I believe there is API to do that in 4.0.7. But, the API looks complex and the documentation is not sufficient. Could anyone please point me to some examples of doing this? I basically don't want to write rules in .drl

Re: [rules-users] Creating drools rules porgramatically?

2009-06-17 Thread Dave Cracauer
Malay, We've been doing something similar to what you are asking for, but using the rule syntax as an intermediate step. We have a datamodel that users can use to express the rules, and we have a templating engine that turns that into the drools syntax. This then gets compiled into packages

Re: [rules-users] Creating drools rules porgramatically?

2009-06-17 Thread Malay Shah
Thanks for the response Dave. I see that a template engine like XSLT/FreeMarker would surely help in this case, but am still interested in knowing about the API to understand how I could model the rules in DB and make sure that I don't loose any flexibility by storing rules in DB. Regards, Malay

[rules-users] Is work item configuration needed at run time? Can it be built programmatically?

2009-06-17 Thread msully
Hi folks, I'm trying to use Drools Flow in a Spring DM environment. I've OSGified its jars and things look promising. The thing is, I want to use Work Items for my domain interface, and I want WorkItemHandler's to come from the service broker. I can see how most of this would work, except for

Re: [rules-users] Creating drools rules porgramatically?

2009-06-17 Thread Mark Proctor
Malay Shah wrote: Thanks for the response Dave. I see that a template engine like XSLT/FreeMarker would surely help in this case, but am still interested in knowing about the API to understand how I could model the rules in DB and make sure that I don't loose any flexibility by storing rules in

[rules-users] Help -- running JSR-94 TCK with drools-jsr

2009-06-17 Thread Chuck Baker
Hi, The mvn package nicely generated the tck_res_1.xml and tck_res_2.xml fles. All the implementation instructions I've been able to find indicate that an additional file run_tck.xml is also needed. Is there a way to generate this file as well? thanks Charles Baker Charles Binford wrote:

[rules-users] averages on different data types

2009-06-17 Thread Chris Richmond
Hi guys, Building from the stockticker sample, I have been running my own average aggregates over time and window length and I have the following rule.it simply runs a last 10 average and outputs the average(in theory). rule show averages when $n : Number( doubleValue 0

RE: [rules-users] averages on different data types

2009-06-17 Thread Chris Richmond
So how can I access variables that I have populated from within that scope delimiter(accumulate)? For instance if I did want to access the delayTime, what strategy should be used? Thanks, Chris _ From: rules-users-boun...@lists.jboss.org

Re: [rules-users] averages on different data types

2009-06-17 Thread Edson Tirelli
Chris, Not sure what you mean. If you want to know what is in there for debug purposes, I guess the best way is to implement your own average() accumulate function that prints out (or do whatever you want) with the bound variables/facts. For regular use, it does not makes sense to allow

RE: [rules-users] averages on different data types

2009-06-17 Thread Chris Richmond
Ok..I was under the impression that the rule would fire for each Order object that was injected, and in that case variables apply to each Order, hence accessing them from the consequences(right side) would be from an indfividual Order. I guess I am misundertanding how it works. Thanks for the

Re: [rules-users] averages on different data types

2009-06-17 Thread Edson Tirelli
Oh, ok. Well, if you remove the accumulate and write only the pattern, then it will fire for each instance. :) Edson 2009/6/17 Chris Richmond crichm...@referentia.com Ok..I was under the impression that the rule would fire for each Order object that was injected, and in that case

[rules-users] Pre-installed Drools development environment for VirtualBox

2009-06-17 Thread Mark Proctor
http://blog.athico.com/2009/06/pre-installed-drools-development.html Enjoy Mark ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users