Re: [rules-users] Creating fact instance programatically

2009-03-09 Thread Nestor Tarin Burriel
Yes, If I put a non existent package and type, the method getFactType returns me null value, but if I put the correct package and type it throws that error. Thanks, NEStor 2009/3/8 Michal Bali michalb...@gmail.com your factTypeName should consist of package name + type name, for example:

[rules-users] how to use drools4 brms package view to delete a rule,

2009-03-09 Thread 王磊
hi I want to add a function that I can delete a rule from brms package viewer,how can I do that? another question when will drools5 ga become available? ___ rules-users mailing list rules-users@lists.jboss.org

[rules-users] How to get rid of the imports

2009-03-09 Thread FlaviusVesp
Hello, I am currently developing a project with intensive usage of Drools. Users should write their rules in DSL, but I want to not burden them with writing the right import com.sample.my.own.Class;, because they shouldn't know anything about my classes. They should know only the DSL I provide

[rules-users] Re: NPE when using directory scanner and drl is incorrect. Possible bug! (Drools 4.0.7)

2009-03-09 Thread Przemysław Różycki
Small correction. I've just found this: https://jira.jboss.org/jira/browse/JBRULES-1436 but it is has to be fixed in 4.0.5 and I'm still experiencing it in 4.0.7. Best regards, Przemysław Różycki Przemysław Różycki pisze: Hi, I think I found a bug. When I use rule agent with directory

[rules-users] NPE when using directory scanner and drl is incorrect. Possible bug! (Drools 4.0.7)

2009-03-09 Thread Przemysław Różycki
Hi, I think I found a bug. When I use rule agent with directory scanner, and the rule that is being scanned contains a bug, then I receive a NPE instead of error message: java.lang.NullPointerException at org.drools.agent.FileScanner.readPackage(FileScanner.java:102)

Re: [rules-users] Events - Determining the Fact Pattern

2009-03-09 Thread Edson Tirelli
David, This is an interesting use case, but I don't think you can build a complete explanation from the agenda listener. Let me clarify: you can do 80% of the explanation from there, based on the position of the fact handles in the tuple. The collection you get from

[rules-users] Update behavior

2009-03-09 Thread Burns, Barbara L (Barb)
Can someone help explain the following behavior? Rule rule1 Agenda-group apples No-loop When Apple(color matches red) Response(name1 ==null); $response : Response() Then $response.setName1(gala); drools.setFocus(oranges); End Rule rule2 Agenda-group