When I test this in SWUS using the task calling the method it works perfectly using the new object code, but the task in the workflow is not reacting in the same way hanging onto the old version of the object code.<br><br>

<div class="gmail_quote">On 23 August 2012 14:54, <span dir="ltr">&lt;<a href="mailto:michael.mcley@daimler.com" target="_blank">michael.mcley@daimler.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote"><font face="sans-serif">Mike,</font><br><br><font face="sans-serif">The only advice I can offer here (and the WUG can correct me if I&#39;m wrong) is that workflow instances seem to maintain a lot of contextual information relating to the status of all the objects (workflows, tasks, methods, etc...) that were active at the time the workflow was started.  Meaning in a lot of cases new changes will not be evident on old workflows.  </font><br>
<br><font face="sans-serif">So just make sure you are starting a brand new workflow when you are testing a change.</font><br><br><font face="sans-serif">If this isn&#39;t relevant, I seem to remember there is a way to enter the debugger when you are testing a workflow.  But you have to change the task to foreground and click a couple of buttons in SWUS (maybe in the options dialog) after setting a breakpoint in the code.  Maybe someone else knows how to do this.<br>
</font><font color="#808000" size="4"><b></b></font>
<p><font color="#808000" size="4"><b>Michael McLey</b></font><font color="#808000" size="3"><b></b><br>MBUSI - IT Parts &amp; Administration </font><font color="#808000"><br>Mercedes-Benz US International, Inc.</font><font color="#808000" size="3"></font><font color="#808000"><br>
1 Mercedes Drive</font><font color="#808000" size="3"> </font><font color="#808000"><br>Vance, AL 35490</font><font color="#808000" size="3"> </font><font color="#808000"><br>PHONE:  <a href="tel:%28205%29%20462%20-%205239" target="_blank" value="+12054625239">(205) 462 - 5239</a></font><font color="#808000" size="3"> </font><font color="#808000"><br>
EMAIL:   <a href="mailto:michael.mcley@daimler.com" target="_blank">michael.mcley@daimler.com</a></font><font color="#808000" size="3">   </font><br><br><br></p>
<table width="100%">
<tbody>
<tr valign="top">
<td width="40%"><font size="1" face="sans-serif"><b><a href="mailto:mikenickson@gmail.com" target="_blank">mikenickson@gmail.com</a></b></font><br><font size="1" face="sans-serif">Sent by: <a href="mailto:sap-wug-bounces@mit.edu" target="_blank">sap-wug-bounces@mit.edu</a></font> 
<p><font size="1" face="sans-serif">08/23/2012 08:27 AM</font></p>
<table border="1">
<tbody>
<tr valign="top">
<td bgcolor="white">
<div align="center"><font size="1" face="sans-serif">Please respond to<br><a href="mailto:sap-wug@mit.edu" target="_blank">sap-wug@mit.edu</a></font></div></td></tr></tbody></table><br>
<td width="59%">
<table width="100%">
<tbody>
<tr valign="top">
<td>
<div align="right"><font size="1" face="sans-serif">To</font></div>
<td><font size="1" face="sans-serif"><a href="mailto:SAP-WUG@mit.edu" target="_blank">SAP-WUG@mit.edu</a></font> 
<tr valign="top">
<td>
<div align="right"><font size="1" face="sans-serif">cc</font></div>
<td>
<tr valign="top">
<td>
<div align="right"><font size="1" face="sans-serif">Subject</font></div>
<td><font size="1" face="sans-serif">Workflow not responding to latest version of the business object</font></td></td></tr></td></td></tr></td></td></tr></tbody></table><br>
<table>
<tbody>
<tr valign="top">
<td>
<td></td></td></tr></tbody></table><br></td>
<td><p></p></td></td></tr></tbody></table>
<div>
<div class="h5"><br><br><br><font size="3">I have amended a method on ZBUS2012 to exit on a certain document type (ZA) rather than perform the rest of the method code, saved and generated the object in the development client.<br>
 <br>I test the object in the other client and it works fine.<br> <br>The workflow though seems to be hanging on to the old version of the object code, and the results I am getting in the task container that calls the method seems to be ignoring the new version of the code and it is not just exiting and returning as I expect.</font><br>
<font size="3"> </font><br><font size="3">I have even added a random error message to one of the method output parameters to see if it is using the new version of the object, to no avail.<br> <br>Tried OBUF and logging off and on again but still this is mystifying me.<br>
 <br>The workflow task should be calling the latest version of the object, but this doesn&#39;t seem to be happening.<br> <br>Any idea what I have missed ?<br> <br>How come when I test the object it works as I expect, but when the workflow calls the object it doesn&#39;t ?</font><br>
<font size="3"> </font><br></div></div><font size="3">Mike</font><tt><font>_______________________________________________<br>SAP-WUG mailing list<br><a href="mailto:SAP-WUG@mit.edu" target="_blank">SAP-WUG@mit.edu</a><br>
</font></tt><a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank"><tt><font>http://mailman.mit.edu/mailman/listinfo/sap-wug</font></tt></a><tt><font><br></font></tt><br><font face="sans-serif"><font color="#808080" size="-1" face="sans-serif, Arial, Helvetica"><br>
If you are not the intended addressee, please inform us immediately that you have received this e-mail in error, and delete it. We thank you for your cooperation. <br></font></font>
<p></p><br>_______________________________________________<br>SAP-WUG mailing list<br><a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a><br><a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br>
<br></blockquote></div><br>