I completely fail to understand the purpose of this rule. What I see here is that lots of code don&#39;t change anything: the same objects will be inserted again - more or less.<br><br>-W<br><br><br><div class="gmail_quote">
On 6 July 2011 12:33, Wolfgang Laun <span dir="ltr">&lt;<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I think that you have to access the property id of the matched System object and use this for constructing the new System facts:<br>   <br>    id $system.getId()<br><font color="#888888"><br>-W</font><div><div></div><div class="h5">
<br><br><br><br><div class="gmail_quote">On 6 July 2011 12:21, _bart <span dir="ltr">&lt;<a href="mailto:dgrundler@doubleslash.de" target="_blank">dgrundler@doubleslash.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">If I remove  /id equals to $id  / in the WHEN part, I can set the id in the<br>
THEN part. But then the use case getOneObjectById does not work.<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Drools-Guvnor-problem-tp3142574p3144190.html" target="_blank">http://drools.46999.n3.nabble.com/Drools-Guvnor-problem-tp3142574p3144190.html</a><br>


Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></blockquote></div><br>
</div></div></blockquote></div><br>