<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-2">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p style="margin: 0px; padding: 0px; color: rgb(87, 87, 87);
font-family: arial, helvetica, sans-serif; font-size: 13px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 20px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px;">Hi,<br>
</p>
<p style="margin: 0px; padding: 0px; color: rgb(87, 87, 87);
font-family: arial, helvetica, sans-serif; font-size: 13px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 20px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px;">I use drools within my
application (<a href="http://civilization-mmo.blogspot.com/"
data-mce-href="http://civilization-mmo.blogspot.com/"
style="color: rgb(41, 137, 197); text-decoration: none;">civilization-mmo.blogspot.com</a>),
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 here<span class="Apple-converted-space"> </span><a
href="http://www.ibm.com/developerworks/opensource/library/j-drools5/index.html"
title="http://www.ibm.com/developerworks/opensource/library/j-drools5/index.html"
data-mce-href="http://www.ibm.com/developerworks/opensource/library/j-drools5/index.html"
style="color: rgb(41, 137, 197); text-decoration: none;">http://www.ibm.com/developerworks/opensource/library/j-drools5/index.html</a>.
The persistence package offers services to manage the DTOs.</p>
<p style="margin: 0px; padding: 0px; color: rgb(87, 87, 87);
font-family: arial, helvetica, sans-serif; font-size: 13px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 20px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px;">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?</p>
<p style="margin: 0px; padding: 0px; color: rgb(87, 87, 87);
font-family: arial, helvetica, sans-serif; font-size: 13px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 20px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px;"><br>
</p>
<p style="margin: 0px; padding: 0px; color: rgb(87, 87, 87);
font-family: arial, helvetica, sans-serif; font-size: 13px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 20px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px;">Thanks in advance.</p>
<p style="margin: 0px; padding: 0px; color: rgb(87, 87, 87);
font-family: arial, helvetica, sans-serif; font-size: 13px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 20px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px;">Jan</p>
</body>
</html>