[rules-users] DSL OR DECISION TABLES

2007-05-24 Thread suma
Hi, I'm struck up here whether to go with DSL or decision tables.Please do tell me which one is the best one to proceed with and why. If DSL then please give me some examples. -- View this message in context: http://www.nabble.com/DSL-OR-DECISION-TABLES-tf3809558.html#a10782045 Sent from the

[rules-users] DROOLS AND SPRING INTEGRATION

2007-05-24 Thread suma
Hi, Could u please help me in drools and spring integration by giving some examples Thanks, suma -- View this message in context: http://www.nabble.com/DROOLS-AND-SPRING-INTEGRATION-tf3809566.html#a10782082 Sent from the drools - user mailing list archive at Nabble.com.

RE: [rules-users] DSL OR DECISION TABLES

2007-05-24 Thread Hehl, Thomas
In my opinion, use a decision table if at all possible. They are easier to maintain and understand at a glance and can be reviewed by a power user instead of a programmer. I inject my decision table spreadsheet into my program using Spring so that I can switch it up if I need to. -Original

[rules-users] Dynamic loading of rules

2007-05-24 Thread kranthikumar dalai
Hi to all, We wrote all the rules for leave application system. In which way we can organize and store all the rules in database. Can i have any example snippets of DAO implemention in drools rules. Regards: Kranthi Dalai ___

Re: [rules-users] Dynamic loading of rules

2007-05-24 Thread Edson Tirelli
Kranthi, I don't know if there is any example available, but it should be as straight forward as either saving your DRL as text in the database or serializing your rulebases in blob fields. Alternativelly, if you are not looking for immediate production, I would recommend you take a look

[rules-users] Spring integration with Drools

2007-05-24 Thread kranthikumar dalai
Hi to all, Can i have any simple project that is developed under spring and drools 2.1 and java with Database. Regards: Kranthi Dalai ___ rules-users mailing list rules-users@lists.jboss.org

Re: [rules-users] DSL OR DECISION TABLES

2007-05-24 Thread Mark Proctor
Both are good solutions, otherwise we wouldn't offer them :) So it all depends more on your problem domain. Mark suma wrote: Hi, I'm struck up here whether to go with DSL or decision tables.Please do tell me which one is the best one to proceed with and why. If DSL then please give me some

Re: [rules-users] JBoss Rules IDE Error on StringEvaluator

2007-05-24 Thread Edson Tirelli
Ronald, I see now. Version 3.0.x still used integer codes for operators and that is the reason the error message is saying operator '50'. So, the problem is you are trying to use = (operator 50) with a string attribute: public static final int EQUAL= 1; public static

Re: [rules-users] JBoss Rules IDE Error on StringEvaluator

2007-05-24 Thread Ronald R. DiFrango
Edson, Actually, I am glad it caught it, because that was not my intent at all. I was a global search and replace issue on my part. If you added in support for these operations, I still think a warning would be in order because that may not be what you intended, I am considering the move to

Re: [rules-users] JBoss Rules IDE Error on StringEvaluator

