<div>Sorry for not explaining it before, Mauricio. My intent is to abstract the attribute&#39;s setting of a class. I&#39;ll try to explain the context:</div><div><br></div><div>On a defined class i&#39;ve got certain fields which I tagged with annotations. I want to automate the setting of these fields from certain objects matched by a rule, the matching between the class fields and the objects would be the identifiers. The field annotation holds the expected identifier to match. Thus, a general method would be capable to set the fields of any class just passing to it the class fields and the identifiers metadata.</div>



<div><br></div><div>What i&#39;ve been developing is related with situation detection. The &#39;class&#39; I refer above is a situation type and the attributes are roles that an entity can play in a situation. Each situation type has a rule that defines when it is active and must instantiate a new situation and set the participant entities.</div>



<div><br></div><div>I&#39;&#39;ll talk more about what i&#39;m working on as soon as i get time to write.</div><div><br></div><div>Thanks for the help,</div><div><div><br><div class="gmail_quote">2011/9/19 Mauricio Salatino <span dir="ltr">&lt;<a href="mailto:salaboy@gmail.com" target="_blank">salaboy@gmail.com</a>&gt;</span><br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
You can get metadata using the kcontext variable but I&#39;m not sure if you can get the information about the identifiers.<div>Can you describe what are you looking to achieve? because the rule is fixed and the identifiers as well. Why do you want to do reflection like stuff in the RHS? I&#39;m just curious..</div>



<div><div></div><div>
<div>Cheers</div><div><br><div class="gmail_quote">2011/9/19 Isaac Pereira <span dir="ltr">&lt;<a href="mailto:pereira.zc@gmail.com" target="_blank">pereira.zc@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




Hi Mauricio,<div><br></div><div>I mean a metadata structure that I can iterate on, then I wouldn&#39;t need to explicitely know the identifiers declared into a rule. Analogous to getting fields from a class using reflection.</div>






<div><br></div><div>Thanks, <div><div></div><div><br><br><div class="gmail_quote">2011/9/19 Mauricio Salatino <span dir="ltr">&lt;<a href="mailto:salaboy@gmail.com" target="_blank">salaboy@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

What do you mean with a mapping between identifiers?<div>If you define an identifier and bind a property or an object reference to it you can access it in the RHS directly. </div><div>Cheers<br><br><div class="gmail_quote">






<div><div></div><div>
2011/9/19 Isaac Pereira <span dir="ltr">&lt;<a href="mailto:pereira.zc@gmail.com" target="_blank">pereira.zc@gmail.com</a>&gt;</span><br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">






<div><div></div><div>
Hi,<br><br>Is there a way to get, on the RHS, a mapping between identifiers, declared on the LHS, and its respectives objects?<div><br><br></div><div>I would appreciate any help.<br><font color="#888888"><br>--<br>Isaac Pereira</font></div>








<br></div></div>_______________________________________________<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>
<br></blockquote></div><font color="#888888"><br><br clear="all"><div><br></div>-- <br> - CTO @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com</a>  <br> - MyJourney @ <a href="http://salaboy.wordpress.com" target="_blank">http://salaboy.wordpress.com</a><div>







- Co-Founder @ <a href="http://www.jugargentina.org" target="_blank">http://www.jugargentina.org</a><br> - Co-Founder @ <a href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a><br> <br> - Salatino &quot;Salaboy&quot; Mauricio -</div>







<br>
</font></div>
<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>
<br></blockquote></div><br>-- <br></div></div><font color="#888888">Isaac Pereira<br><br>
</font></div>
<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>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br> - CTO @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com</a>  <br> - MyJourney @ <a href="http://salaboy.wordpress.com" target="_blank">http://salaboy.wordpress.com</a><div>




- Co-Founder @ <a href="http://www.jugargentina.org" target="_blank">http://www.jugargentina.org</a><br> - Co-Founder @ <a href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a><br> <br> - Salatino &quot;Salaboy&quot; Mauricio -</div>




<br>
</div>
</div></div><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>
<br></blockquote></div><br>-- <br>Isaac Pereira<br><br>
</div></div>