Hi, Ansgar,<div><br></div><div>Thanks for your prompt response :) I was actually referring to enum literals. Now it works!</div><div><br></div><div>Thanks,</div><div>Martin<br><br><div class="gmail_quote">2011/10/22 Ansgar Konermann <span dir="ltr">&lt;<a href="mailto:ansgar.konermann@googlemail.com">ansgar.konermann@googlemail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><p><br>
Am 22.10.2011 20:28 schrieb &quot;Martin A&quot; &lt;<a href="mailto:wmlsub@gmail.com" target="_blank">wmlsub@gmail.com</a>&gt;:</p><div class="im"><br>
&gt;<br>
&gt; Hello,<br>
&gt;<br>
&gt; I try to put a condition in my LHS, such as:<br>
&gt;<br>
&gt; rule &quot;initial_playground_dialog&quot;<br>
&gt;     #agenda-group &quot;firstTimeUser&quot;<br>
&gt;     #salience 99<br>
&gt;     when<br>
&gt;         $gst : GameStateController(!hasEventOccurred(&quot;initial_playground_dialog&quot;))<br>
&gt;         $list : List()<br>
&gt;         $screen : FrontendScreen.PLAYGROUND<br>
&gt;     then<br>
&gt;        ....<br>
&gt; end<br>
&gt;<br>
&gt; where &#39;FrontendScreen&#39; is an enum and PLAYGROUND is its property. </div><p></p>
<p>Is it actually a property of an enum or rather one of the enum literals?</p>
<p>If it is actually a property, you will need to obtain an instance of the FrontendScreen enum first. If PLAYGROUND is actually an enum literal and you want to bind this literal to a variable, use:</p>
<p>$screen: FrontendScreen( this == FrontendScreen.PLAYGROUND )</p>
<p>Regards </p>
<p>Ansgar <br></p>
<p></p><div class="im">&gt; However I get a syntax error. What&#39;s the proper way to check for and assign such a session object?<br>
&gt;<br>
&gt; Any help is appreciated!<br>
&gt;<br>
&gt; Best regards,<br>
&gt; Martin<br>
&gt;<br></div>
&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a href="mailto:rules-users@lists.jboss.org" target="_blank">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>
&gt;<br>
<p></p>
<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></div>