Himansu's answer is only true if the you are modifying the attributes of the objects passed as arguments but not the object reference itself.<div>So, if you pass a Person instance for example and the process changes the 'name' property of the person you can still use the original person</div>
<div>you passed in the map. </div><div>But, if the process replaces the person with a new instance for example (this is always true for primitives data types and Strings), your original map is no longer valid. What you should (always) do is:</div>
<div><br></div><div><div><b>((WorkflowProcessInstance)processInstance).getVariable("hello");</b></div></div><div><br></div><div>Best Regards,</div><div><br></div><div><br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br>
<br>Esteban Aliverti<br>- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>
<br><br><div class="gmail_quote">On Thu, Sep 27, 2012 at 10:45 AM, himansu.nayak <span dir="ltr"><<a href="mailto:himansumca@gmail.com" target="_blank">himansumca@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
your are still holding the reference to parameterMap in your java code. you<br>
can still access the values<br>
<br>
<br>
<br>
-----<br>
Thanks...<br>
Himansu<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Drools-5-4-final-and-jbpm-problem-in-acces-process-variable-tp4019987p4019992.html" target="_blank">http://drools.46999.n3.nabble.com/Drools-5-4-final-and-jbpm-problem-in-acces-process-variable-tp4019987p4019992.html</a><br>
<div class="HOEnZb"><div class="h5">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">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>
</div></div></blockquote></div><br></div>