2007-05-24 Thread Edson Tirelli
Yes, we know error messages are still not good and we are working on improving them. []s Edson 2007/5/24, Ronald R. DiFrango [EMAIL PROTECTED]: On a similar note, it would be good if the line numbers were displayed so I could find the error much easier. [I do not that is TONS easier

Re: [rules-users] Spring integration with Drools

2007-05-24 Thread Mark Proctor
why are you using drools 2.1? Mark kranthikumar dalai wrote: Hi to all, Can i have any simple project that is developed under spring and drools 2.1 and java with Database. Regards: Kranthi Dalai

[rules-users] Fwd: More Fun with JBoss Rules IDE and JBoss Rules in general

2007-05-24 Thread Ronald R. DiFrango
-- Forwarded message -- From: Ronald R. DiFrango [EMAIL PROTECTED] Date: May 24, 2007 10:48 AM Subject: More Fun with JBoss Rules IDE and JBoss Rules in general To: [EMAIL PROTECTED] All, I am now getting the following error: The type

Re: [rules-users] multi restriction connective field constraints with and |

2007-05-24 Thread Mark Proctor
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossRules The version has been jumped from 3.1 to 4.0, due to an API change and so many new features: Ronald R. DiFrango wrote: I read in the blog spot [http://markproctor.blogspot.com/2007_02_01_archive.html] that multi restriction connective field

[rules-users] Re: [drools-user] More Fun with JBoss Rules IDE and JBoss Rules in general

2007-05-24 Thread Edson Tirelli
Ronald, Special characters in the rule names are replaced by '_' as a class will be created with that name. So yes, the given names will generate conflicts. I'm not sure we can do much about it, as transparently generating unique names may cause silent unexpected problems. For now,

Re: [rules-users] Re: [drools-user] More Fun with JBoss Rules IDE and JBoss Rules in general

2007-05-24 Thread Ronald R. DiFrango
Edson, One someone else on my team came up with is using abbreviated names like: LE for = GE for = EQ for == etc., etc., etc. Ron On 5/24/07, Edson Tirelli [EMAIL PROTECTED] wrote: Ronald, Special characters in the rule names are replaced by '_' as a class will be created with

Re: [rules-users] Re: [drools-user] More Fun with JBoss Rules IDE and JBoss Rules in general

2007-05-24 Thread Geoffrey Wiseman
Just a thought -- you could always do something like include the string's hashcode in the rulename, to ensure that two names that are similar with special-character differences won't conflict with each other. On 5/24/07, Edson Tirelli [EMAIL PROTECTED] wrote: Ronald, Special

Re: [rules-users] Re: [drools-user] More Fun with JBoss Rules IDE and JBoss Rules in general

2007-05-24 Thread Edson Tirelli
Geoffrey, that is actually a nice Idea... :) Will look at implementing it. Thanks, Edson 2007/5/24, Geoffrey Wiseman [EMAIL PROTECTED]: Just a thought -- you could always do something like include the string's hashcode in the rulename, to ensure that two names that are

[rules-users] assertLogical only retracted once

2007-05-24 Thread A Gattiker
Hello, I am trying to use assertLogical in combination with a WorkingMemoryEventListener in order to have business rules drive my application: if conditions, then do something; if conditions not true anymore, then do something else. However, it seems that if the rule is activated multiple

[rules-users] Migration from 3.0.5 to 4.0.0

2007-05-24 Thread Ronald R. DiFrango
Any catches in migrating from 3.0.5 to 4.0.0? Anything special if you have a JBoss Rules Eclipse project when upgrading? ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Re: [drools-user] More Fun with JBoss Rules IDE and JBoss Rules in general

2007-05-24 Thread Ronald R. DiFrango
Yeah, I like that idea as well! On 5/24/07, Edson Tirelli [EMAIL PROTECTED] wrote: Geoffrey, that is actually a nice Idea... :) Will look at implementing it. Thanks, Edson 2007/5/24, Geoffrey Wiseman [EMAIL PROTECTED]: Just a thought -- you could always do something

Re: [rules-users] Migration from 3.0.5 to 4.0.0

2007-05-24 Thread Krishnan
I tried the same thing but could not migrate cleanly. I dropped the plugin in the plugin directory and restarted eclipse. I see two Rule icons in my eclipse workspace. I closed it and deleted the 3.0.5plugin from the plugin directory but it still would not go away. Not sure how to get rid of it.

[rules-users] Class loader issue with dynamically generated classes and JBoss AS

2007-05-24 Thread Jordan . Parker
We’re having a class loader issue compiling rules that use dynamically generated java beans as facts when deploying our application on JBoss Application Server, versions 4.0.3SP1 and 4.0.5. We’re using JBoss Rules 4.0.0.MR2 and the Janino compiler. When deploying to WebLogic 9.2, there are

