Thanks! I do not use the salience attribute in my rules.

-----Original Message-----
From: Matthew Shaw [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 30, 2005 3:02 PM
To: [email protected]
Subject: RE: [drools-user] recursive rule execution


Gang,

You can use a semaphore (check out the drools website doco) or
alternately, call the drools.modifyObject at the end of your consequence
block. As I mentioned this will cause all conditions to be re-evaluated.
This will depend on the fact you are inserting ofcourse. Do you also use
the salience attribute in your rules?

Cheers,
Matt.

-----Original Message-----
From: Chen Gang [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 30 November 2005 4:52 PM
To: [email protected]
Subject: RE: [drools-user] recursive rule execution


Hi Matt.

Thanks. But if I need certain conditions to be re-evaluated after
executing a consequence, what should I do then?

Regards,
Gang

-----Original Message-----
From: Matthew Shaw [mailto:[EMAIL PROTECTED]

Sent: Wednesday, November 30, 2005 2:44 PM
To: [email protected]
Subject: RE: [drools-user] recursive rule execution


Hi Geng,

it may be useful to check if your fact/facts are being modified by any
of the consequences. Calling drools.modifyObject will force all the
conditions to be evaluated again.

Cheers,
Matt.

-----Original Message-----
From: Chen Gang [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 30 November 2005 4:42 PM
To: [email protected]
Subject: [drools-user] recursive rule execution


Hi,




I got a problem regarding the recursive rule execution.




I first create a rule, and then set its noLoop attribute as true to
prevent the rule from being called recursively. But this seems not
effective. Is there any other procedure I should follow to achieve this?
Thank you!




Regards,

Gang


This correspondence is for the named persons only.

It may contain confidential or privileged information or both.

No confidentiality or privilege is waived or lost by any mis
transmission.

If you receive this correspondence in error please delete it from your
system immediately and notify the sender.

You must not disclose, copy or relay on any part of this correspondence,
if you are not the intended recipient.

Any opinions expressed in this message are those of the individual
sender except where the sender expressly,

and with the authority, states them to be the opinions of the Department
of Emergency Services, Queensland.

This correspondence is for the named persons only.

It may contain confidential or privileged information or both.

No confidentiality or privilege is waived or lost by any mis
transmission.

If you receive this correspondence in error please delete it from your
system immediately and notify the sender.

You must not disclose, copy or relay on any part of this correspondence,
if you are not the intended recipient.

Any opinions expressed in this message are those of the individual
sender except where the sender expressly,

and with the authority, states them to be the opinions of the Department
of Emergency Services, Queensland.

Reply via email to