On Fri, Mar 27, 2009 at 7:23 PM, Greg Barton <span dir="ltr">&lt;<a href="mailto:greg_barton@yahoo.com">greg_barton@yahoo.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
I&#39;m not sure about the rationale of the Drools devs, but I can give an example of that design pattern from another rules package.<br>
<br>
At my workplace (Southwest Airlines) we use Tibco BusinesEvents, and BE has the concept of Channels with Destinations that produce Events.  A Channel can be mapped to various message producers (we mainly use JMS topics and queues) and our internal event types are mapped to the message types inside the Destination.<br>

<br>
This design pattern can be useful because often data with the same format can come from different sources, and the application may want to react differently mattering on the source.  Also, there may be reasons you can&#39;t or don&#39;t want to include that source information in the data itself.<br>

<br>
For example, my current work deals with the airline&#39;s flight schedule, and reacting to daily changes in that schedule.  We get RouteChange messages from various sources. (Sometimes due to a flight cancellation, and other times due to a flight addition.)  We react differently to a RouteChange mattering on the reason, but the reason isn&#39;t encapsulated in the message, it&#39;s in the source.  Thus it&#39;s nice to have multiple WM entry points, as otherwise we&#39;d need yet another translation layer to inject a source marker into our RouteChangeEvent.<br>

</blockquote><div><br>This makes sense, and I was thinking that the Entry Point might leave its tracks in some org-drools.event.rule.*Event, bu tI couldn&#39;t find any reference to WorkingMemoryEntryPoint in any of these. So, is there a way of knowing the WMEP thorugh wich a fact has arrived?<br>
<br>-W<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
GreG<br>
<br>
--- On Fri, 3/27/09, Wolfgang Laun &lt;<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>&gt; wrote:<br>
<br>
&gt; From: Wolfgang Laun &lt;<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>&gt;<br>
&gt; Subject: [rules-users] org.drools.runtime.rule.WorkingMemoryEntryPoint<br>
&gt; To: &quot;Rules Users List&quot; &lt;<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>&gt;<br>
&gt; Date: Friday, March 27, 2009, 12:26 PM<br>
<div><div></div><div class="h5">&gt; Where would I find information about the rationale of having<br>
&gt; multiple named<br>
&gt; WM entry points?<br>
&gt;<br>
&gt; Thanks<br>
&gt; -W<br>
</div></div><div><div></div><div class="h5">&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<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>
</div></div></blockquote></div><br>