<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Program exit Exception raised deactivates the event linkage</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16809" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=426171113-29042009><FONT face=Arial 
color=#0000ff size=2>Wayne,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=426171113-29042009><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=426171113-29042009><FONT face=Arial 
color=#0000ff size=2>Have you checked changing the event settings on the event 
linkage?&nbsp; </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=426171113-29042009><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=426171113-29042009><FONT face=Arial 
color=#0000ff size=2>The system default is typically "Deactivation of linkage" 
on error, you can change this to "Do not change linkage" to see if that 
helps.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=426171113-29042009><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=426171113-29042009><FONT face=Arial 
color=#0000ff size=2>Thanks,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=426171113-29042009><FONT face=Arial 
color=#0000ff size=2>Seth</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> sap-wug-bounces@mit.edu 
[mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of </B>Hanrahan, 
Wayne<BR><B>Sent:</B> Wednesday, April 29, 2009 2:37 AM<BR><B>To:</B> 
sap-wug@mit.edu<BR><B>Subject:</B> Program exit Exception raised deactivates the 
event linkage<BR></FONT><BR></DIV>
<DIV></DIV><!-- Converted from text/rtf format -->
<P><SPAN lang=en-au><FONT face=Arial size=2>Hi all,</FONT></SPAN> <BR><SPAN 
lang=en-au><FONT face=Arial size=2>&nbsp;I need your help to find out if I am 
missing something here&#8230;.</FONT></SPAN> </P>
<P><SPAN lang=en-au><FONT face=Arial size=2>&nbsp;There is a program exit on a 
workflow start event (a class that implements the interface 
IF_SWF_IFS_WORKITEM_EXIT ).</FONT></SPAN> <BR><SPAN lang=en-au><FONT face=Arial 
size=2>&nbsp;It reacts only to SWRCO_EVENT_BEFORE_CREATION 
(BEF_CREATE).</FONT></SPAN> <BR><SPAN lang=en-au><FONT face=Arial size=2>&nbsp;I 
do some checking and raise the following exception if I do not want the workflow 
to start.... </FONT></SPAN><BR><SPAN lang=en-au><FONT face="Courier New" 
color=#0000ff size=2>&nbsp;</FONT></SPAN> <BR><SPAN lang=en-au><FONT 
face="Courier New" color=#0000ff size=2></FONT>&nbsp;<FONT face="Courier New" 
color=#0000ff size=2>raise</FONT><FONT face="Courier New" size=2> exception 
</FONT><FONT face="Courier New" color=#0000ff size=2>type</FONT><FONT 
face="Courier New" size=2> cx_swf_ifs_workitem_exit_error </FONT><FONT 
face="Courier New" color=#0000ff size=2>exporting</FONT><FONT face="Courier New" 
size=2> t100_msg = lw_message.</FONT></SPAN> <BR><SPAN lang=en-au><FONT 
face="Times New Roman">&nbsp; (</FONT><FONT face="Courier New" 
size=2>lw_message</FONT><FONT face="Courier New" size=2> is populated with my 
message of course)</FONT></SPAN> <BR><SPAN lang=en-au><FONT face="Courier New" 
size=2>&nbsp;All goes well, the workflow does not start. BUT the event linkage 
is deactivated.</FONT></SPAN> <BR><SPAN lang=en-au><FONT face="Courier New" 
size=2>&nbsp;Can I prevent the deactivation from happening?</FONT></SPAN> </P>
<P><SPAN lang=en-au><FONT face="Courier New" size=2>&nbsp;Thanks for your 
help,</FONT></SPAN> <BR><SPAN lang=en-au><FONT face="Courier New" 
size=2>&nbsp;Wayne Hanrahan</FONT></SPAN> <BR><SPAN lang=en-au><FONT 
face="Courier New" size=2></FONT>&nbsp;</SPAN> </P><PRE>**********************************************************************
CitiPower Pty and Powercor Australia Ltd. This email and any file
attachments are confidential and intended solely for the use of the
individual or entity to whom they are addressed. If you have received
this email in error please tell us immediately by return email and
delete the document.
**********************************************************************
</PRE></BODY></HTML>