http://term.minimalminimall.com
Mike Reynolds
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
http://project.peterazen.com
Bobby Nick
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
http://wow.jxchsoft.com
Tim Arnold
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
Hi,
I am implementing rules engine into my project, I have been referring the many
technical resources about jboss drools.
I did implement some set of rules which are much more needed for my project.
All of a sudden after I placed all the rules in the spreadsheet(.xls) file, and
executed it,
kons...@gmail.com
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
hi,
i have the following rule file :
rule size
when
$p: RuleContext($size: getOldContext().getParent().getUsableSpace()
(30*1024*1024))
then
Event event = new Event(folder almost full,
$p.getOldContext().getParent(), new Date());
event.display();
end
im loading this rule file and
Assuming Event has a field called context (which is set by the
constructor you use in your RHS):-
when
$p: RuleContext($size: getOldContext().getParent().getUsableSpace()
(30*1024*1024))
* not Event( context == $p.getOldContext().getParent());*
then
Event event = new Event(folder almost
no...Event doesnot have context field
On Mon, Mar 17, 2014 at 3:07 PM, Michael Anstis michael.ans...@gmail.comwrote:
Assuming Event has a field called context (which is set by the
constructor you use in your RHS):-
when
$p: RuleContext($size: getOldContext().getParent().getUsableSpace()
What field do you set in the constructor then?
new Event(folder almost full,* $p.getOldContext().getParent()*, new
Date());
Whatever field this is you should check in the LHS with the not
Event() - this ensures the rule only activates if there isn't an Event
already for the RuleContext.
On
yeah.. i understood what u meant.. i tried it.. but still problem is not
solved.. the Event object is created everytime
On Mon, Mar 17, 2014 at 3:11 PM, Sandhya Sree sandhyachinna...@gmail.comwrote:
no...Event doesnot have context field
On Mon, Mar 17, 2014 at 3:07 PM, Michael Anstis
Above all, realize that only facts *insert*-ed into Working Memory can
be taken into account by rules. So, first thing, insert the Event in rule
size. Then you can, basically, write a rule like this:
rule size
when
$p: RuleContext($size: getOldContext().getParent().getUsableSpace()
Can you please elaborate about why do you want to do that? what's the point
of having a list inside of the Event class that will contain the same event?
The Then side of the rule is pure java.. so you just do
event.getEvents().add(event);
but I don't see the point of doing that.
Regards
On
Actually, il have to use this ListEvent in another class and then print
listEvent after every rule execution cycle.
On Mon, Mar 10, 2014 at 4:05 PM, Mauricio Salatino sala...@gmail.comwrote:
Can you please elaborate about why do you want to do that? what's the
point of having a list inside of
Seeing that the list is static you can use the usual way for accessing
a static class member:
Event.listOfEvent.add( ... );
@Mauricio: It's not unusual to maintain a static collection (even
though there may be better ways, esp. with Drools).
On 10/03/2014, Mauricio Salatino
im getting the following error on doing that
Exception in thread pool-2-thread-1 Exception executing consequence for
rule size in com.net: java.lang.NullPointerException
what might be the problem?
On Mon, Mar 10, 2014 at 4:16 PM, Wolfgang Laun wolfgang.l...@gmail.comwrote:
Seeing that the
Please copy the entire stack trace.. what you have copied doesn't mean
anything besides that there is something wrong.
On Mon, Mar 10, 2014 at 1:29 PM, Sandhya Sree sandhyachinna...@gmail.comwrote:
im getting the following error on doing that
Exception in thread pool-2-thread-1 Exception
Exception in thread pool-2-thread-1 Exception executing consequence for
rule size in com.net: java.lang.NullPointerException
at
org.drools.runtime.rule.impl.DefaultConsequenceExceptionHandler.handleException(DefaultConsequenceExceptionHandler.java:39)
at
If the list inside Event has never being initialised it will throw a null
point exception.. so you need to make sure that the list
is initialised properly.
Regards
On Mon, Mar 10, 2014 at 1:43 PM, Sandhya Sree sandhyachinna...@gmail.comwrote:
Exception in thread pool-2-thread-1 Exception
Thanks :)
i got it :-)
On Mon, Mar 10, 2014 at 7:18 PM, Mauricio Salatino sala...@gmail.comwrote:
If the list inside Event has never being initialised it will throw a
null point exception.. so you need to make sure that the list
is initialised properly.
Regards
On Mon, Mar 10, 2014 at
Initializing references to objects is always a good idea to avoid NPE.
-W
On 10/03/2014, Sandhya Sree sandhyachinna...@gmail.com wrote:
im getting the following error on doing that
Exception in thread pool-2-thread-1 Exception executing consequence for
rule size in com.net:
you have a new private message from close friendCLICK HERE TO SHOW EMAIL
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
http://trespassagain.com/CISTERCIAN_WILDERNESS/_notes/q5tcdl4x.php___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
Scenario:
5.3.0, STREAM, fireUntilHalt() run in separate thread, AlertEvent events
inserted every 1 or two seconds.
The following rules should retract ClusterLink facts referencing the
AlertCluster that is
selected by the DissolveCluster fact. As soon as there is no such
ClusterLink any
more, the
--
Thanks,
Mani
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
http://root256.com/wordpress/wp-content/themes/default/googlemail.html___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
g.christabe...@gmail.com
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
Hello every body !
I'm a new drools Fusion user, And I'm now facing a real problem which
is that my events attriutes values doesn't go to starttimestam and
endtimestamp, I explain :
when declaring a new event
declare Evenement
@role(event)
@startimestamp(attr1)
@endtimestamp(attr2)
If you look at the implementation of EventFactHandle.getEndTimestamp
(not ...eSt...) you'll see why: it returns startTimestamp + duration.
You should *not* use methods that aren't in the stable part of the Drools API.
Also, the documentation does not tell you that you can map event
attributes
-users-no-subject-tp3772684p3773092.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
According to the documentation:
Rule constraints do not have direct access to variables defined inside the
process.
It is however possible to refer to the current process instance inside a
rule constraint,
by adding the process instance to the Working Memory and matching for the
process
I had some tests working fine in jbpm 5.1 but failing in 5.3 because of
this same reason. I'm not sure if this is this is a regression bug or if
there is a deliberated change in the behavior.
Maybe someone in the jbpm dev team can shed some light here.
Best Regards,
We're using 5.2.0 final here.
What we are also observing is that whenever a process instance reaches a
businessruletask node the rule gets fired a number of times equal to the
number of instantiated processes even if any of those processes didn't
reach the bussinessruletask node.
Does this means
The behavior you described is how it is working in 5.3 (and it seems 5.2
too). The rule is fired once per process instance you have in your working
memory no matter if the others instances are, are not yet or even has
already been in that Rule Task Node. Again, I'm not sure if this is a
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
Unit Test (droolsjbpm-ide-common)
org.drools.ide.common.server.util.BRLPersistenceTest.testRoundTrip()
performs what you are attempting too. This test passes.
I am still uncertain why you reference org.drools.brms packages in your
import statements. What version of Drools are you using?
I use version drools-core5.2.0 and drools-compiler 5.2.0
In fact I created my business rules with the guided rule . it generates
automatically a. Brl.
I want to convert it to .drl me to build my package builder.
Paris
___
rules-users mailing list
Of AZZAZ mohamed
Sent: 16 September 2011 10:12
To: Rules Users List
Subject: Re: [rules-users] (no subject)
I use version drools-core5.2.0 and drools-compiler 5.2.0
In fact I created my business rules with the guided rule . it generates
automatically a. Brl.
I want to convert it to .drl me
What JARs are you using then?
We don't have a class org.drools.brms.server.util.BRDRLPersistence only
org.drools.ide.common.server.util.BRDRLPersistence in
droolsjbpm-ide-common-5.2.0.Final.jar
2011/9/16 AZZAZ mohamed azz...@gmail.com
I use version drools-core5.2.0 and drools-compiler 5.2.0
I use org.drools.brms.server.util.BRDRLPersistence;
I'm confused that's two days that I blocked, especially since I'm new in
BRMS. So if you have a more accurate method to start I would be grateful
___
rules-users mailing list
OK, let's step back a bit.
What are you trying to achieve?
Do you *want* the DRL text, or do you want to load a BRL rule?
Where did you get the BRL rule from, normally rules are authored in DRL (in
which case you'd use KnowledgeBuilder, as in all the examples) or in Guvnor
(in which case using
My mini project
I try to express business rules using the resources of java object.
that's why I encode two classex Car and Driver and I apply a business rule to
see if it can besecured like this (example): if the driver's age 25 and the
make of car! = BMW then will not be provided
I use to
Support for the BRL editor in Eclipse was dropped as from 5.2.0, so I assume
you are not using the Eclipse Plugin for 5.2 - in which case backward
compatibility cannot be guaranteed. See the release notes for details.
The WebDav interface in Eclipse is probably most suitable for your needs.
You
Hi,
i have this exception every time i'm used drools 5.2 final wiht jdk 1.6,
eclipse 3.4. I configured correctly the classpath.
java.lang.RuntimeException: org.drools.compiler.DroolsParserException:
java.lang.IllegalArgumentException: Unable to instantiate service for Class
Hi,
I want to convert my file. brl to file. drl. I have this exception. does
anyone has an idea (solution)
thank you in advance
Caused by: com.thoughtworks.xstream.converters.ConversionException:
metadataList : metadataList : metadataList : metadataList
Debugging information
message
Was your BRL generated from the same version of Guvnor as you are trying to
de-serialise?
The XStream error you show normally happens when there has been a change to
the Object model from which the XML was created and the model to which you
are trying to hydrate.
2011/9/15 AZZAZ mohamed
Hi,
Yes i use the same version for drools and guvnor 5.1
2011/9/15 Michael Anstis michael.ans...@gmail.com
Was your BRL generated from the same version of Guvnor as you are trying to
de-serialise?
The XStream error you show normally happens when there has been a change to
the Object model
I note XStream is expecting
org.drools.brms.client.modeldriven.brl.RuleModel on the classpath.
Guvnor (Community version) uses
org.drools.ide.common.client.modeldriven.brl.RuleModel.
Is there something you are not telling us?
2011/9/15 AZZAZ mohamed azz...@gmail.com
Hi,
Yes i use the same
I added all necessary jar in the classpath.
Here is an excerpt from my code:
Just for information I am beginner in BRMS
/**
*
*/
package fr.dto;
import java.io.*;
import javax.swing.Box.Filler;
import org.apache.commons.io.FileUtils;
import org.drools.RuleBase;
import
as well, but this is what the
error
message is stating.
Regards,
Frank
--
View this message in context:
http://drools.46999.n3.nabble.com/rules-users-no-subject-tp3280773p3280800.html
Sent from the Drools: User forum mailing list archive at Nabble.com
I am new to drools and I would like to download the binaries and try
some of the examples. However, when I click on the download like of the
Drools binaries the screen goes dim and nothing happens. Would someone
please explain to me what is going on and what I should do to get the
binaries?
Please retry - I think the update happened 10mins ago. Working for me now.
-W
2011/3/8 Billy Buzzard billy.buzz...@bnsflogistics.com
I am new to drools and I would like to download the binaries and try some
of the examples. However, when I click on the download like of the Drools
binaries
right clic on it and save link as?
2011/3/8 Billy Buzzard billy.buzz...@bnsflogistics.com
I am new to drools and I would like to download the binaries and try some
of the examples. However, when I click on the download like of the Drools
binaries the screen goes dim and nothing happens.
A left click is OK, too; then continue download.
-W
2011/3/8 Eddy Hautot eddyhau...@gmail.com
right clic on it and save link as?
2011/3/8 Billy Buzzard billy.buzz...@bnsflogistics.com
I am new to drools and I would like to download the binaries and try
some of the examples. However,
i said that because i had the exact same problem these last 2 days. had to
do a right clic and save link as.
Now it's reworking with left clic/continue download :-)
2011/3/8 Wolfgang Laun wolfgang.l...@gmail.com
A left click is OK, too; then continue download.
-W
2011/3/8 Eddy Hautot
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
Hi All
I am new to drools and have started with Drools Guvnor . I am trying to
create DSL based on the sample examples in guvnor.
I have Customer as declarative fact model and 2 fields within it
totalItenmsPrice (integer) and discount(boolean)
I have created a DSL which contains the below
I have 4 drl files in my app. Loading all the 4 files during application
startup.
If any rule is satisfied in File 1,I don't want File 2 be called.Should
execute File 3 and 4.
If rules in File 1 is not satisfied,want to call File 2 then File 3 and 4.
At present I am doing this way.Please let me
Best to specify all conditions in full, with all relevant properties,
i.e., add sale != Junion/Senior in rules 2 and 4.
-W
On 11/23/09, Lindy hagan lindyha...@gmail.com wrote:
I have 4 drl files in my app. Loading all the 4 files during application
startup.
If any rule is satisfied in File
I have around 8 to 9 conditions. Around 12 rules in each drl file(files
rules will grow). This will make rule file complicated.
On Mon, Nov 23, 2009 at 1:19 PM, Wolfgang Laun wolfgang.l...@gmail.comwrote:
Best to specify all conditions in full, with all relevant properties,
i.e., add sale !=
SUMMARY:
I am getting a NPE when using modify() with a JavaBean that implements
PropertyChangeSupport.
I have included the original source and a proposed fix. Stack trace is also
included.
This applies to Drools 5.0.1, and has been verified to also be a problem for
5.1.0.M1.
DETAIL:
I
Have you thought about using ruleflow to control the execution of the
rules? I'm guessing you could easilycontrol the decision tree type
behaviour you're describing.
Nick
Lindy hagan wrote:
I have around 8 to 9 conditions. Around 12 rules in each drl
file(files rules will grow). This will
] On Behalf Of Steve Ronderos
Sent: Wednesday, September 30, 2009 12:53 PM
To: rules-users@lists.jboss.org
Subject: [rules-users] (no subject)
Hello Drools Users,
I've been looking into why Drools 5 is logging debug and info messages
to System.out in my app and trying to figure out how
-boun...@lists.jboss.org wrote on 10/01/2009 10:30:58 AM:
[image removed]
Re: [rules-users] (no subject)
Pegram, Macon
to:
Rules Users List
10/01/2009 10:34 AM
Sent by:
rules-users-boun...@lists.jboss.org
Please respond to Rules Users List
What you need to do
Hello Drools Users,
I've been looking into why Drools 5 is logging debug and info messages to
System.out in my app and trying to figure out how to make it stop. It
looks like the SystemEventListener that the SystemEventListenerFactory
returns is a DelegatingSystemEventListener that delegates
Functions on the LHS are not advised and says so in the drools user guide.
I can think of two ways to do this (forgive me if my syntax is slightly off).
Way number 1
rule ProductDescription validation
when
$listing : Listing( $description:productDescription != null,
A returnValue restriction takes the form
field relop ( expression )
(homeHalfTimeScore + awayHalfTimeScore) 0
=
homeHalfTimeScore ( - awayHalfTimeScore )
-W
On 9/4/09, Zevenbergen, Alex azevenber...@paddypower.com wrote:
Hi all,
This rule clause fails to evaluate, I am
Hi,
I am new to Drools. Can anyone help me with an example of Drools in
jsp/servlets.
Thanks,
Nilima Rajendra Raichandani
Tata Consultancy Services
Mailto: nilim...@tcs.com
Website: http://www.tcs.com
Experience certainty. IT Services
chandana.pin...@intunity.com.au
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
while using xml file i am getting this error
Cannot find the declaration of element 'rule-set'.
Exception in thread main org.drools.compiler.DroolsParserException
at org.drools.compiler.PackageBuilder.addPackageFromXml(Unknown Source)
Hi all,
I'm having an issue with my rule and Drools 4.0.4. The object that my rule is
supposed to reason over has nested objects and Drools does not appear to be
reasoning over it when I modify attributes. I've pasted the rule at the end of
the e-mail. I am attempting to change the value of
Hi,
I need to have two objects of the same class present in the working
memory at the same time. Both objects can have other nested objects of
different classes.
The reason is I need to compare data change b/w two objects. E.g;
originalObject_A.getPersonTO().getAge() !=
Hi
I am using Drools 3.0 in our business logic. I need help in the below situation
Right now i am done with writing .drl files.but the problem is that my rules
should be read from the Database.
For example i have to write rule for a leave application.I am using Drools 3.0
and writing rules.In
Hi
I am using Drools 3.0 in our business logic. I need help in the below situation
Right now i am done with writing .drl files.but the problem is that my rules
should be read from the Database.
For example i have to write rule for a leave application.I am using Drools 3.0
and writing rules.In
Hi
I am using Drools 3.0 in our business logic. I need help in the below situation
Right now i am done with writing .drl files.but the problem is that my rules
should be read from the Database.
For example i have to write rule for a leave application.I am using Drools 3.0
and writing rules.In
Hi,
I dont know if this is for User or for developer list, but Im
having problems with dsl expanders on drl file. Using
3.1 M1 plugin and 3.1 M1 core (all with deps) a simple example using
a .dsl expander file compile and fire rules,
but doesnt activate any. The same example not using
75 matches
Mail list logo