Re: [rules-users] Need help in formulating rule (using list)

2009-11-11 Thread psentosa
Hi Brody, I have had similar situation several times, and each time I had to modify my objects to avoid this, and it was really tedious. I'd also would like to know whether it is possible to have a "real solution" in this case without needing to change the base objects, but rather use the rule la

[rules-users] ClassCastException with 5.0CR1 on execute(Iterable obj)

2009-03-13 Thread psentosa
Hi all, I've just updated to drools 5.0CR1. Before I had this kind of expression: ksession.executeIterable(objects) with objects ist a list containing different kind of objects and this worked perfectly. after updating, I use the forementioned execute(Iterable obj) on the same list of objects,

[rules-users] Problem in defining DSL in Guvnor (and some possible bugs?)

2009-03-11 Thread psentosa
Hi all, I'd like to define some DSL sentences using Guvnor. Then using the DSL-Editor from eclipse, I create the following mappings (for consequence): 1. [CONSEQUENCE]Following "{time}" regulation "{regname}" is violated=String day = "{time}"; String regulation = "{regname}"; ViolatedRegulation

[rules-users] "less time- and memory-consuming" usage of KnowledgeAgent - need some advice

2009-01-16 Thread psentosa
Hi... I'm trying to use KnowledgeAgent in my application; I already saw he examples in the docs..but somehow I'm still not sure whether I've used it correctly. The case is that I implement a STATELESS session bean, which provides the method that makes use of rule engine. private KnowledgeBase kb

Re: [rules-users] No ClassLoaders found for: String

2009-01-13 Thread psentosa
rools-core 5.0.0.M4 And I can see that mvel2-2.0.4 has been added, besides drools-api and core 5.0.0.M4 Thanks for the reply Edson Tirelli-3 wrote: > > What MVEL version are you using? > > []s > Edson > > 2009/1/1

[rules-users] No ClassLoaders found for: String

2009-01-13 Thread psentosa
Hallo, I have a rule like this, defined in Guvnor: when Activity ( $date : date, workingTime > 240) then System.out.println("Working time limit has been reached"); violatedRegulation.add(new String("regulation.general.working1")); violatedRegulation is a List which I set as a

[rules-users] Problem using BRMS and Knowledge Agent

2009-01-13 Thread psentosa
Hi all, I'm having problem getting the KnowledgeAgent and Guvnor working correctly... On the console I got this reports: 12:35:05,265 INFO [STDOUT] [2009:01:13 12:01:265:info] ResourceChangeScanner created with default interval=60 12:35:05,265 INFO [STDOUT] [2009:01:13 12:01:265:info] Resource

Re: [rules-users] Problem with (examples for )Guvnor M3 (mortgage, advertisement)

2009-01-12 Thread psentosa
les Users List >> *Sent:* Tuesday, December 9, 2008 10:44:43 AM >> *Subject:* Re: [rules-users] Problem with (examples for )Guvnor M3 >> (mortgage, advertisement) >> >> Which browser are you using? I assume Firefox? If so can you try >> different >> o

[rules-users] How to use KnowledgeAgent in the "old manner" (just like RuleAgent)

2008-12-15 Thread psentosa
Hi all, Can anyone give some explanation / examples on this? The docu is still using ruleagent. I found some piece of codes within the KnowledgeAgentFactory, but I saw that it uses the configuration object. I personally prefer the old style by using a property file in which the configuration is d

Re: [rules-users] Need some advices in using Guvnor in cluster environment

2008-12-11 Thread psentosa
Apparently there was a problem in displaying my post in some browsers because of the font, so sorry for posting this double: Dear mailing-list/forum reader, I need to set up a test for using Guvnor in cluster. I searched in the archive, and I know there are few threads regarding this. But som

[rules-users] Problem with (examples for )Guvnor M3 (mortgage, advertisement)

2008-12-08 Thread psentosa
Dear all, I'm testing Guvnor for the first time (M3, never tried the previous versions) and try to run the mortgage example first. In the example folder, there's a .txt file which describes how to run it. So I imported the repository and wanted to take a look at the rules. When I clicked on the

[rules-users] DROOLS with BRMS in J2EE Environment

2008-08-26 Thread psentosa
Hi, sorry for double posting now, I'm afraid my first post which I added to an existing thread with similar topic, hasn't been looked at because of the length of the thread :-) so, please apologize The following problem: I have some service implementation in my J2EE-based webapp for calculating/

Re: [rules-users] WARNING: RUNNING IN NON SEAM MODE SINGLE USER MODE - ONLY FOR TESTING AND DEBUGGING !!!!!

2008-08-22 Thread psentosa
if I use Guvnor with Drools 4.0.7 or would there be "complication"? Thanks in advance! Regards psentosa wrote: > > Hi all, > > I've been trying to play around with BRMS for some days now, > and I've noticed from the beginning that the error report: > &g

Re: [rules-users] strategy for rulebase updates in a cluster?

2008-08-22 Thread psentosa
having read your interesting discussion, I'd like to ask some additional questions regarding using DROOLS in JEE environment. Actually JEE is also quite new for me as well, so please give some corrections/ideas if I misunderstand something. Following problem: I have some service implementation in

