Hi Edson,
In the following part,
$person : ( Person( $id : id,
age > 35 | <25,
zipCode == "23546" | == "68570",
$lop : lastOrderPrice,
$ton : totalOrderNumber,
( $lop > 300 || $ton > 2 ))
Michael Neale was heard to exclaim, On 02/20/07 19:23:
> Dirk, it should be OK. As when you assert a fact with a change listneer
> (a dymanic fact) it should call the sync'ed modifyObject just like you
> would form the outside.
So under the hood, the effect of firePropertyChange() is that the obje
Hi Vlad,
I can certainly look at adding some extra config options to the listeners to
allow an end row/column to be specified. I'm not sure the other things would
be useful to many people (correct me if I'm wrong).
If you do go down the preprocessing option you could use JXL instead of POI
as yo
Dirk, it should be OK. As when you assert a fact with a change listneer (a
dymanic fact) it should call the sync'ed modifyObject just like you would
form the outside.
On 2/21/07, Dirk Bergstrom <[EMAIL PROTECTED]> wrote:
This horse has been beaten pretty hard
(http://thread.gmane.org/gmane.comp
org.drools.ide_1.0.0.jar ? This seems to be an old version. I would expect to
see org.drools.ide_3.0.5 there. But best way to install the JBoss Rules IDE
into eclipse is by using the update site and not download the plugin manually,
as explained in
http://labs.jboss.com/file-access/default/mem
no
Kevin J. Schmidt wrote:
Can a query in a rules file be used in the LHS of another rule?
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
Can a query in a rules file be used in the LHS of another rule?
--
Kevin J. Schmidt
<[EMAIL PROTECTED]>
In all affairs it's a healthy thing now and then to hang a question
mark on the things you have long taken for granted.
-Bertrand Russell
___
rules-
This horse has been beaten pretty hard
(http://thread.gmane.org/gmane.comp.java.drools.user/3557/focus=3585), but I
have a newish angle on it.
My app has a big collection of business objects (1000 of type X, 10,000 of type
Y, 200 of type Z, etc) asserted into a single working memory. These object
Well, probably to rephrase it, what is the status / thoughts on 'else'
construct for rules? Basically global 'logical' not for rules would be the
'else' branch of conditional statement (if DROOLS had one), correct? I've
read some postings regarding this shortly after I joined the list (ie,
around a
Dirk,
If you aren't sure, just stick with the Eclipse JDT one. If you have
problems with that switch to Janino. Both are embedded jars. Janino is
jdk1.4 only, Eclipse does jdk1.5.
Mark
Dirk Bergstrom wrote:
I do not understand the difference between the Janino and Eclipse options for
rules c
Marcus Ilgner was heard to exclaim, On 02/20/07 12:34:
> The biggest difference would be that Janino does not support language
> level 1.5.
That was a big factor for me, but I understood that "Eclipse" was only usable if
you were generating static rules (in the IDE) for later deployment. Now I'm
No, the "not" conditional element is an existential operator, so the
meaning is what you expressed in your first example. I thought that was
what you were looking for, but apparently it is not.
I never heard about any construction capable of doing what you are
asking for in a rules engine.
On 2/20/07, Dirk Bergstrom <[EMAIL PROTECTED]> wrote:
I do not understand the difference between the Janino and Eclipse options for
rules compilation. The documentation only says that there are two options, and
the javadocs don't really go any further. Can someone provide more detail?
My quest
I do not understand the difference between the Janino and Eclipse options for
rules compilation. The documentation only says that there are two options, and
the javadocs don't really go any further. Can someone provide more detail?
My questions include:
*) Why would I prefer one over the other?
So, if used like that, 'not' does not have 'existential' meaning then, but
simple 'negation'? I mean, the expression
not MyObject(field == 'value')
would still mean 'not exists', correct? Would the expression
not (MyObject(field == 'value'))
mean
MyObject(field != 'value')
then. In
Vlad,
In 3.1M1 you can write:
rule X
when
not (
MyObject( aaa == "bbb" ) and
MyObject2( bbb == "aaa" )
)
then
// do something
end
But remember that variables bound inside the "not" block are not avaible
in the consequence for obvious reasons.
[]s
Edson
Olenin, Vladimir (MOH) wrote:
Hi,
Hi,
I wonder if there is logical 'not' operator (in the meaning of "!=" -> 'not
equal') which can be applied to the whole rule? Eg:
Rule x
When
! (
MyObject(aaa == "bbb")
MyObject2(bbb == "aaa")
)
Then
// do smth
End
Basically I'm looking f
I am relatively new to Drools. In my case I need the
following jar files for running drools with rules
written in DRL.
drools-compiler-3.0.5.jar
drools-core-3.0.5.jar
commons-jci-core-1.0-406301.jar
commons-jci-eclipse-3.2.0.666.jar
commons-logging-api-1.0.4.jar
commons-lang-2.1.jar
core-3.2.0.666
Thanks, Oana. I think I'm finally starting to get a grip on this thing :-).
Vlad
_
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of nicolae oana
Sent: 20 February 2007 03:38
To: Rules Users List
Subject: Re: [rules-users] exists + normal column constraints - how
Hi, Steve.
That might help, though will require one 'external' run over the spreadsheet
(ie, open Excel through POI and read some column with rule template names)
or a separate config file which matches rules with appropriate templates.
Regarding the ExternalSheetListener constructor, is there
Niyas,
It is better to download the binary distribution containing the dependencies
too. There are all the jars you may needed.
Oana
Niyas <[EMAIL PROTECTED]> wrote: Hi all,
For using Drools Rule Engine, what are the jar are files required? I
have used Drools JBoss RUle Engine IDE in Eclis
Niyas,
This one seems to be a conflict when using JDT and tomcat. Look at
the JBoss Rules wiki that I believe someone posted a solution for that
there.
[]s
Edson
Niyas wrote:
Hi Edson,
Thanks for your reply.
Yes, you are correct and I have changed the operator ">" . But I am
get
Hi,
WIKI Knowledgebase have a solution for the error
like:org.eclipse.jdt.internal.compiler.CompilationResult.getProblems()[Lorg/eclipse/jdt/core/compiler/CategorizedProblem;
I have added the JANINO compiler in the PackageBuilderConfiguration in
the Java Code: But It's not resolving my problem a
Hi all,
For using Drools Rule Engine, what are the jar are files required? I
have used Drools JBoss RUle Engine IDE in Eclispe. Now I want to use
it without an IDE. So I want to know what are the required jar files:
1. drools-core.jar
2. drools-compiler.jar
3. drools-decisiontables.jar
4. drools
Hi Edson,
Thanks for your reply.
Yes, you are correct and I have changed the operator ">" . But I am
getting some other error now.
javax.servlet.ServletException: Servlet.init() for servlet insurance
threw exception
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja
Hi Niyas,
This is something I faced yesterday but did not had the time to work
on it yet. Basically, 2 problems:
1. Error message is crap... we need to improve that.
2. It should not be raising any error. The error means you have a String
attribute you are trying to compare using op
The XSD is out of date, it's normally in META-INF dir in
drools-compiler. I got stuck at the point of trying to make it work with
multi restrictiction connective field constraints work, so if anyone
wants to finish that work for me :) Likewise the XML Parser has not yet
been updated for any of
Vlad,
exists Person(role == "parent")
checks if in workingMemory is at least one Person fact having attribute role
== "parent", in both your examples.
Your reasoning is correct: the four facts with role =="child" will activate the
rule. So, the result for your second example will be the sam
Hi,
I'm searching for a new version of the XSD of Drools, a kind of "
drools-3.1.xsd" with the new operators' definitions (collect,
accumulate...).
I've seen that the M1 source package still contains the old version of this
XSD.
I'd like to know if a new version is available (and where i can find
I have tried of using the sample coding given the link given by you:
But i am getting the following error:
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'ruleBase' defined in ServletContext resource
[/WEB-INF/insurance-servlet.xml]: Initialization of bean f
Hi,
You do not have jdt.jar in your class path. It comes with the dependency
list. If you cannot find it, you can download it from here
http://repo1.maven.org/maven2/org/eclipse/jdt/core/3.2.0.666/core-3.2.0.666.jar
But I recommend you using the one that is coming with the dependency list.
/sume
31 matches
Mail list logo