<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span>Hi Judy.</span></div><div><span>&nbsp;</span></div><div><span>When you made changes to a Workflow definition, this changes will not taken by the actual instances running, even you execute the SWU_OBUF.</span></div><div><span></span>&nbsp;</div><div><span>To take the new definition, you need finish the current instance of the workflow, and then need to re-start the Workflow, just in this case the new definition will take by the new Workflow instance.</span></div><div><span></span>&nbsp;</div><div><span>Hope this info will help you.</span></div><div><span></span>&nbsp;</div><div><span>Regards.</span></div><div><br></div>  <div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> <div
 style="margin: 5px 0px; padding: 0px; border: 1px solid rgb(204, 204, 204); height: 0px; line-height: 0; font-size: 0px;" class="hr" contentEditable="false" readonly="true"></div>  <b><span style="font-weight: bold;">From:</span></b> "Alfano, Judy (ISO)" &lt;JAlfano2@massmutual.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b> sap-wug@mit.edu <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, June 1, 2012 1:26 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Can old workflow instances execute new code? <br> </font> </div> <br>
<div id="yiv1607045668"><style><!--
#yiv1607045668  
 _filtered #yiv1607045668 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
 _filtered #yiv1607045668 {font-family:Verdana;panose-1:2 11 6 4 3 5 4 4 2 4;}
 _filtered #yiv1607045668 {font-family:"Arial Narrow";panose-1:2 11 5 6 2 2 2 3 2 4;}
 _filtered #yiv1607045668 {font-family:Webdings;panose-1:5 3 1 2 1 5 9 6 7 3;}
#yiv1607045668  
#yiv1607045668 p.yiv1607045668MsoNormal, #yiv1607045668 li.yiv1607045668MsoNormal, #yiv1607045668 div.yiv1607045668MsoNormal
        {margin:0in;margin-bottom:.0001pt;font-size:11.0pt;font-family:"sans-serif";}
#yiv1607045668 a:link, #yiv1607045668 span.yiv1607045668MsoHyperlink
        {color:blue;text-decoration:underline;}
#yiv1607045668 a:visited, #yiv1607045668 span.yiv1607045668MsoHyperlinkFollowed
        {color:purple;text-decoration:underline;}
#yiv1607045668 span.yiv1607045668EmailStyle17
        {font-family:"sans-serif";color:windowtext;}
#yiv1607045668 .yiv1607045668MsoChpDefault
        {font-family:"sans-serif";}
 _filtered #yiv1607045668 {margin:1.0in 1.0in 1.0in 1.0in;}
#yiv1607045668 div.yiv1607045668WordSection1
        {}
--></style><div><div class="yiv1607045668WordSection1"><div class="yiv1607045668MsoNormal">Hi All – We have a custom workflow that initially sends an error notification to users, followed by a loop wherein each time the deadline is met it checks some criteria and decides whether or not to escalate the notification to the next level of folks. Currently we have 1000’s of these escalating daily in production due to invalid triggering event container data. So far, support has been unable to identify the circumstances that are resulting in the bad event container data. As a workaround I decided to insert a condition step that checks for the invalid scenario, and if found change the workflow status to complete and exit. I put this new condition step in the loop thinking that as the next deadline was met for each in-process workflow, it would find the error and complete the workflow, taking care of the cleanup of the mess in production. I purposely didn’t
 generate a new version when I made the change, thinking this would cause the in-process instances to hit the new step the next time the loop looped.</div><div class="yiv1607045668MsoNormal"> &nbsp;</div><div class="yiv1607045668MsoNormal">This worked as I expected in our development client where the change was made, and in another DEV client after I executed SWU_OBUF. But when I transported the change to the QA environment, the in-process workflows continue to execute the loop as it was before the code change. I executed SWU_OBUF, probably unnecessarily based on the last synchronization time – didn’t help. </div><div class="yiv1607045668MsoNormal"> &nbsp;</div><div class="yiv1607045668MsoNormal">Was I just wrong in my thinking that by not generating a new version of the workflow, in-process instances would begin executing the changed code the next time they hit the loop? </div><div class="yiv1607045668MsoNormal"> &nbsp;</div><div
 class="yiv1607045668MsoNormal">Thanks very much for your help!</div><div class="yiv1607045668MsoNormal"> &nbsp;</div><div class="yiv1607045668MsoNormal"><b><span style='color: green; font-family: "sans-serif"; font-size: 10pt;'>Judy Alfano</span></b><span style='color: green; font-family: "serif"; font-size: 12pt;'><br></span><span style='color: black; font-family: "sans-serif"; font-size: 10pt;'>USIG, B&amp;TS</span><span style='color: green; font-family: "serif"; font-size: 12pt;'><br></span><span style='color: black; font-family: "sans-serif"; font-size: 10pt;'>MassMutual Financial Group</span><span style='color: green; font-family: "serif"; font-size: 12pt;'><br></span><span style='color: black; font-family: "sans-serif"; font-size: 10pt;'>1295 State Street &nbsp;MIP&nbsp;W361</span><span style='color: black; font-family: "sans-serif"; font-size: 10pt;'>&nbsp;</span><span style='font-family: "serif"; font-size: 12pt;'></span></div><div
 class="yiv1607045668MsoNormal"><span style='color: black; font-family: "sans-serif"; font-size: 10pt;'>Springfield&nbsp;MA 01111</span><span style='font-family: "serif"; font-size: 12pt;'></span></div><div class="yiv1607045668MsoNormal"><span style='color: black; font-family: "sans-serif"; font-size: 10pt;'>413-744-2428</span><span style='font-family: "serif"; font-size: 12pt;'></span></div><div class="yiv1607045668MsoNormal"><span style="color: green; font-family: Webdings; font-size: 18pt;" lang="EN-GB">P</span><span style='color: rgb(0, 102, 0); font-family: "serif"; font-size: 12pt;' lang="EN-GB"> </span><b><span style='color: green; font-family: "sans-serif"; font-size: 7.5pt;'>Please consider the environment before printing this e-mail</span></b><span style='color: green; font-family: "sans-serif"; font-size: 7.5pt;'> </span></div></div><font face="monospace"><br>
<br>
<br>
This e-mail transmission may contain information that is proprietary, privileged and/or confidential and is intended exclusively for the person(s) to whom it is addressed. Any use, copying, retention or disclosure by any person other than the intended recipient or the intended recipient's designees is strictly prohibited. If you are not the intended recipient or their designee, please notify the sender immediately by return e-mail and delete all copies.</font></div></div><br>_______________________________________________<br>SAP-WUG mailing list<br><a href="mailto:SAP-WUG@mit.edu" ymailto="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><br> </div> </div>  </div></body></html>