Re: [rules-users] Writing JAVA functions in [when] condition of the dsl file

2007-05-24 Thread Krishnan
from what I understand, in the when clause you can only have predicates. So, you can create a function that does that and somehow returns a boolean and then evaluate the boolean to be true using eval. -Krishnan. On 5/23/07, Rajesh.Sachin10 [EMAIL PROTECTED] wrote: We can write the Java

Re: [rules-users] Re: [drools-user] More Fun with JBoss Rules IDE and JBoss Rules in general

2007-05-24 Thread Scott Reed
Unless I never looked at the name except in the source code, I don't see the much point in having two names that can be distinguished (due to hashcode inclusion) but have been semantically disconnected from the source code rules. If an error occurs in one of those rules, how will you know which

Re: [rules-users] Migration from 3.0.5 to 4.0.0

2007-05-24 Thread Edson Tirelli
You probably need to start eclipse with a '-clean' option or something like that... Regarding the migration, there are some changes that are not backward compatible, but it should not be too difficult to do it. The main one is that 3.0.x automatically wraps any primitive value into the

Re: [rules-users] Cannot retrieve an existing WorkingMemory from RuleBase

2007-05-24 Thread Edson Tirelli
Seems like a hashcode() problem... can you get a self contained test case and open a JIRA for it? []s Edson 2007/5/24, Jones, Alan R [EMAIL PROTECTED]: Hi, I have a method in my code that creates a RuleBase, then adds a new WorkingMemory. I then put that that RuleBase into a Hashtable

Re: [rules-users] Writing JAVA functions in [when] condition of the dsl file

2007-05-24 Thread Edson Tirelli
Rules are supposed to be declarative in nature. You should never need to add control statements, neither to the LHS (when), nor to the RHS (then), although, the RHS being a java code block allows you to do it... but it is usually code smell... Think about what you are doing and check if you

RE: [rules-users] Cannot retrieve an existing WorkingMemory fromRuleBase

2007-05-24 Thread Jones, Alan R
Okay. In the meantime a simple workaround (for those that may find it useful) is to put the newly added WorkingMemory into a separate hashtable of WorkingMemories (sp?). WHen Facts come in, I just retrieve the appropriate workingMemory per the incoming identifier, assert the Fact and fire all

Re: [rules-users] Re: [drools-user] More Fun with JBoss Rules IDE and JBoss Rules in general

2007-05-24 Thread Geoffrey Wiseman
On 5/24/07, Scott Reed [EMAIL PROTECTED] wrote: Unless I never looked at the name except in the source code, I don't see the much point in having two names that can be distinguished (due to hashcode inclusion) but have been semantically disconnected from the source code rules. If an error

Re: [rules-users] JBRMS

2007-05-24 Thread Michael Neale
Yes, as discussed, you need to add import statements for the types you want the BRMS to be aware of - if you like, create a feature request jira for auto importing. I deliberately didn't do it cause I thought it would cause more confusion, but perhaps I was wrong. Also, the video on the blog:

Re: [rules-users] Rule Modeling

2007-05-24 Thread Michael Neale
yes that was a deliberate decision at this stage. May reconsider if there is good reason. Its not something we want to expose directly in a GUI, at least not without some formula pallette to help people build and validate simple formula like expressions. On 5/23/07, Chris Woodrow [EMAIL

Re: [rules-users] Sudoku Example Errors

2007-05-24 Thread Michael Neale
Errors like that are not normal, and definitely indicates a bug (ie not a compile error or anything - not something you should have to debug). So some more information is needed like versions, how you are running it, where the example came from etc (as there are a few versions floating around).

[rules-users] RE: DSL OR DECISION TABLES

2007-05-24 Thread suma
Hi, Could u please help me with an Real time examples .Very Urgent Regards, suma Hehl, Thomas wrote: In my opinion, use a decision table if at all possible. They are easier to maintain and understand at a glance and can be reviewed by a power user instead of a programmer. I inject