[rules-users] matches operator

2007-07-09 Thread Ashwini Joshi
Hi, Has anyone used the matches operator? In our application we need to support startWith, endsWith operators for string variable. I am thinking of using matches operator. But the 'matches' operator is not working. I am trying the following code rule Hello World when

Re: [rules-users] toString

2007-07-09 Thread Mike D
As an example, in Shipment.Header we'd have a port.Lading with a numeric value of 901 and in District.Port, it would be the character equivalent of 0901 zero filled. thanks, Mike -- View this message in context: http://www.nabble.com/toString-tf4029720.html#a11498978 Sent from the drools -

Re: [rules-users] matches operator

2007-07-09 Thread Mark Proctor
Read up on regular expression, what you just wrote there is not valid. Mark Ashwini Joshi wrote: Hi, Has anyone used the matches operator? In our application we need to support startWith, endsWith operators for string variable. I am thinking of using matches operator. But the

[rules-users] RE: rules-users Digest, Vol 8, Issue 45

2007-07-09 Thread Sikkandar Nawabjan
of this message. Persistent Systems Pvt. Ltd. does not accept any liability for virus infected mails. -- next part -- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070709/d9bbcbc8/attachment.html

RE: [rules-users] matches operator

2007-07-09 Thread Hehl, Thomas
Also, Java is far stricter on syntax for regular expressions than anything else I've seen. You can't just test your stuff at a unix prompt or using grep to see if it works. That's just the first step. I generally use the vi find command. _ From: [EMAIL PROTECTED] [mailto:[EMAIL

RE: [rules-users] matches operator

2007-07-09 Thread Hehl, Thomas
Try ^Hello.* I think, I'm not very good with regular expressions. For more information, have a look at: http://www.regular-expressions.info/tutorial.html _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ashwini Joshi Sent: Monday, July 09, 2007 8:54 AM To: 'Rules

[rules-users] JBoss Drools vs JBoss Rules

2007-07-09 Thread Mark Proctor
http://markproctor.blogspot.com/2007/07/jboss-drools-vs-jboss-rules.html Feedback welcome please :) Mark ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] 4.0 Language Updates

2007-07-09 Thread Ronald R. DiFrango
All, I have the following rule: rule Repayment Code Requires Approval salience 60 when repaymentCode : RepaymentCode( code == MD, matchApprv == Y ) mdOutput : ModelDiscrepancyOutput( $amt1 : sumRTVQty, $amt2 : sumCmAndRnr) eval($amt1.doubleValue() ==

[rules-users] Re: 4.0 Language Updates

2007-07-09 Thread Ronald R. DiFrango
OK, I think I found it and here is what the rule could look like: rule Repayment Code Requires Approval salience 60 when repaymentCode : RepaymentCode( code == MD, matchApprv == Y ) mdOutput : ModelDiscrepancyOutput( $amt1 : sumRTVQty, sumCmAndRnr == $amt1) then

Re: [rules-users] Re: 4.0 Language Updates

2007-07-09 Thread Edson Tirelli
Ronald, Yes, this is one way (I would say probably the preferred way) of doing it. For BigDecimals, drools will use equals() method. Look at the BigDecimalFactory class for details. []s Edson 2007/7/9, Ronald R. DiFrango [EMAIL PROTECTED]: OK, I think I found it and here is what

RE: [rules-users] JBoss Drools vs JBoss Rules

2007-07-09 Thread Hamu, Dave
Mark, As a long-time member of Jboss Rules/Drools community, first, I want to thank the team for quoting me in the Drools 3.0 documentation. It's nice to know that there are people in the community who respect my opinions. I didn't realize that my comments made it into the document, but I'm

Re: [rules-users] Re: 4.0 Language Updates

2007-07-09 Thread Edson Tirelli
Ronald, Take a look at the class and it will be easy to understand: http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/drools-core/src/main/java/org/drools/base/evaluators/BigDecimalFactory.java != for big decimals is translated to return ! val1.equals( val2 ); In both cases, it is

[rules-users] 4.0 JBoss Rules IDE - JDK 1.4 compiler setting

2007-07-09 Thread Ronald R. DiFrango
All, I had to change the compiler setting from JDK 5.0 to JDK 1.4 and no all of a sudden my DRL files give me the following error: Severity and DescriptionPathResourceLocationCreation Time Id Syntax error, static imports are only available if source level is 5.0

Re: [rules-users] 4.0 JBoss Rules IDE - JDK 1.4 compiler setting

2007-07-09 Thread Mark Proctor
On M3? if you look at the JavaDialect you should see that the source is always set ti jdk1.5, can never go below that, but the target is 1.4 - which should allow static imports in a jdk1.4 environment. The unit tests for it are working, maybe you can look into debugging this one for me? Mark

Re: [rules-users] 4.0 JBoss Rules IDE - JDK 1.4 compiler setting

2007-07-09 Thread Ronald R. DiFrango
Mark, I would be happy to help. The short answer is that, I need my entire project - Java classes and all in JDK 1.4 format. When I tried playing with the settings in Eclipse it keeps telling me that either source or class files that are generated must be at or above the other's level. It