Re: [rules-users] Writing rules using java..

2007-03-02 Thread Mark Proctor
Just generate a drl from your model using a template langauge such velocity, freemarker or stringtemplate. you can generate and load the drl at runtime, this is what the decision table does. You can program agains the API yourself, but its quite complex, and certainly not recommended for a noob

[rules-users] Eclipse reports ExceptionInInitializer

2007-03-02 Thread S Reed
Eclipse is reporting an ExceptionInInitializer in my DRL file. Does anyone have an idea what might be causing this? Thanks in advance, Scott ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] confused again.... - why it selects all possible combinations? (D ROOLS 3.1M)

2007-03-02 Thread Olenin, Vladimir (MOH)
Hi, I finally got around to get my hands dirty. And I run into some problem. The results I'm getting are not the ones I expected to get :-). I have a rule: rule "FC.93" when r1: Record( psc == "101", fundType == "1", $pa1: pa == "7111010", sa matches "F1202[0-9]" )

[rules-users] Globals usage in functions and LHS ( when ... )

2007-03-02 Thread Sergio Szychowski
Hi, I try using globals in functions but I get un error, Exception in thread "main" org.drools.rule.InvalidRulePackage: Function Compilation error at org.drools.rule.Package.checkValidity(Unknown Source) at org.drools.common.AbstractRuleBase.addPackage(Unknown Source) at org.drools.e

[rules-users] Writing rules using java..

2007-03-02 Thread Kolla, Sandeep
Hi Rahul, Its not about storing the whole file into the database. I would have a Table representing the parameteres required to construct a rule. For example. Tables: RuleSetTable: Ruleset_id Ruleset_name RuleTable: Rule_id Rule_name Rule_saliance Rule_condition Rule_consequence Ruleset_id N

Re: [rules-users] Writing rules using java..

2007-03-02 Thread Rahul Phadnis
I may not be understanding your requirements but would storing the rule definition file in the database help. So you have file with all your rules and you store it in the database. At execution time you load the rules file and hence rules from the database. Rahul --- "Kolla, Sandeep" <[EMAIL PRO

RE: [rules-users] Rules with Lookup Tables...

2007-03-02 Thread Rahul Phadnis
Previously Edson had suggested using the "from" CE. Here is the example from his previous posting rule "Device not working (condition id = 4)" when alertDefinition : AlertDefinition (conditionID== 4, eid : entityID) Power( value < 1000 ) from dao.getPower( eid ) Temperature( deviceT

[rules-users] Writing rules using java..

2007-03-02 Thread Kolla, Sandeep
I am very new to rules engine. The requirement for our project is store and retrieve rules from the database.This makes the rules engine to directly interact with the Database, to do so is there any way that I can use the rules api to set the rules. For example something like Creating a rule. Rule

RE: [rules-users] Axis2 interop

2007-03-02 Thread Jones, Alan R
Hi, I am exposing a rule via an Axis2 1.0 web service. I have seen that the Drools jar files need to be in the axis2/WEB-INF/lib because for some reason they are not loaded from the deployed service archive. The problem I am having is that I get the following error message: Rule Compilation err

Re: [rules-users] retracting a fact after all interested rules have fired??

2007-03-02 Thread Francesco Campagnola
Hi, I have a similar problem, in particular I need that before retracting facts, all the interested rules have fired. How do you solved it? 2007/2/8, Justine Hlista <[EMAIL PROTECTED]>: Need some instruction for retraction strategies. We have an application that receives messages about the stat

Re: [rules-users] Rules with Lookup Tables...

2007-03-02 Thread Marcus Ilgner
On 3/2/07, Francisco Brum <[EMAIL PROTECTED]> wrote: I also need to make a rule with a lookup tables, and I have found that the new version of rules support 'from'. Another solution could be the the use of globals: http://labs.jboss.com/file-access/default/members/jbossrules/freezone/docs/3.0

Re: [rules-users] Using Java to write rules?

2007-03-02 Thread Marcus Ilgner
On 3/2/07, Aeinehchi Nader <[EMAIL PROTECTED]> wrote: I wonder if it is possible to write rules and make queries toward the knowledge database of Jboss Rules using Java language itself. What I need is to to be able to access the rule engine's API. I do not want to use Drools language or XML.

[rules-users] need help to convert .drl files to XML

2007-03-02 Thread Niloy Debnath
hi, how do i use xml tool and API's provided by JBOSS Rules to convert rule files (.drl) to xml files.I know schema definition for XML for representing the rules that already jboss has but i cant understand where i write my XML file and how to run that XML.I'm using Eclipse.Please help me.Its u

[rules-users] Using Java to write rules?

2007-03-02 Thread Aeinehchi Nader
I wonder if it is possible to write rules and make queries toward the knowledge database of Jboss Rules using Java language itself. What I need is to to be able to access the rule engine's API. I do not want to use Drools language or XML. Thanks > Vennlig hilsen/Best regards > Nader Aeinehchi

RE: [rules-users] Rules with Lookup Tables...

2007-03-02 Thread Francisco Brum
I also need to make a rule with a lookup tables, and I have found that the new version of rules support 'from'. The syntaxe it's something like: 'from' * http://jira.jboss.com/jira/browse/JBRULES-341 'from' allows the engine to reason over data not inside the engine, this can be u

RE: [rules-users] Rules with Lookup Tables...

2007-03-02 Thread Anstis, Michael \(M.\)
I don't have the syntax at hand but Edson has previously posted about using "from" in similar circumstances. This would allow you to access a lookup table on a database as part of the LHS of a rule. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of jdepaul