<br>   Some answers:<br><br>*  &quot;do events in stream mode get automatic timestamps ?&quot;<br>   If a class is declared to fulfil an event role like bellow, it will have &quot;automatic timestamps&quot;. The timestamp will be based on a class attribute if you declare it so, or it will be based on current time of the session clock otherwise. Session clock can be a realtime clock or a pseudo clock. Check the documentation for details.<br>
<br>declare SomeClass<br>    @role( event )<br>    @timestamp( someAttribute ) // &lt;---- this is optional and causes the engine to use the attribute instead of the session clock as a timestamp reference<br>end<br><br>* do I need to change my Event class like in the broker example (in the way of
Event&lt;stockTick&gt; ) ?<br>   No. The reason for the example to use an Event interface is only because of the Event Generator that I implemented there. The engine itself has no requirements for such kind of interface and don&#39;t even care if you do.<br>
<br>* should I for every new event fireallRules ?<br>   
Depends on your application architecture and design. You might batch events and fire rules from time to time, or you might run fireUntilHalt() and keep inserting events. Remember there are some threading restrictions though that you must comply to (like max one thread per entry-point, etc).<br>
<br>* What about salience , where can I get documentation about it ?<br>   
Drools Fusion leverages all the features from Drools Expert. Check Drools Expert documentation.<br><br>   Edson<br><br><div class="gmail_quote">2009/12/16 Khalil Hafsi <span dir="ltr">&lt;<a href="mailto:hafsi@fzi.de">hafsi@fzi.de</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;">Hi Guys,<br>
<br>
I am using last version of fusion.<br>
<br>
do events in stream mode get automatic timestamps ? do I need to change<br>
my Event class like in the broker example (in the way of<br>
Event&lt;stockTick&gt; ) ?<br>
<br>
class Event{<br>
int symbol;<br>
int load;<br>
}<br>
<br>
say if I have a simple code :<br>
<br>
..drools initiation.. (stream mode)<br>
<br>
session.insert(event(1,10))<br>
session.insert(event(1,20))<br>
session.insert(event(1,30))<br>
<br>
should I for every new event fireallRules ?<br>
<br>
What about salience , where can I get documentation about it ?<br>
<br>
Thank you,<br>
h-<br>
<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>
</blockquote></div><br><br clear="all"><br>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>