Re: [rules-users] some basic questions to grouping

2008-08-20 Thread psentosa
ot; order, not rule evaluation. Rete > will evaluate your rules eagerly, even if your group is not active. In > your > case, with mutually exclusive constraints in your patterns, you should not > worry about that. Let the engine optimize the matching for you. If you > find > pe

Re: [rules-users] some basic questions to grouping

2008-08-19 Thread psentosa
ong as you write them in the same order, they are still optimized. The > only > problem you will have is if you start using accumulate and collect, that > are > really expensive in terms of performance. In cases like that, you will > need > a manual optimization, but it is still

[rules-users] some basic questions to grouping

2008-08-19 Thread psentosa
Hi, I'm having some difficulty to understand the concept of grouping, but maybe it's only because of my understanding of the terms, so please apologize for the silly question 1. when you are saying "rules fire", does this mean: matching/checking the LHS of rule, or executing the RHS of rule 2. I

Re: [rules-users] how to share functions between drl files ?

2008-08-18 Thread psentosa
Write your function as a static function. Both rules have to import this function just like importing class By using BRMS you put your function as a function asset and any rule can (from the same package) can use it regards Ady Bastian wrote: > > I have same functions that is used on two rule

[rules-users] WARNING: RUNNING IN NON SEAM MODE SINGLE USER MODE - ONLY FOR TESTING AND DEBUGGING !!!!!

2008-08-18 Thread psentosa
Hi all, I've been trying to play around with BRMS for some days now, and I've noticed from the beginning that the error report: (Contexts.java:flushAndDestroyContexts:335) could not discover transaction status keep popping up in the console. Now after doing some search from the forum,

RE: [rules-users] Fetching values of an object's attribute set bydifferent rules

2008-08-12 Thread psentosa
-Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of psentosa > Sent: 12 August 2008 09:45 > To: rules-users@lists.jboss.org > Subject: Re: [rules-users] Fetching values of an object's attribute set > bydifferent rules > >

Re: [rules-users] Fetching values of an object's attribute set by different rules

2008-08-12 Thread psentosa
clearer now, and any idea would be great! Thanks in advance Paul psentosa wrote: > > Hi, > > I have the following problems: > I need to prove an object based on certain rules, where the parts of the > rules should be kept to be used in further process within my applicatio

RE: [rules-users] Fetching values of an object's attribute set bydifferent rules

2008-08-11 Thread psentosa
anks in advance :) Paul Hi psentosa, I don't fully understand what you require, but won't using a List of WashRuleMatches provide what you need? rule A when $s : Shirt (dirtinessLevel == high) $holder : WashRuleValueHolder() Then System.out.println ("this cloth

[rules-users] Fetching values of an object's attribute set by different rules

2008-08-11 Thread psentosa
Hi, I have the following problems: I need to prove an object based on certain rules, where the parts of the rules should be kept to be used in further process within my application. In order to fetch those parts, my idea was to insert an additional object as value holder for the rule's parts, pu

Re: [rules-users] How to create DSL template that produces rules based on arbitrary user's input?

2008-08-11 Thread psentosa
Hi Matt, thanks for the mind-opening idea ;-) I'll try to remember this when I need to do such mapping again Paul Matt Geis wrote: > > You can do this. Keep in mind that the DSL engine will try to match each > dsl mapping entry into the LHS of the rule, one by one, in the order they > are de

[rules-users] External library for function in BRMS

2008-08-08 Thread psentosa
Hi, I have the following questions: if I'd like to define a quite complex function, which uses both: my own classes (as parameter, and for use within the function) and some external library, i.e. commongs-lang-2.2.jar (should also be used within the function), should I put them all as several jar

[rules-users] How to create DSL template that produces rules based on arbitrary user's input?

2008-08-06 Thread psentosa
Hi all, This newbie has the following problem: I'd like to let rules-creator to input something arbitrary, and the corresponding rules are produced. To be concrete, he'd like to be able to write the following condition: When I play only on "Monday", "Thursday", "Friday" Then I

Re: [rules-users] Snapshot doesn't include the updated rule?

2008-07-30 Thread psentosa
ting of snapshot, the server kind of freezes. I have to restart it to bring it back to normal, and I do that once or twice everyday. On 7/25/08, psentosa <[EMAIL PROTECTED]> wrote: Sorry ..forgot to mention... i use Drools/BRMS 4.0.7, Eclipse 3.4 Ganymede... just now i try to recre

[rules-users] Snapshot doesn't include the updated rule?

2008-07-25 Thread psentosa
Hi, just trying to use BRMS for the 1st time by installing the insurance example. BRMS and the example are both deployed on JBoss 4.2.2. After editing a rule (i.e. Driver is underage) by adding a self-defined function and some new println statements, i built the package and took a snapshot, and t

Re: [rules-users] Snapshot doesn't include the updated rule?

2008-07-25 Thread psentosa
Sorry ..forgot to mention... i use Drools/BRMS 4.0.7, Eclipse 3.4 Ganymede... just now i try to recreate the snapshot after rebuilding the package (i.e. create the snapshot from menu "package", and not from "Deployment", and suddenly I can't open the source package anymore. So I delete the snaps