<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hi,<br><br>I am trying to use Drools and I would like to check whether such scenario could work:<br>I have facts Document and Line (EJB3 beans, in fact). And Document class has attribute:<br>List&lt;Line&gt; lines<br><br>So - I would like to pass to stateless session a Document instance "document" and I would like to write rule, that<br>1) create some new Lines;<br>2) calculates total from lines;<br>3) updates document.total;<br>4) add new Lines instances, that where created during the rule execution to document.lines;<br>And at the end of execution of this session I will like to do some other things with document and document.lines, e.g. persist in database.<br><br>So - can Drools handle such create of associations during the session execution?<br><br>Thanks!<br>Thomas&nbsp; <br>                                               </body>
</html>