Today we are using Drools 4 and the gui for the rules.
The backend of the gui repository is in Oracle, and we backup the oracle db
each day.
But we also perform an export from the gui using the import/export function
to gather a known good repository.
In drools 4 we can use:
wget -O repository_e
Hi all again,
I am having a problem where the results of the rules is not consistent.
I am using rules flow and fireUntilHalt..
Here is most of my code: (expanding the default drools example)
private static KnowledgeBase readKnowledgeBase() throws Exception {
KnowledgeBuilder kbu
Ok, ignore this, found that previously the ^TEST never matched. Its just now
with fusion my rules are looping more.
Sorry to spam.
RichardA wrote:
>
> In drools5 I have taken the standard Eclipse demo project, and changed the
> Sample.drl to contain only the following:
>
In drools5 I have taken the standard Eclipse demo project, and changed the
Sample.drl to contain only the following:
package com.sample
import com.sample.DroolsTest.Message;
rule "Hello World"
when
m : Message( message not matches "^TEST" )
then
age.Message
so, its trying to load a class called "defaultPackage.Message"
which obviously isn't found..
richarda wrote:
>
> Yeah, its in the classpath.. and to be doubly sure just before the code I
> do a
> Message s=new Message();
> and that works.. so jvm can find the Message
the actual rules, etc...
>
>Edson
>
> 2009/11/25 richarda
>
>>
>> Also tried under 5.1.0M1 release.. same issue :(
>> Am i doing something wrong by declaring the @role in the Configuration
>> section?
>>
>>
>> richarda wrote:
>> &
Also tried under 5.1.0M1 release.. same issue :(
Am i doing something wrong by declaring the @role in the Configuration
section?
richarda wrote:
>
> Still trying to get this to work.
> I have managed to create from a default (new) guvnor setup.
>
> Steps I do..
> 1. Creat
.java:25)
at com.sample.DroolsTest.readKnowledgeBase(DroolsTest.java:69)
at com.sample.DroolsTest.main(DroolsTest.java:27)
richarda wrote:
>
> So, my code is doing this:
>
> KnowledgeBaseConfiguration conf =
> KnowledgeBaseFactory.newKnowledgeBaseConfiguration();
> conf.
Yes
Edson Tirelli-4 wrote:
>
>Do you have the import for your signature class?
>
> import my.package.Signature
>
> Edson
>
> 2009/11/24 richarda
>
>>
>> So, my code is doing this:
>>
>> KnowledgeBaseConfiguration conf =
&g
So, my code is doing this:
KnowledgeBaseConfiguration conf =
KnowledgeBaseFactory.newKnowledgeBaseConfiguration();
conf.setOption(EventProcessingOption.STREAM);
KnowledgeBuilder builder =
KnowledgeBuilderFactory.newKnowledgeBuilder();
try {
Fi
Hi,
I have some rules that include a class that I created.. part of that class
requires the Apache common library.
When I run Drools in my application it all works fine as the Apache jar
files are in my classpath.
However, when I try to setup in Guvnor I am getting errors that the
classpath i
I wish to have a rule that says, if I get one event, but not another one
after a period, then do something.
But I also want to only do this once..
So, I wrote the rules: (using the eclipse sample project)
declare Message
@role( event )
end
rule "Hello World"
when
to bring the engine to life again..
Is this correct?
richarda wrote:
>
> Hi all,
>
> I am stuck trying to understand how to setup my drools system..
>
> I am using Stream mode, with some negative rules, and a continuous stream
> of facts.
> Facts are evaluated and w
Hi all,
I am stuck trying to understand how to setup my drools system..
I am using Stream mode, with some negative rules, and a continuous stream
of facts.
Facts are evaluated and will in turn insert events into the memory if
required.
I thought it would be like this:
First, setup,
Knowledge
I wanted to post something I found in case others are scratching their heads
on this.
Drools Fusion user guide indicates:
2.8.2. Inferred expiration offset
Another way for the engine to calculate the expiration offset for a given
event is implicitly, by analyzing the temporal constraints in the
Thanks for all help.
To complete this thread, bug logged;
https://jira.jboss.org/jira/browse/JBRULES-2319
Edson Tirelli-4 wrote:
>
>Ouch. Bug. Would you please add a JIRA for that and a test case?
>
>Thanks,
>Edson
>
> 2009/10/29 richarda
>
>
Ok, I have found if I run in:
conf.setOption( EventProcessingOption.CLOUD );
it works..
but in
conf.setOption( EventProcessingOption.STREAM );
i get Null for the object
any idea why?
richarda wrote:
>
> Thanks for the continued help... but
>
> ---
>
a
> test, try replacing the query call with an arbitrary method call that
> returns a couple objects.
>
>Edson
>
>
>
> 2009/10/29 richarda
>
>>
>> Using Drools 5.0.1
>>
>> I get the same results with the below rule.
>> I leave the
m
> hibernateSession.createQuery("from MessageAsEvent where
> serial=?").setParameter(0,$m.serial).list()
>then
> insert($o)
>end
>
> In any case, collect should work too. Which version of drools are you
> using?
>
> []s
>
Hi again,
I wish to have a rule that when an Event has a certain uuid then load into
working memory all other events that have been received for this unit...
So I write the rule:
rule "Repeating"
when
$m : MessageAsEvent(uuid=="mesC:7")
$others : Linke
Thanks, it turns out my email post was correct and my code i was testing with
with different..
If I do,
$a : MyBean(name=="one");
not( MyBean(name=="two", this after [0s,10s] $a))
which means, item not received between 0 and 10 seconds
then it works as expected..
If I do
We are seeing a memory leak when running Drools 4.0.7 JBRMS
We have the JBRMS deployed and some package snapshots taken.
Seperately a client is running rulesAgent
ruleAgent= RuleAgent.newRuleAgent(agentProps);
with properties looking like:
url=http://...
poll=60
localCacheDir=...
It seems tha
22 matches
Mail list logo