what about adding the same object that you are inserting in the working memory as a process parameter?<br>Are you generating new objects inside your rules and then you want to inject that inside a work item?<br>Work Items have their own scope that should be decoupled from the knowledge session, so you need to find a way to copy the information from the working memory scope to the work item scope and the first thing that comes into my mind is to do it in the easiest way that it&#39;s to include that information in the process scope.<br>
Greetings.<br><br><div class="gmail_quote">2011/4/1 Swindells, Thomas <span dir="ltr">&lt;<a href="mailto:TSwindells@nds.com">TSwindells@nds.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">






<div link="blue" vlink="purple" lang="EN-GB">
<div>
<p class="MsoNormal">We have a process which runs some rules against items in the working memory. We then want to use one of the objects in the working memory as the input parameter to a work item.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">The only way I can see to do this is to use a script step to fetch the fact from the wm (via a query or whatever) and then set a global, then have the global map into the in paramater.  This however seems very messy, scoping the variable
 far larger than it needs to. </p>
<p class="MsoNormal">Is there a more appropriate solution which doesn’t pollute the global variable namespace – perhaps running some code in the work items on entry action to populate the parameter directly?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Thanks,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Thomas</p>
</div>
<br>
<hr>
<font color="Gray" face="Arial" size="1"><br>
**************************************************************************************<br>
This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the <a href="mailto:postmaster@nds.com" target="_blank">postmaster@nds.com</a> and delete it from your system as well as any copies. The content of e-mails as well as traffic data
 may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary.<br>
<br>
NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00<br>
**************************************************************************************<br>
</font>
</div>

<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">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"><br>-- <br> - CTO @ <a href="http://www.plugtree.com">http://www.plugtree.com</a>  <br> - MyJourney @ <a href="http://salaboy.wordpress.com">http://salaboy.wordpress.com</a><br>
 - Co-Founder @ <a href="http://www.jbug.com.ar">http://www.jbug.com.ar</a><br> <br> - Salatino &quot;Salaboy&quot; Mauricio -<br>