Re: [rules-users] Example of contains operator...

2007-02-13 Thread Marcus Ilgner
On 2/13/07, jdepaul [EMAIL PROTECTED] wrote: Ok thanks - that worked when partnerList was an ArrayList, how would I code my contains condition if the parternList was a HashMap!? You could write an accessor in your model called getPartnerListKeys() which returns getPartnerList().keySet() and

Re: [rules-users] Using Java to write rules?

2007-03-02 Thread Marcus Ilgner
On 3/2/07, Aeinehchi Nader [EMAIL PROTECTED] wrote: I wonder if it is possible to write rules and make queries toward the knowledge database of Jboss Rules using Java language itself. What I need is to to be able to access the rule engine's API. I do not want to use Drools language or XML.

Re: [rules-users] Rules with Lookup Tables...

2007-03-02 Thread Marcus Ilgner
On 3/2/07, Francisco Brum [EMAIL PROTECTED] wrote: I also need to make a rule with a lookup tables, and I have found that the new version of rules support 'from'. Another solution could be the the use of globals:

Re: [rules-users] Using rules with database scenario

2007-03-09 Thread Marcus Ilgner
On 3/9/07, Uday Kamath [EMAIL PROTECTED] wrote: We had similar use case. What we do is we model the Schema elements, generate Java Beans (pojo), and write rules using these Pojo. Now we have written a Service on top which takes Hibernate QL and gets the database records as the same Pojos

Re: [rules-users] Getting validation errors

2007-03-13 Thread Marcus Ilgner
Hi Mike, On 3/13/07, Mike Dougherty [EMAIL PROTECTED] wrote: Hello, I am using JBoss Rules to validate entities before storing them in the database. I therefore need a way to inform the calling code that the entity which was asserted failed verification. The only way I have been able to find

[rules-users] Remotely debugging application server code

2007-11-15 Thread Marcus Ilgner
Hi list, I'm experiencing problems when remotely debugging my JBoss-Rules-using application running on an application server. The application server is JBoss 4.2.1.GA and I connect to it via Eclipse. My JBoss Rules version is 4.0.3. As soon as I start inserting facts, the application seems to

Re: [rules-users] Globals asserted as facts... how to modify them...

2008-02-16 Thread Marcus Ilgner
Hi, On Feb 16, 2008 1:00 PM, mmquelo massi [EMAIL PROTECTED] wrote: Hi everybody, I followed all the topics about globals and the fact that they are immutables. I also understood that once we decide to reason over globals, it's time we no more use them and we start to use simple WM facts.

Re: [rules-users] Drools as OSGI bundle

2008-05-14 Thread Marcus Ilgner
Hi, On Wed, May 14, 2008 at 1:12 PM, ekke [EMAIL PROTECTED] wrote: just seen that SpringSource published Drools as OSGI bundles http://www.springsource.com/repository/app/search?query=drools http://www.springsource.com/repository/app/search?query=drools - I'll create a request to get

Re: Re:[rules-users] JUnit testing

2008-05-22 Thread Marcus Ilgner
simply died. Marcus Ilgner wrote: Hi Edson, thank you very much for testing this! Since I could not discern any differences between your approach and mine, I decided to resolve the issue manually by inserting a work-around in my test routine which sets the context class loader for the current

Re: [rules-users] Drools 4.0.7 supports Clustering and DB interaction ?

2008-05-30 Thread Marcus Ilgner
Hi, On Fri, May 30, 2008 at 10:13 AM, Thalupula Ravi [EMAIL PROTECTED] wrote: Hi, Can some one answer my questions regarding drools support 1. is drools supports clustering? I don't have that much experience on the topic, but I my guess would be that if you write your code on top of some

Re: [rules-users] How to Configure Hibernate and use in Drools

2008-06-03 Thread Marcus Ilgner
Hi Sekhar, On Mon, Jun 2, 2008 at 5:56 PM, RAJA SEKHAR REDDY MAYALURU [EMAIL PROTECTED] wrote: hi , i need to connect to data from a .drl file from a rule . i need to get the dynamic data from DB to frmae a rule . I have seen that Drools support Hibernate . so how can i connect to DB

Re: [rules-users] eclipse-jdtcore.jar

2008-06-03 Thread Marcus Ilgner
Hi, just as a side note: I had one project using Eclipse which already used another version of the JDT core. Encountering the same problem, I just put the core-3.2.3.v_686_R32x.jar from Drools in my project, too, and it worked without problems. Best regards Marcus On Tue, Jun 3, 2008 at 3:25

Re: [rules-users] eval question

2008-06-04 Thread Marcus Ilgner
Hi Mike, On Wed, Jun 4, 2008 at 3:53 PM, Mike D [EMAIL PROTECTED] wrote: I'm close, but no cigar... I have a header record amount and did an accumulate on a detail amount. The sum of the detail can be within a percent of the total. The $valueUsAmt is the header, and the totValue is the

Re: [rules-users] precompile rules

2008-06-07 Thread Marcus Ilgner
Hi, On Fri, Jun 6, 2008 at 10:02 PM, apor [EMAIL PROTECTED] wrote: hi, i am new with drools. one question , The rules can precompilar ? yes, you can compile your rulebase and serialize then later deserialize the compiled packages. From the documentation: 7.1.4.4. Serializing Practically all

Re: [rules-users] logging

2008-06-18 Thread Marcus Ilgner
On Wed, Jun 18, 2008 at 10:29 AM, Jaroslaw Kijanowski [EMAIL PROTECTED] wrote: May be you could store the names of every fired rule in a global by putting drools.getRule().getName() into a list on the RHS. Then you could get all rules in your package ( pkg.getRules() ) into another list and

