Re: [drools-user] DroolsParserException

2006-10-25 Thread Mark Proctor
You can only put valid java inside a condition 'and' is not valid java. Mark J, Chandra Sekhar wrote: Hi, I am getting the following exception, when I try to read the rules ( which are defined in the xml file ) from my java program org.drools.compiler.DroolsParserException at

RE: [drools-user] DroolsParserException

2006-10-25 Thread J, Chandra Sekhar
Hi, I have replaced the line java:conditionmath.op1 0 and math.op2 0 /java:condition with java:condition math.getOp1() 0 /java:condition still I am getting the same exception Regards, chandu -Original Message- From: Mark Proctor [mailto:[EMAIL PROTECTED] Sent: Wednesday,

Re: [drools-user] Reloading of rule files dynamically

2006-10-25 Thread Tomasz Cichocki
Hi, I'm using jboss rules 3.0.4 and I have simillar problem. I have huge collection of facts in the working memory and those facts should be processed in stages. There are packages of rules for each stage. So I thought of following procedure: 0. get working memory from the rule base 1. assign

Re: [drools-user] DroolsParserException

2006-10-25 Thread Mark Proctor
you can't use in XML, escape it. Mark J, Chandra Sekhar wrote: Hi, I have replaced the line java:condition math.op1 0 and math.op2 0 /java:condition with java:condition math.getOp1() 0 /java:condition still I am getting the same exception Regards, chandu -Original

[drools-user] exists and bound variable constraints?

2006-10-25 Thread Andreas Langegger
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, the docs say: the not yet implemented Existential quantifiers [...] is supported with 'not' and 'exists' conditional elements. Hence, I tried to formulate a rule like that: when $r : Relation() $a : Attribute( relation == $r )

Re: [drools-user] exists and bound variable constraints?

2006-10-25 Thread Mark Proctor
You can use bound variables in an 'exists', you can't put an 'exists' inside of a 'not'. 'exists' and 'not' can only take Fact patterns as their children. Andreas Langegger wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, the docs say: the not yet implemented Existential quantifiers

RE: [drools-user] JRules causing coredump while compiling DRL

2006-10-25 Thread Schwenker, Stephen
Sorry. I meant Jboss Rules. I was just being lazy while typing it out. I found the problem with this anyway. There was a bug in the Sun JVM compiler that I was using. I updated from 1.5.0_6 to 1.5.0_9 and it worked. Thank you, Steve. From: Mark Proctor [mailto:[EMAIL PROTECTED] Sent:

Re: [drools-user] exists and bound variable constraints?

2006-10-25 Thread Andreas Langegger
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 thank you Mark. But how can I then negate the 3rd condition? This would mean drools cannot handle a logical forall with field constraints by negating applying De Morgan. How can I say, there must not be any InclusionDependency object with r1 == $r

Re: [drools-user] exists and bound variable constraints?

2006-10-25 Thread Edson Tirelli
Andreas, Not conditional element means Not exists... so just do: not InclusionDependency ( r1 == $r, a1 != $a ) []s Edson Andreas Langegger wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 thank you Mark. But how can I then negate the 3rd condition? This would mean drools

Re: [drools-user] exists and bound variable constraints?

2006-10-25 Thread Andreas Langegger
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 ah, sure ;-) thanks Edson, but it seems that my rule is even not what I want... actually I would need something like: $r : Relation() forall $a : Attribute( relation == $r ) { not InclusionDependency ( r1 == $r, a1 != $a ) } I know that

Re: [drools-user] exists and bound variable constraints?

2006-10-25 Thread Edson Tirelli
Andreas, I see.. forall conditional element is scheduled to be released in next version. Meanwhile, can you go with something like this? rule R1 when $r : Relation() $a : Attribute( relation == $r, evaluated == false ) InclusionDependency( r1 == $r, a1 != $a ) then $a.setNotOK( true

Re: [drools-user] exists and bound variable constraints?

2006-10-25 Thread Peter Van Weert
I haven't followed the discussion, but of the top of my head: isn't it so that a forall can always be written as a not exists not? Edson Tirelli schreef: Andreas, I see.. forall conditional element is scheduled to be released in next version. Meanwhile, can you go with something like

Re: [drools-user] Error with new dsl field constraint syntax

2006-10-25 Thread Michael Neale
yes the - is reserved for constraints, not for eval, Stephens suggestion looks good.yeah its a current restriction we will be getting rid of in a future version, for sure. On 10/25/06, Steven Williams [EMAIL PROTECTED] wrote: I don't believe you can use eval with column constraints (ie. with -). I

Re: [drools-user] Expression was not expandable with DSL Adding constraints to facts facility

2006-10-25 Thread Michael Neale
yes, and JIRA has been created... it will be fixed one day soon ;)On 10/25/06, Trevor Pocock [EMAIL PROTECTED] wrote:thanks, i now see this was already covered, i add a space after the - in the dsl T-To unsubscribe from this list

Re: [drools-user] Xml rules

2006-10-25 Thread Michael Neale
you can pass in a Dom object as a fact.On 10/24/06, gomez [EMAIL PROTECTED] wrote: Thank you.Do I have to use it in my .java file or my .drl one?And if I use it in the .java one,how do I call in the .drl the leafes I want to modify with my rules?I never used it,do you know where I could find some

Re: [drools-user] Deployment classloading issues

2006-10-25 Thread Michael Neale
looks like there is a conflict, not sure of an easy way to solve that one unfortunately. On 10/20/06, Leyzerzon, Simeon [EMAIL PROTECTED] wrote: Mike, We use drools 2.5. Version of JCI is commons-jci-SNAPSHOT20051110.jar. Thanks. -Original Message-From: Michael Neale

Re: [drools-user] EBNF for JBoss Rules...

2006-10-25 Thread Michael Neale
you can also use Antlrworks to get railroad diagrams at a low level. Antlr uses EBNF style notation, but its not a plain to read what I assume you are expecting ;)On 10/23/06, Mark Proctor [EMAIL PROTECTED] wrote: we use something like that to document the language, but we do not support

[drools-user] Using eclipse environment and gwt

2006-10-25 Thread Ramesh Bhaskar
Hi, I was just wondering if anyone has an idea on how to use drools along with gwt (google web toolkit) in eclipse? I know this isn't the right mailing list to post such a query to, but was wondering if anyone could help point me in the right direction. I know how to get them individually