File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is there any way to convert a shadow fact back to a javabean

 
Hope Zhu
Ranch Hand
Posts: 32
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a java application which reads string msg off a queue, converts the string into a javabean and puts it into a Jess rule engine. Because of the high volume (a couple of 100 per min) of the msg I can't offer keeping both shadow facts and beans at the same time in the memory. But later if a rule fired against a fact I need find out which fact fired the rule and convert the fact back to bean and send out the bean to another application. Currently I got stuck on how to convert a fact back to a javabean. Is there a way to do it? This is urgent. My boss is chasing me. Anyone knows please please help.

Thanks in advance.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24204
34
Chrome Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The shadow fact has a reference to the JavaBean in the OBJECT slot.



Or in Jess

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic