Hi, Michael
Could you tell me how to add rules in one drl file without reload this
drl file? because it`s very slow, reload 1000 rules need 68 second.
Drl file:
package com.datangmobile.rules
import com.datangmobile.rules.alarm;
rule alarmfilter0
when
alarm(objtype==1,alarmlevel==1,alarmtype==2,dn matches "rnc.*")
then
alarm.setFiltercounter();
end
...
rule alarmfilter999
when
alarm(objtype==1,alarmlevel==1,alarmtype==2,dn matches "rnc.*")
then
alarm.setFiltercounter();
end
-----邮件原件-----
发件人: Michael Neale [mailto:[EMAIL PROTECTED]
发送时间: 2006年5月1日 7:36
收件人: [email protected]
主题: Re: [drools-user] Question: implement Dynamic runtime addition and removal
of rules
I think it should merge them all together, I believe there should be no
issue (but not sure from experience).
On 4/29/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> Yes, you are right, I want to add and remove rules in a drl, not generate
> another drl again.
>
> -----邮件原件-----
> 发件人: Michael Neale [mailto:[EMAIL PROTECTED]
> 发送时间: 2006年4月29日 15:09
> 收件人: [email protected]
> 主题: Re: [drools-user] Question: implement Dynamic runtime addition and
> removal of rules
>
> I am not quite sure what you mean, but do you mean that say you have a drl
> file with 5 rules, and later you want to make it 6 rules?
>
> On 4/29/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> >
> > Ok, I see the example,thank you.
> > but the example implement dynamic addition and removal rules with many
> drl
> > files,
> > May I add rule in one drl file?
> > RuleBaseImpl Class provide addRule method, would you please tell me how
> to
> > use it?
> >
> > Regards,
> > wangwei
> >
> > -----邮件原件-----
> > 发件人: Michael Neale [mailto:[EMAIL PROTECTED]
> > 发送时间: 2006年4月29日 11:24
> > 收件人: [email protected]
> > 主题: Re: [drools-user] Question: implement Dynamic runtime addition and
> > removal of rules
> >
> > In the IntegrationCases class, you can see testDynamicAddition,
> > testDynamicRemoval examples - they are part of the test suite.
> >
> > On 4/29/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > Thanks Michael, but I could not find the example from jboss web. Could
> > you
> > > help me? My project need this function.
> > >
> > > Regards,
> > > Wangwei
> > >
> > >
> > > test_DynamicRules... examples in the integration tests show how its
> > done.
> > >
> > > On 4/28/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Dear user group:
> > > >
> > > > I was failed in implement Dynamic runtime addition and
> removal
> > > of
> > > > rules.
> > > > I didn`t know how to do it, Is there be some full example ?
> > > > I'm eager for your help.
> > > >
> > > > Thanks
> > > > wangwei
> > > >
> > > >
> > > >
> > >
> >
>