Re: [rules-users] Re: access to in working memory generated objects

2008-06-18 Thread Marcus Ilgner
Hi, On Wed, Jun 18, 2008 at 1:17 PM, Alexander Claus [EMAIL PROTECTED] wrote: I want to use rules which shall generate as a consequence a new java object. The GUI of my application shall display the new generated objekt. but how can the GUI of my application get informed by the rule engine

Re: [rules-users] Beginner question about Dynamic Beans

2008-07-02 Thread Marcus Ilgner
Hi Francesco, On Wed, Jul 2, 2008 at 10:28 AM, fmarchioni [EMAIL PROTECTED] wrote: Hi all drools users! I'm just learning Drools from the manual, I have a question about Dynamic Beans. I have added PropertyChangeSupport and listeners to my Beans: I can see that inside my rule, if I change

Re: [rules-users] drools-eclipse sources?

2008-07-03 Thread Marcus Ilgner
On Thu, Jul 3, 2008 at 8:23 AM, Markus Helbig [EMAIL PROTECTED] wrote: Hi everybody, where can i get the sources for drools-eclipse? I remember they were in svn but currently i can't find them there. Cheers Markus Hi Markus, have a look at

Re: [rules-users] insert a collection/ArrayList of facts

2008-07-03 Thread Marcus Ilgner
On Thu, Jul 3, 2008 at 2:55 PM, thomas kukofka [EMAIL PROTECTED] wrote: Hello, is it possible to insert an Arraylist of facts like this?: ArraList list; wm.insert (list); And if yes how can I iterate over the list in the when-part of the rule? The rule should be applied to all elements of

Re: [rules-users] Using from

2008-07-17 Thread Marcus Ilgner
Hi Aziz, On Thu, Jul 17, 2008 at 8:26 PM, Aziz Boxwala [EMAIL PROTECTED] wrote: I have the following class structure. Class GrandFather { ListFather fathers; public ListFather getFathers() {return fathers;} } Class Father { int age; ListSon sons; public int getAge() {return

Re: [rules-users] How to avoid circular rule activation for non circular problems?

2008-07-24 Thread Marcus Ilgner
On Thu, Jul 24, 2008 at 3:28 PM, Ralph Ammon [EMAIL PROTECTED] wrote: I'd like to get some hints to improve the rules of my simple planning system. My simple planning system is derived from the HelloWorld Drools Project. The job of my planning system is to calculate startTime and endTime as

Re: [rules-users] Handle activationCancelled Event

2008-07-25 Thread Marcus Ilgner
On Fri, Jul 25, 2008 at 1:04 PM, Claudio Rainoldi [EMAIL PROTECTED] wrote: Hi everyone, i'm developing a java application using drools 4 for domotic control; i ve implemented a listener on my working memory with the method afterActivationFired(...) and activationCancelled(...) . At startup of

Re: [rules-users] Handle activationCancelled Event

2008-07-25 Thread Marcus Ilgner
On Fri, Jul 25, 2008 at 3:15 PM, Ingomar Otter [EMAIL PROTECTED] wrote: Why don't you use facts for control? when mylamp==on then assert/update sth? That looks easier to me. --I Indeed. If I understand your problem correctly, the corresponding rule should rather look like rule Lamp is not

Re: [rules-users] Request for assistance in removing eval from a rule

2008-09-17 Thread Marcus Ilgner
Hi, On Wed, Sep 17, 2008 at 12:48 AM, Warren, David [USA] [EMAIL PROTECTED] wrote: If it helps, RulesUtil.containsKeywordString() checks to see if a string passed in is present in a list of keywords held in the class. maybe it would work if you asserted your keywords as a ListString global

Re: [rules-users] Storing RuleDescr and/or PackageDescr in a database table

2008-09-17 Thread Marcus Ilgner
Hi, On Mon, Sep 15, 2008 at 10:11 PM, imraan [EMAIL PROTECTED] wrote: Users in my system will be able to configure their own rules to an extent through a UI. I will create these rules programmatically using the org.drools.lang.descr package. Right now, I am trying to see if its possible to

[rules-users] Defining fallback rules

2008-09-17 Thread Marcus Ilgner
Hi all, I'm currently puzzled on how to implement a sort of fallback rule. In my scenario I have a couple of articles and payments related to those articles. Now I need to distribute royalties to the authors of these articles. There's a common business logic which says distribute X percent for

Re: [rules-users] Does drools have any trigger?

2009-04-28 Thread Marcus Ilgner
2009/4/24 Lindy hagan lindyha...@gmail.com: I was looking at  Blaze Advisor documentation it has  “when changed” operator that only fires when an attribute of an object changes. A business analyst might use it to watch for any important issue, such as a thermostat warning in a process plant or

Re: [rules-users] The Eclipse JDT Core jar is not in the classpath error

2009-06-02 Thread Marcus Ilgner
2009/6/2 Chris Richmond crichm...@referentia.com: Hello, I am using netbeans and ivy with Drools 5.  I have successfully named, published the jars from drools to and could build my port of the stock ticker application in netbeans, but when I try to run it, I get the following error:

Re: [rules-users] A relational SQL Database as RuleBase

2009-06-04 Thread Marcus Ilgner
On Wed, Jun 3, 2009 at 10:21 PM, r.r.neum...@freenet.de r.r.neum...@freenet.de wrote: Hi guys, my question is listed in the topic. Is it possible? I read, that Drools 4 provides such a feature but in this case, there is noch DSL available? Is this correct? What's about Drools 5, same thing?