Thanks a lot for your insight. Son
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Ernest Friedman-Hill Sent: Tuesday, September 01, 2009 9:31 PM To: jess-users Subject: Re: JESS: JessML and metaphors The javax.rules properties and the JessML properties are completely unrelated. Rule metadata may be added to Jess in the future, but right now there's no way to get Jess to carry arbitrary rule properties around -- sorry. You'll have to store this data separately. On Sep 1, 2009, at 2:13 PM, Nguyen, Son wrote: > > Hi, > > I am looking for ways to have additional data in JessML to represent > concepts such as decision tables. > > Looking at the Jess schema, the 'properties' seem to be a good place > to add more data. > The properties of the rule seem to fit the bill. However, I did not > see any api of the Defrule class that would let me get the properties. > > I also looked in Jess JSR 94. javax.rules.admin has a method to > retrieve by a property by name. > This sounds promising. But, after adding a few properties in the rules > (JessML), and a few line of Java using JSR 94, > Rule.getProperty("testProperty") returns null. I see the names of the > rules but there are no properties. > > Is what I did a reasonable approach? > Are there other ways to add medata to JessML without having to alter > the schema? > > Any help is appreciated. > > Son > --------------------------------------------------------- Ernest Friedman-Hill Informatics & Decision Sciences Phone: (925) 294-2154 Sandia National Labs PO Box 969, MS 9012 [email protected] Livermore, CA 94550 http://www.jessrules.com -------------------------------------------------------------------- To unsubscribe, send the words 'unsubscribe jess-users [email protected]' in the BODY of a message to [email protected], NOT to the list (use your own address!) List problems? Notify [email protected]. -------------------------------------------------------------------- -------------------------------------------------------------------- To unsubscribe, send the words 'unsubscribe jess-users [email protected]' in the BODY of a message to [email protected], NOT to the list (use your own address!) List problems? Notify [email protected]. --------------------------------------------------------------------
