<br>   Chris,<br><br>   That is indeed missing in the public API. I am adding it as we speak, thanks for bringing that up:<br><br><a href="https://jira.jboss.org/jira/browse/JBRULES-2285">https://jira.jboss.org/jira/browse/JBRULES-2285</a><br>
<br>   Meanwhile, until we release the new version, the workaround is to downcast the interface:<br><br><p style=""><font color="black" face="Courier New" size="2"><span style="background: yellow none repeat scroll 0% 0%; font-size: 10pt; font-family: &quot;Courier New&quot;; color: black; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;">                              </span></font><b><font color="#7f0055" face="Courier New" size="2"><span style="background: yellow none repeat scroll 0% 0%; font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85); -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; font-weight: bold;">for</span></font></b><font color="black" face="Courier New" size="2"><span style="background: yellow none repeat scroll 0% 0%; font-size: 10pt; font-family: &quot;Courier New&quot;; color: black; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;">(WorkingMemoryEntryPoint entry : </span></font><font color="#0000c0" face="Courier New" size="2"><span style="background: yellow none repeat scroll 0% 0%; font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(0, 0, 192); -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;">session</span></font><font color="black" face="Courier New" size="2"><span style="background: yellow none repeat scroll 0% 0%; font-size: 10pt; font-family: &quot;Courier New&quot;; color: black; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;">.getWorkingMemoryEntryPoints()){</span></font><font face="Courier New" size="2"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></font></p>


<p style=""><font color="black" face="Courier New" size="2"><span style="background: yellow none repeat scroll 0% 0%; font-size: 10pt; font-family: &quot;Courier New&quot;; color: black; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;">                                    </span></font><font color="black" face="Courier New" size="2"><span style="background: silver none repeat scroll 0% 0%; font-size: 10pt; font-family: &quot;Courier New&quot;; color: black; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;">System</span></font><font color="black" face="Courier New" size="2"><span style="background: yellow none repeat scroll 0% 0%; font-size: 10pt; font-family: &quot;Courier New&quot;; color: black; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;">.</span></font><i><font color="#0000c0" face="Courier New" size="2"><span style="background: yellow none repeat scroll 0% 0%; font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(0, 0, 192); -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; font-style: italic;">err</span></font></i><font color="black" face="Courier New" size="2"><span style="background: yellow none repeat scroll 0% 0%; font-size: 10pt; font-family: &quot;Courier New&quot;; color: black; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;">.println(</span></font><font color="#2a00ff" face="Courier New" size="2"><span style="background: yellow none repeat scroll 0% 0%; font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255); -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;">&quot;entry point
stream: &quot;</span></font><font color="black" face="Courier New" size="2"><span style="background: yellow none repeat scroll 0% 0%; font-size: 10pt; font-family: &quot;Courier New&quot;; color: black; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;">
+ <br></span></font></p><p style=""><font color="black" face="Courier New" size="2"><span style="background: yellow none repeat scroll 0% 0%; font-size: 10pt; font-family: &quot;Courier New&quot;; color: black; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;">                                             ((InternalWorkingMemoryEntryPoint)entry).getEntryPoint().getEntryPointId());</span></font><font face="Courier New" size="2"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></font></p>


<p><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">                              }</span></font></p>

<font color="black" face="Courier New" size="2"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;"></span></font>Edson<br><br><br><br><br><div class="gmail_quote">2009/9/29 Chris Richmond <span dir="ltr">&lt;<a href="mailto:crichmond@referentia.com">crichmond@referentia.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;">








<div link="blue" vlink="purple" lang="EN-US">

<div>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Hello,</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">I am trying to determine, iterate the working memory streams
within my rule by doing the following:</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>

<p style=""><font color="black" face="Courier New" size="2"><span style="background: yellow none repeat scroll 0% 0%; font-size: 10pt; font-family: &quot;Courier New&quot;; color: black; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;">                              </span></font><b><font color="#7f0055" face="Courier New" size="2"><span style="background: yellow none repeat scroll 0% 0%; font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85); -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; font-weight: bold;">for</span></font></b><font color="black" face="Courier New" size="2"><span style="background: yellow none repeat scroll 0% 0%; font-size: 10pt; font-family: &quot;Courier New&quot;; color: black; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;">(WorkingMemoryEntryPoint entry : </span></font><font color="#0000c0" face="Courier New" size="2"><span style="background: yellow none repeat scroll 0% 0%; font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(0, 0, 192); -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;">session</span></font><font color="black" face="Courier New" size="2"><span style="background: yellow none repeat scroll 0% 0%; font-size: 10pt; font-family: &quot;Courier New&quot;; color: black; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;">.getWorkingMemoryEntryPoints()){</span></font><font face="Courier New" size="2"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></font></p>


<p style=""><font color="black" face="Courier New" size="2"><span style="background: yellow none repeat scroll 0% 0%; font-size: 10pt; font-family: &quot;Courier New&quot;; color: black; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;">                                    </span></font><font color="black" face="Courier New" size="2"><span style="background: silver none repeat scroll 0% 0%; font-size: 10pt; font-family: &quot;Courier New&quot;; color: black; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;">System</span></font><font color="black" face="Courier New" size="2"><span style="background: yellow none repeat scroll 0% 0%; font-size: 10pt; font-family: &quot;Courier New&quot;; color: black; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;">.</span></font><i><font color="#0000c0" face="Courier New" size="2"><span style="background: yellow none repeat scroll 0% 0%; font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(0, 0, 192); -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; font-style: italic;">err</span></font></i><font color="black" face="Courier New" size="2"><span style="background: yellow none repeat scroll 0% 0%; font-size: 10pt; font-family: &quot;Courier New&quot;; color: black; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;">.println(</span></font><font color="#2a00ff" face="Courier New" size="2"><span style="background: yellow none repeat scroll 0% 0%; font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255); -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;">&quot;entry point
stream: &quot;</span></font><font color="black" face="Courier New" size="2"><span style="background: yellow none repeat scroll 0% 0%; font-size: 10pt; font-family: &quot;Courier New&quot;; color: black; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;">
+ entry.toString());</span></font><font face="Courier New" size="2"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;"></span></font></p>

<p><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">                              }</span></font></p>

<p><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;"> </span></font></p>

<p><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">But I can find
no method/way to finid the actual text name of the entry point(what is written
in the rule as from entry-point “xxxx”).</span></font></p>

<p><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;"> </span></font></p>

<p><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;"> </span></font></p>

<p><font color="black" face="Courier New" size="2"><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;"> </span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Is there a way to do this?  To list the readable names
of the entry points from your session?  I would like to list those entry
points in a drop down as application profiles, so if they have one selected,
one entry point of rules will be inserted to and so on..</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Thanks,</span></font></p>

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p><font color="#888888">

<p><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Chris</span></font></p>

</font></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><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>