<div dir="ltr">&nbsp;<br>&nbsp;&nbsp; Hi David, must have missed your previous e-mail.<br><br>* Where can we find a more detailed description of CEP functionality in<br>
drools?<br>&nbsp;&nbsp; Unfortunately we don&#39;t have proper documentation for CEP in Drools yet. General documentation about the subject can be found in a lot of places, but a good starting point is: <a href="http://www.complexevents.com">www.complexevents.com</a>.<br>
<br>
* Is it a good idea to use CEP for analyzing historic data (retrieved from<br>
the database)? or is it best for online data.<br>&nbsp;&nbsp; Usually CEP is used to match &quot;online **events**&quot; with &quot;historic **data**&quot;, but in the reality, in Drools you can assign event semantics to any type of fact, so it really depends on your problem domain and how you are modeling it.<br>
<br>* Can we use CEP in a stateless session?<br>&nbsp;&nbsp; Not sure it makes sense. Need to investigate that. CEP is usually about streams of events and ongoing event pattern detection, and so we are developing it for Stateful sessions.<br>
<br>
* As we understand, CEP attaches to each fact a temporal attribute of the<br>
assertion time. Can we define that a particular attribute (e.g.,<br>
LabResult.samplingDate) will be used as the time stamp? Or, should we assert<br>
the facts by their temporal order, and advance the session-clock<br>
appropriately?<br>&nbsp;&nbsp; Yes, just assign event semantics to your fact and declare its timestamp attribute:<br><br>declare LabResult<br>&nbsp;&nbsp; @role( event )<br>&nbsp;&nbsp; @timestamp( samplingDate )<br>end<br><br>
* Can we use CEP to analyze the data in the examples above?<br>&nbsp;&nbsp;
Well, you can, but is it the best tool for the job? Maybe yes, maybe no. Look at your case and read the quick list of itens that describe what means to assign and event semantic to your labresults. They will match I guess, but just make it sure. Otherwise, maybe what you need is best support for date constraints, and that is another subject.<br>
<br>&nbsp;&nbsp; Keep tunned. As the pieces start to come to their places now, we will be releasing more info on our CEP support.<br><br>&nbsp;&nbsp; Cheers,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Edson<br><br><br><div class="gmail_quote">2008/8/19 David Boaz <span dir="ltr">&lt;<a href="mailto:davidb@dbmotion.com">davidb@dbmotion.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Dear all,<br>
<br>
We posted this question two weeks ago, but with no replies. please forgive<br>
me for posting it again.<br>
<br>
In our business, most of the facts have time-stamp attributes. For example,<br>
each laboratory test (a fact) has the time stamp when the sample was taken,<br>
and when the machine produced the result value. In our business-logic, we<br>
often analyze the relation between facts using these attributes.<br>
<br>
For example:<br>
1) finding two adjacent labResults with an increasing value<br>
2) checking whether 3 facts are consecutive<br>
3) counting the number of facts fulfilling a specific constraint within a<br>
specific time window.<br>
<br>
We were happy to read (in the blog) about the new CEP feature which is about<br>
to be added to drools 5.0.<br>
<br>
* Where can we find a more detailed description of CEP functionality in<br>
drools?<br>
* Is it a good idea to use CEP for analyzing historic data (retrieved from<br>
the database)? or is it best for online data.<br>
* Can we use CEP in a stateless session?<br>
* As we understand, CEP attaches to each fact a temporal attribute of the<br>
assertion time. Can we define that a particular attribute (e.g.,<br>
LabResult.samplingDate) will be used as the time stamp? Or, should we assert<br>
the facts by their temporal order, and advance the session-clock<br>
appropriately?<br>
* Can we use CEP to analyze the data in the examples above?<br>
<br>
Many thanks for the help, David<br>
<font color="#888888">--<br>
View this message in context: <a href="http://www.nabble.com/CEP-functionality-tp19020709p19020709.html" target="_blank">http://www.nabble.com/CEP-functionality-tp19020709p19020709.html</a><br>
Sent from the drools - user mailing list archive at Nabble.com.<br>
<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>
</font></blockquote></div><br><br clear="all"><br>-- <br> Edson Tirelli<br> JBoss Drools Core Development<br> JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>
</div>