<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.14.3">
</HEAD>
<BODY>
Eh, I need a marker fact that identifies if a certain rule needs to be run. So I'm inserting a java.lang.Class<T> object into the session. The T determines if a rule is activated. Does that make sense?<BR>
<BR>
On Thu, 2007-07-26 at 16:06 +0100, Anstis, Michael (M.) wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Surely this LHS is matched by the pattern</FONT>
<FONT COLOR="#000000">$sc : SomeClass()</FONT>
<FONT COLOR="#000000">??? </FONT>
<FONT COLOR="#000000">-----Original Message-----</FONT>
<FONT COLOR="#000000">From: <A HREF="mailto:rules-users-bounces@lists.jboss.org">rules-users-bounces@lists.jboss.org</A></FONT>
<FONT COLOR="#000000">[<A HREF="mailto:rules-users-bounces@lists.jboss.org">mailto:rules-users-bounces@lists.jboss.org</A>] On Behalf Of Eric Miles</FONT>
<FONT COLOR="#000000">Sent: 26 July 2007 15:19</FONT>
<FONT COLOR="#000000">To: <A HREF="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</A></FONT>
<FONT COLOR="#000000">Subject: [rules-users] Quick syntax question</FONT>
<FONT COLOR="#000000">Is there an easier way to write this LHS?</FONT>
<FONT COLOR="#000000">Class(name == 'com.mycompany.SomeClass')</FONT>
<FONT COLOR="#000000">It would be nice to do something like this:</FONT>
<FONT COLOR="#000000">Class(name == SomeClass.class.getName())</FONT>
<FONT COLOR="#000000">Suggestions?</FONT>
<FONT COLOR="#000000">Thanks all!</FONT>
<FONT COLOR="#000000">_______________________________________________</FONT>
<FONT COLOR="#000000">rules-users mailing list</FONT>
<FONT COLOR="#000000"><A HREF="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</A></FONT>
<FONT COLOR="#000000"><A HREF="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</A></FONT>
<FONT COLOR="#000000">_______________________________________________</FONT>
<FONT COLOR="#000000">rules-users mailing list</FONT>
<FONT COLOR="#000000"><A HREF="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</A></FONT>
<FONT COLOR="#000000"><A HREF="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</A></FONT>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>