Re: JESS: Java 1.5 enums

2007-07-27 Thread Wolfgang Laun
To match a slot with the result or a method call, prefix the call with an equal sign: (MyShadowFact (OBJECT ?o) (property1 =(MyEnum.xyz))) krW On 7/27/07, Krasnigor, Scott L (N-AST) <[EMAIL PROTECTED]> wrote: > > > > > I believe you need to surround the enum with ( ), e.g. (property1 > (MyEnu

RE: JESS: Java 1.5 enums

2007-07-27 Thread Krasnigor, Scott L (N-AST)
I believe you need to surround the enum with ( ), e.g. (property1 (MyEnum.xyz)). Enums are treated like method calls. The ( ) causes a call to your enum class to get the associated value for the enum. Hope this works for you. From: [EMAIL PROTECTED] [mail