Re: [rules-users] Declaring events separately from rules breaks expires

2011-02-14 Thread Wolfgang Laun
Template expansion is just text processing. Inserting some text into a template before expanding the modified template should be simple. And even an insertion after expansion is feasible for some of the expansion procedures. -W On 14 February 2011 12:26, jwillans2 wrote: > > The suggestion of p

Re: [rules-users] Declaring events separately from rules breaks expires

2011-02-14 Thread jwillans2
The suggestion of placing the type declarations in the template worked. However I am eager to find a solution where they can be defined independently without exhibiting the bug mentioned earlier in the thread? Thanks, James -- View this message in context: http://drools-java-rules-engine.4699

Re: [rules-users] Declaring events separately from rules breaks expires

2011-02-12 Thread jwillans2
Wolfgang - Thanks. I did try this and had issues which I don't remember the details of. I'll try again, however I would prefer to find a solution/work around that keeps these separate. James -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Declaring-events-

Re: [rules-users] Declaring events separately from rules breaks expires

2011-02-12 Thread Wolfgang Laun
There is no reason I know of why a template file should not contain any declares. -W On 12 February 2011 10:38, jwillans2 wrote: > > > Samuli Saarinen wrote: > > > > On 8.11.2010 16:43, Edson Tirelli wrote: > > > > https://jira.jboss.org/browse/JBRULES-2779 > > > > > > Hello, > > Is there any kn

Re: [rules-users] Declaring events separately from rules breaks expires

2011-02-12 Thread jwillans2
Samuli Saarinen wrote: > > On 8.11.2010 16:43, Edson Tirelli wrote: > > https://jira.jboss.org/browse/JBRULES-2779 > > Hello, Is there any known work around for this issue? I'm loading the Type Declarations first, putting both types and rules in the same package, but the @expires(..) is st

Re: [rules-users] Declaring events separately from rules breaks expires

2010-11-08 Thread Samuli Saarinen
On 8.11.2010 16:43, Edson Tirelli wrote: > Please open a JIRA. If it is not creating a new fact type, i.e., > only attaching metadata to existing types, it should either "merge" > metadata or raise errors. > > Also, documentation was not updated in that place. Can you mention > that please,

Re: [rules-users] Declaring events separately from rules breaks expires

2010-11-08 Thread Edson Tirelli
Please open a JIRA. If it is not creating a new fact type, i.e., only attaching metadata to existing types, it should either "merge" metadata or raise errors. Also, documentation was not updated in that place. Can you mention that please, as we need to fix as well. Explicit expiration polici

Re: [rules-users] Declaring events separately from rules breaks expires

2010-11-07 Thread Samuli Saarinen
Hi Edson, I dig this a little deeper and found out that event declaration in separate file works correctly if file declaring the event and file containing a rule using the event have the same package. Is there a reason it should work only within the same package or should I open a JIRA? Cheers

Re: [rules-users] Declaring events separately from rules breaks expires

2010-11-01 Thread Samuli Saarinen
On 1.11.2010 9:07, Wolfgang Laun wrote: > On 1 November 2010 07:45, Samuli Saarinen wrote: >> On 29.10.2010 19:18, Wolfgang Laun wrote: >>> If it were possible to enhance the very same class with different >>> metadata such >>> as @expires, I'd open a JIRA and call it a bug. >> >> Should declarin

Re: [rules-users] Declaring events separately from rules breaks expires

2010-11-01 Thread Wolfgang Laun
On 1 November 2010 07:45, Samuli Saarinen wrote: > On 29.10.2010 19:18, Wolfgang Laun wrote: >> On 29 October 2010 16:08, Samuli Saarinen > > wrote: >>     Further more if I declare the event in both of the files with different >>     @expires the one being used

Re: [rules-users] Declaring events separately from rules breaks expires

2010-10-31 Thread Samuli Saarinen
On 29.10.2010 19:18, Wolfgang Laun wrote: > On 29 October 2010 16:08, Samuli Saarinen > wrote: > Further more if I declare the event in both of the files with different > @expires the one being used is the one that is added first. I was hoping > that

Re: [rules-users] Declaring events separately from rules breaks expires

2010-10-29 Thread Wolfgang Laun
On 29 October 2010 16:08, Samuli Saarinen wrote: > Hello, > > Further more if I declare the event in both of the files with different > @expires the one being used is the one that is added first. I was hoping > that the first declaration to be a "default expires" that could be > overwritten later

Re: [rules-users] Declaring events separately from rules breaks expires

2010-10-29 Thread Edson Tirelli
Samuli, Are you adding your event declaration file before the rules that use them? As of today, you must always do that, but as long as you do, it should work even if they are in separate files. Regarding the update, it is not possible to do that today, but feel free to open a JIRA. I th

[rules-users] Declaring events separately from rules breaks expires

2010-10-29 Thread Samuli Saarinen
Hello, I have the following situation with Drools 5.1.1: 2 drl files where one contains an event declaration: declare Event1 @role(event) @expires(1s) end and other has a simple rule: rule "Evt1" when e: Event1(value == 10) then S