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 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? > > Thanks for an

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 : > 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: > > > > > > java.lang.N

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

2009-04-28 Thread Marcus Ilgner
2009/4/24 Lindy hagan : > 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 a particular sto

Re: [rules-users] Writing rules using java from template

2009-03-31 Thread Marcus Ilgner
2009/3/31 Meny Kobel : > Hi, > First - Thanks for your quick response. > Second - As I wrote rules conditions are saved in DB. > > Conditions table example : > > > TypeName    Operation       Value                Return Value > Var1                 >=    5    “Segmen

[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 ar

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 > possi

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 List global and

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

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 star

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 en

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 { > List fathers; > public List getFathers() {return fathers;} > } > > Class Father { >int age; > List sons; > public int getAge() {return age

Re: [rules-users] Decision table

2008-07-11 Thread Marcus Ilgner
Hi Vanina, On Thu, Jul 10, 2008 at 4:44 PM, Vanina Beraudo <[EMAIL PROTECTED]> wrote: > Hello, > > I need use a excel Decision table, in the CONDITION I invoque a > method, not a getter, and this method have a parameter. I dont know > how is the correct way to call a method with a parameter in CON

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 e

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 http://anonsvn.labs.jboss.com/labs/jbo

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 cha

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

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 a

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 a

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 i

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 PM,

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

Re: [rules-users] Advantages and Disadvantages of "from"

2008-05-30 Thread Marcus Ilgner
Hi, On Fri, May 30, 2008 at 5:06 PM, Thalupula Ravi <[EMAIL PROTECTED]> wrote: > > Hi, > > Can some one describe about advantages and disadvantages of below to > approaches > > 1. Interacting Database for information in rule ( using "from" or something > else)? > > or > > 2. Required information

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 s

Re: Re:[rules-users] JUnit testing

2008-05-22 Thread Marcus Ilgner
be executed in a static >> context. Where exactly to you put the test for a null classloader? >> >> Thanks again. I thought this issue simply died. >> >> >> Marcus Ilgner wrote: >>> >>> Hi Edson, >>> >>> thank you very much for testing

Re: Re:[rules-users] JUnit testing

2008-05-19 Thread Marcus Ilgner
bute a patch, it is also welcome. > >Thanks. >Edson > Of course I'll gladly write a patch for this issue. Although I'm head over heels in my current project, there's a holiday coming up this week, so you may expect the patch by the end of the week. Cheers Marcus >

Re: Re:[rules-users] JUnit testing

2008-05-19 Thread Marcus Ilgner
.ECLIPSE); > javaConf.setJavaLanguageLevel("1.5"); > > PackageBuilder builder = new PackageBuilder( conf ); > builder.addPackageFromDrl( source ); > > RuleBase ruleBase = RuleBaseFactory.newRuleBase(); > ruleBase.addPackage( builder.getPackage() ); &

Re: Re:[rules-users] JUnit testing

2008-05-19 Thread Marcus Ilgner
Hi list, I'm reviving this thread because I happen to have the same problem. On Sun, Mar 23, 2008 at 7:34 PM, Mike Dean <[EMAIL PROTECTED]> wrote: > > Thanks (months later!). I have cut down my code example below to show this > issue more clearly: > > > John J. Franey wrote: >> >> NullPointerExc

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 g

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

[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 hang

Re: [rules-users] Can set field in LHS part?

2007-05-08 Thread Marcus Ilgner
On 5/8/07, Joj <[EMAIL PROTECTED]> wrote: Hi, I know tht v can set value of a field in the RHS part using setter method in simple Java. Similarly, can v assign a value to a field of an object in the LHS? Is it feasible? I think no. :) Thanx Jojan Aside from the fact that this is not possibl

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

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] column binding vs field binding - any performance implications?

2007-03-07 Thread Marcus Ilgner
Hi Vlad, On 3/7/07, Olenin, Vladimir (MOH) <[EMAIL PROTECTED]> wrote: Hi, I wonder if there are any performance implications of choosing column binding vs field binding (I'll be using bound variable in eval). Eg, in such case: Record($field : field) eval ( $field.equals("xxx") ) vs

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: http://labs.jboss.com/file-access/default/members/jbossrules/freezone/docs/3.0

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.

[rules-users] Re: Using Enums in LHS

2007-02-26 Thread Marcus Ilgner
Hello again, On 2/19/07, Marcus Ilgner <[EMAIL PROTECTED]> wrote: Hi list, I'm having problems using Enums in the LHS of my rules. Running this rule > rule "demo" > when > $t : Transition( from == PlayerCharacter.STATE_IDLE,

[rules-users] A question regarding licensing

2007-02-21 Thread Marcus Ilgner
Hello list, I'm somewhat confused about how to license my software. I have made a couple of searches on the net, but could not come up with any good solution. That's the situation: JBoss Rules is licensed under the Apache License. It does, however contain Eclipse compiler components, which are li

Re: [rules-users] Janino vs. Eclipse

2007-02-20 Thread Marcus Ilgner
On 2/20/07, Dirk Bergstrom <[EMAIL PROTECTED]> wrote: I do not understand the difference between the Janino and Eclipse options for rules compilation. The documentation only says that there are two options, and the javadocs don't really go any further. Can someone provide more detail? My quest

Re: [rules-users] Need Help: Errors while running FibonacciExample

2007-02-19 Thread Marcus Ilgner
Hi Venkatesh, On 2/19/07, venkatesh devalapura nagabhushana <[EMAIL PROTECTED]> wrote: Hi, After successfully compiling the example code FibnacciExample.java, I tried to run it, I get the following error, let me know how to solve it: java FibonacciExample Exception in thread "main" java.lang

[rules-users] Using Enums in LHS

2007-02-18 Thread Marcus Ilgner
Hi list, I'm having problems using Enums in the LHS of my rules. Running this rule rule "demo" when $t : Transition( from == PlayerCharacter.STATE_IDLE, to == PlayerCharacter.STATE_GENERATING, state != TransitionState.REQUESTED )

Re: [rules-users] Subclasses matche superclasses problem.

2007-02-16 Thread Marcus Ilgner
Hi Oana, On 2/16/07, nicolae oana <[EMAIL PROTECTED]> wrote: Hi everybody, I have a class Car which is superclass for class ConvertibleCar, two rules (described below) and a ConvertibleCar fact in working memory that causes both rules to fire, resulting this way an unwanted change to the car`s

Re: [rules-users] java.lang.NoSuchMethodError:org.eclipse.jdt.internal.compiler.CompilationResult.getProblems()[

2007-02-15 Thread Marcus Ilgner
Hi, On 2/15/07, Nagabhushanam B <[EMAIL PROTECTED]> wrote: Hi , I have installed Eclipse 3.2 and tomcat 5.5, when I am trying to jboss rule I am getting the following exception Even though I added org.eclipse.jdt.core_3.2.0.v_671.jar in to my class path Guys help me out from this& urgent

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() an