[rules-users] How to persist altered facts
Jan Šťastný
newohybat at gmail.com
Tue Feb 25 13:45:58 EST 2014
Hi,
I use drools within my application (civilization-mmo.blogspot.com
<http://civilization-mmo.blogspot.com/>), where I reason over the facts
and alter them. I need to persist the changes through JPA. As my
persistence is defined in different package, whose interface only work
with DTOs, I can't use JPA entities as facts as I saw
herehttp://www.ibm.com/developerworks/opensource/library/j-drools5/index.html.
The persistence package offers services to manage the DTOs.
Is there any way to persist altered facts? Well I thought about the
option to use on the RHS also call to service method together with
modify method to promote the changes into db and engine at once. Are
there more? Probably with some event listeners?
Thanks in advance.
Jan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20140225/72f34d90/attachment.html
More information about the rules-users
mailing list