Can someone please answer my question?

 

Thanks.

 

From: Elran Dvir
Sent: Tuesday, October 22, 2013 3:35 PM
To: rules-users@lists.jboss.org
Subject: multiple expiration definitions for the same face type in different drl files

 

Hi all,

 

I am examining Drools Fusion in stream mode.

 

This is my case:

I have several drl files.

Each drl file contains one rule.

Each drl file is built to a knowledge package.

Each drl file contains declaration of the same fact (referencing to a imported class defined outside of the drl). The fact’s role is of course event.

 

Can I define different expiration (@expires) for the fact in each drl?

Is expiration relevant only to the same drl?

Is the answer different if the fact is created in the rule’s RHS or if it inserted to the session’s working memory outside of the drl?

 

Thanks.