[rules-users] Combine DSL and Java Code?

2007-11-07 Thread Markus Helbig
Hi, following example: Item Class: public class MyItem { public MyItem() {} public String getMessage() { return Hello World!; } } DSL: [condition][]is of type MyItem=MyItem() [consequence][]write {value} to stdout=System.out.println({value}); DSRL File:

[rules-users] Drools plugins : how to manage error with xls extension in my Drools Projet ?

2007-11-07 Thread vdelbart
Hi everyone, I have a little problem with this plugins Drools in Eclipse. In my Drools Project I have some xls but I haven't Decision Table. I have this error associate with all xls files : An error occured opening the workbook. How to ignore this error and don't see it any more ? I try to

[rules-users] Re: inconsistency with 'collect' and the '||' operator

2007-11-07 Thread Adrian
Adrian Cowham adrian.cowham at gmail.com writes: I'm running into an issue where the || operator embedded in a collect CE isn't working as expected. The rule I have is rule Grant Access when $request : AccessRequest($name : username, $ID : sessionID, $loc : accessLocation, $day :

RE: [rules-users] Accessing maps (hashmaps) keys and values in rules

2007-11-07 Thread Anstis, Michael (M.)
Hi, Perhaps I'm reading too much into your example but I have a number of questions:- * I assume the rule is defined by the user? * Do you only have one instance of RaCdrMoc? * Why do you have a pattern for CDRError when this object is created

[rules-users] RE: How to stop firing rules from dependent object

2007-11-07 Thread Sikkandar Nawabjan
Hi, I have 2 Objects and its corresponding drl/dsls to validate the rule ObjectA - A.drl,A.dsl ObjectB - B.drl,B.dsl when i insert ObjectA i want the rules in A.drl to be fired. when i insert ObjectB along with ObjectA i want to fire rules only from B.drl There are some rule in B.drl

RE: [rules-users] Combine DSL and Java Code?

2007-11-07 Thread Raj, Govinda (Mohan)
Try changing DSL from [consequence][]write {value} to stdout=System.out.println({value}); To [consequence][]write {value} to stdout=System.out.println( {value} ); And see if it works. --Mohan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Markus

Re: [rules-users] RE: How to stop firing rules from dependent object

2007-11-07 Thread Mark Proctor
you'll have to setup rules that detect the state of the working memory that then uses semaphores to control which rules can fire. Mark Sikkandar Nawabjan wrote: Hi, I have 2 Objects and its corresponding drl/dsls to validate the rule ObjectA - A.drl,A.dsl ObjectB - B.drl,B.dsl when i

[rules-users] inconsistency with 'collect' and the '||' operator

2007-11-07 Thread Adrian Cowham
I'm running into an issue where the || operator embedded in a collect CE isn't working as expected. The rule I have is rule Grant Access when $request : AccessRequest($name : username, $ID : sessionID, $loc : accessLocation, $day : dayOfAccess) $user : NetworkUser(username ==

Re: [rules-users] Problem running JBRMS 4.0.3 on JBoss AS 4.2.1

2007-11-07 Thread Aziz Boxwala
Fernando, Did you have an opportunity to look into the issue? Thanks, --Aziz - Original Message From: Fernando Meyer [EMAIL PROTECTED] To: [EMAIL PROTECTED]; Rules Users List rules-users@lists.jboss.org Sent: Wednesday, October 31, 2007 11:03:59 AM Subject: Re: [rules-users] Problem

Re: [rules-users] inconsistency with 'collect' and the '||' operator

2007-11-07 Thread Mike D
did you try AccessRule((allowedLocation in (ANY, $loc)? Adrian Cowham wrote: I'm running into an issue where the || operator embedded in a collect CE isn't working as expected. The rule I have is rule Grant Access when $request : AccessRequest($name : username, $ID :

[rules-users] How to define Enum in the decision table

2007-11-07 Thread wyf
hi all: How can I define java Enum In the Excel decision table? I have a enum like this: public enum JobStatus { UNEMPLOYED,EMPLOYED,RETIRED } Thanks tobato -- Confidentiality Notice:

Re: [rules-users] Combine DSL and Java Code?

2007-11-07 Thread Edson Tirelli
Markus, did you tried: [consequence][]write {value} to stdout=System.out.println({value}); With the line: write $item.getMessage() to stdout []s Edson 2007/11/7, Markus Helbig [EMAIL PROTECTED]: Hi, following example: Item Class: public class MyItem { public

Re: [rules-users] inconsistency with 'collect' and the '||' operator

2007-11-07 Thread Edson Tirelli
Your message seems to be truncated. Can you please re-send? []s Edson 2007/11/7, Adrian Cowham [EMAIL PROTECTED]: I'm running into an issue where the || operator embedded in a collect CE isn't working as expected. The rule I have is rule Grant Access when $request

[rules-users] inconsistency with 'collect' and the '||' operator

2007-11-07 Thread Adrian Cowham
I'm running into an issue where the || operator embedded in a collect isn't working as expected. My collect statement is as follows... $request : AccessRequest($name : username, $ID : sessionID, $loc : accessLocation, $day : dayOfAccess) $locationRules : ArrayList(size 0) from

Re: [rules-users] RuntimeDroolsException: Unable to load

2007-11-07 Thread Edson Tirelli
Robert. Fernando is taking a look in that. []s Edson 2007/11/6, Robert Morse [EMAIL PROTECTED]: Hello Edson, If you are willing to download and install JBoss AS 4.2.1 and Seam 2.0.0.CR2, I can send you a slightly modified Seam example that will demo this problem. If you want

[rules-users] RE: rules-users Digest, Vol 12, Issue 16

2007-11-07 Thread Sikkandar Nawabjan
://lists.jboss.org/pipermail/rules-users/attachments/20071107/451e832f/attachment-0001.html -- Message: 2 Date: Wed, 7 Nov 2007 19:53:36 + (UTC) From: Adrian [EMAIL PROTECTED] Subject: [rules-users] Re: inconsistency with 'collect' and the '||' operator To: rules