I've been thinking about this too, although I idea I had was for a
default field.
List( 5 ) from collect( Bus( color == red ) )
So we could define default fields that can be used in the way you said.
Open a jira and we'll consider this for the next major release.
Mark
Godmar Back wrote:
If
Hi Michael,
Can you please provide some code sample for building rule with API.
Regrads,
Abhi...
Anstis, Michael (M.) wrote:
I recall reading other users building rules with the API.
But it is not something I have any experience of.
Sorry.
-Original Message-
From: [EMAIL
/pipermail/rules-users/attachments/20071004/90322891/smime-0001.bin
--
Message: 3
Date: Thu, 4 Oct 2007 18:46:10 +0530
From: [EMAIL PROTECTED]
Subject: [rules-users] Fucntion call in rule
To: rules-users@lists.jboss.org
Message-ID:
[EMAIL PROTECTED]
Content-Type: text
For those of you that speaks Portuguese, here are the slides I used in
yesterday's presentation at Just Java 2007 Conference in Brazil.
http://blog.athico.com/2007/10/just-java-2007-slides.html
[]s
Edson
--
Edson Tirelli
Software Engineer - JBoss Rules Core Developer
Office:
/rules-users
-- next part --
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4159 bytes
Desc: not available
Url :
http://lists.jboss.org/pipermail/rules-users/attachments/20071004/90322891/s
mime-0001.bin
Hello,
Does anyone know why rule GoodBye2 below does not compile, but rule
GoodBye1 does compile using Drools 4.0.0? The only difference is the
not. Shouldn't this be valid?
Thanks,
-Chris
package com.sample
import com.sample.DroolsTest.Message;
import com.sample.DroolsTest.Foo;
import
As always with XML. First do it in DRL, when that works us the XMLDumper
to get the working XML out. This should provide you everything you know.
Mark
[EMAIL PROTECTED] wrote:
Hi
I wrote a function in my rule file *boolean test(String name) *and
when i use this function in the lhs/lhs
part
What if you try not (Foo(id == 10) from $foos)?
_
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chris West
Sent: 04 October 2007 16:59
To: Rules Users List
Subject: Re: [rules-users] using from with not
It does not compile. The error is:
unknown:32:20 mismatched
That makes it compile, but during the run I get:
java.lang.NullPointerException
at org.drools.reteoo.builder.BuildUtils.createBetaNodeConstraint(
BuildUtils.java:168)
at org.drools.reteoo.builder.GroupElementBuilder$NotBuilder.build(
GroupElementBuilder.java:231)
at
From the manual:
A not statement must be followed by parentheses around the pattern that it
applies to. In the simplest case of a single pattern (like below) you can
omit the parentheses.
We improved the docs for the next version. Hope it is clearer now. But
Michael got it right.
[]s
Ok, the parenthesis makes sense.
But when I enclose the pattern as Michael suggested, it gets a runtime error
trying to parse. I attached a sample project illustrating this in an
earlier response. So isn't there still a problem?
-Chris
On 10/4/07, Edson Tirelli [EMAIL PROTECTED] wrote:
Thank you for the snapshot build. It does seem to fix the problem (and also
the bugs you mentioned you fixed).
-Chris
On 10/4/07, Edson Tirelli [EMAIL PROTECTED] wrote:
Chris,
I just tested your example and it works fine in 4.0.2.SNAPSHOT. We
fixed a long list of bugs from 4.0.0
With 4.0.2, I know of no showstopper bugs. But until Edson gave me the
SNAPSHOT build today, I did not have 4.0.2.
Thanks,
-Chris
On 10/4/07, Mark Proctor [EMAIL PROTECTED] wrote:
we still have bugs which stop you upgrading?
Mark
Chris West wrote:
Attached is the eclipse project that
Hello,
I'm building a rule structure (drl) from scratch. My first idea was to make
a drl with it's corresponding dsl like: Geral.drl - Geral.dsl. But I saw
some other kind of structures, like brl files and now I'm not sure what to
use.
If you guys could send me some some examples of working
14 matches
Mail list logo