Re: JESS: Userfunctions and Jess - Java type conversion

2005-12-01 Thread ejfried
I think erich.oliphant wrote: > I tried that function, but it doesn't seem to exist on the > jess.ReflectFunctions class (I am using 7.0 beta 4. There seems to be a a > "static Value a(Class, Object) throws JessException" method based on browsing > the class file. Could this be it? You're not u

Re: JESS: Userfunctions and Jess - Java type conversion

2005-12-01 Thread erich.oliphant
Hi, I tried that function, but it doesn't seem to exist on the jess.ReflectFunctions class (I am using 7.0 beta 4. There seems to be a a "static Value a(Class, Object) throws JessException" method based on browsing the class file. Could this be it? Also, in regards to the original question, jus

Re: JESS: creating an audit trail

2005-12-01 Thread Roger Studner
Both suggestions are equally useful.. thanks.. I'll check in the API for registering a listener with the jess engine (is it for the whole engine, or by rule?) As well, i'm already using log4j in my java wrapper classes I make use of Engine's in.. so I will just STORE a logger and use it to track v

Re: JESS: creating an audit trail

2005-12-01 Thread inmanjon
Thought about it haven't done it. I would think the most performant least intrusive way is add a log4j listener to the class that fires the rules. I will look for it tonight. Why log4j? It is a non-blocking thread, unlick logging to a file, port or db. And if misconfigured you jess app will

Re: JESS: creating an audit trail

2005-12-01 Thread ejfried
I think Roger Studner wrote: > Has anyone has success in industry with a pattern or methodology for > tracking which rules fires and for what facts through a set of rules? Not sure what you mean by a pattern or methodology, but... > I have thought of listeners on firings That's all you have to

Re: JESS: Userfunctions and Jess - Java type conversion

2005-12-01 Thread ejfried
I think erich.oliphant wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] > Hmm, ok thanks, I understand better now. However, jess.Userfunctions return > Value's so is there anything I can do in that case to activate the type > conversion? I tried Value.resolve() but that did not help

JESS: creating an audit trail

2005-12-01 Thread Roger Studner
Has anyone has success in industry with a pattern or methodology for tracking which rules fires and for what facts through a set of rules? I have thought of listeners on firings as well as inserting javabean value objects that can provide an API for collection relevant aspects of the rules firing

Re: JESS: Userfunctions and Jess - Java type conversion

2005-12-01 Thread erich.oliphant
Hmm, ok thanks, I understand better now. However, jess.Userfunctions return Value's so is there anything I can do in that case to activate the type conversion? I tried Value.resolve() but that did not help. On Wed, 30 Nov 2005 18:47:38 -0800 (PST), ejfried wrote > If you can a Java function from