According to the documentation you will need to create a declarative model to add the annotation @role(event) to your POJO.<br><br>If in doubt please consult the user guide - Chapter 4. Authoring Assets, 4.6.2 has the below)<br>
<br><div style="margin-left:40px">Complex Event Processing operators are also available when the Fact has been declared as an event. Refer to the &quot;Fact Model&quot; chapter of this user-guide for details on how to add annotations to your Fact model. Events have access to the full range of CEP operators; Date field-types are restricted to &quot;after&quot;, &quot;before&quot; and &quot;coincides&quot;.<br>
</div><br>Basically, you need to create a declarative type of the same name as your POJO and add the @role(event) to the declared type.<br><br>This is a requirement of Drools Expert (and documented in their corresponding user-guide too).<br>
<br>With kind regards,<br><br>Mike<br><br><div class="gmail_quote">On 15 May 2012 18:38, Carolina Pellecchia <span dir="ltr">&lt;<a href="mailto:carolina.pellecchia@gmail.com" target="_blank">carolina.pellecchia@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><font size="3" face="Times New Roman">

</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><span style="line-height:115%;font-family:&quot;Cambria&quot;,&quot;serif&quot;;font-size:12pt" lang="EN-US">Hi Mike,</span></p><font size="3" face="Times New Roman">

</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><span style="line-height:115%;font-family:&quot;Cambria&quot;,&quot;serif&quot;;font-size:12pt" lang="EN-US">first of all,
thank you for your suggestions.</span></p><font size="3" face="Times New Roman">

</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><span style="line-height:115%;font-family:&quot;Cambria&quot;,&quot;serif&quot;;font-size:12pt" lang="EN-US">I couldn&#39;t
understand a point: </span></p><font size="3" face="Times New Roman">

</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><span style="line-height:115%;font-family:&quot;Cambria&quot;,&quot;serif&quot;;font-size:12pt" lang="EN-US"><span>            </span>which are the steps </span><font size="3"><span lang="EN"><font face="Calibri">to follow in order </font></span><span style="line-height:115%;font-family:&quot;Cambria&quot;,&quot;serif&quot;;font-size:12pt" lang="EN"><span> </span></span></font><span style="line-height:115%;font-family:&quot;Cambria&quot;,&quot;serif&quot;;font-size:12pt" lang="EN-US">to expose POJO model as an event?</span></p>

<font size="3" face="Times New Roman">

</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><span style="line-height:115%;font-family:&quot;Cambria&quot;,&quot;serif&quot;;font-size:12pt" lang="EN-US">because when I
try to write a business rule with the guided editor, in my package, I couldn&#39;t
add a </span><span style="line-height:115%;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;font-size:10pt" lang="EN-US">CEP operator (</span><span style="line-height:115%;font-family:&quot;Cambria&quot;,&quot;serif&quot;;font-size:12pt" lang="EN-US"> I haven&#39;t a </span><span style="line-height:115%;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;font-size:10pt" lang="EN-US"><span> </span>&quot;clock&quot; icon).</span><span style="line-height:115%;font-family:&quot;Cambria&quot;,&quot;serif&quot;;font-size:12pt" lang="EN-US"></span></p>

<div><font size="3" face="Times New Roman">

</font><br>Regards</div><span class="HOEnZb"><font color="#888888"><div>Carolina Pellecchia<br></div></font></span><div class="HOEnZb"><div class="h5"><div class="gmail_quote">2012/5/15 Michael Anstis <span dir="ltr">&lt;<a href="mailto:michael.anstis@gmail.com" target="_blank">michael.anstis@gmail.com</a>&gt;</span><br>

<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">IIRC with 5.2 onwards, yes (definitely 5.3 onwards).<br><br>

You don&#39;t as such &quot;define&quot; temporal operators, but you can use those provided by Drools Fusion (CEP).<br><br>If using a POJO model make sure you have completed the necessary steps to expose it as an Event, as covered in the documentation.<br>


<br>If using a declarative model, make sure you have annotated it accordingly, as covered in the documentation.<br><br>With kind regards,<br><br>Mike<br><br><div class="gmail_quote"><div><div>On 15 May 2012 15:58, Carolina Pellecchia <span dir="ltr">&lt;<a href="mailto:carolina.pellecchia@gmail.com" target="_blank">carolina.pellecchia@gmail.com</a>&gt;</span> wrote:<br>


</div></div><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote"><div><div><font size="3" face="Times New Roman">

</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><span style="line-height:115%;font-family:&quot;Cambria&quot;,&quot;serif&quot;;font-size:12pt">Hi all</span></p><font size="3" face="Times New Roman">

</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><span style="line-height:115%;font-family:&quot;Cambria&quot;,&quot;serif&quot;;font-size:12pt">I have a new question. </span><span style="line-height:115%;font-family:&quot;Cambria&quot;,&quot;serif&quot;;font-size:12pt" lang="EN-US">How can I define a Temporal Operators in
GUVNOR?</span></p><font size="3" face="Times New Roman">

</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><span style="line-height:115%;font-family:&quot;Cambria&quot;,&quot;serif&quot;;font-size:12pt" lang="EN-US">I need to do something
like this:</span></p><font size="3" face="Times New Roman">

</font><p style="margin:0cm 0cm 10pt" class="MsoNormal"><span style="line-height:115%;font-family:&quot;Cambria&quot;,&quot;serif&quot;;font-size:12pt" lang="EN-US"><span>            </span>DoorOpeningEvent( this meets[25s]
$obs )</span></p><font size="3" face="Times New Roman">

</font><div style="margin:0cm 0cm 10pt" class="MsoNormal"><span style="line-height:115%;font-family:&quot;Cambria&quot;,&quot;serif&quot;;font-size:12pt" lang="EN-US">thank you and
kindly regards!</span></div><span><font color="#888888"><div style="margin:0cm 0cm 10pt" class="MsoNormal"><span style="line-height:115%;font-family:&quot;Cambria&quot;,&quot;serif&quot;;font-size:12pt" lang="EN-US">Carolina Pellecchia</span></div>



<font size="3" face="Times New Roman">

</font>
</font></span><br></div></div>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br>
<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br>
</div></div><br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br>