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
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,
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
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
-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 )
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
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:
-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
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
-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
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
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
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
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
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
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
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
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
18 matches
Mail list logo