<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7653.38">
<TITLE>Program exit Exception raised deactivates the event linkage</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><SPAN LANG="en-au"><FONT SIZE=2 FACE="Arial">Hi all,</FONT></SPAN>

<BR><SPAN LANG="en-au"><FONT SIZE=2 FACE="Arial">&nbsp;I need your help to find out if I am missing something here&#8230;.</FONT></SPAN>
</P>

<P><SPAN LANG="en-au"><FONT SIZE=2 FACE="Arial">&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 SIZE=2 FACE="Arial">&nbsp;It reacts only to SWRCO_EVENT_BEFORE_CREATION (BEF_CREATE).</FONT></SPAN>

<BR><SPAN LANG="en-au"><FONT SIZE=2 FACE="Arial">&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 COLOR="#0000FF" SIZE=2 FACE="Courier New">&nbsp;</FONT></SPAN>

<BR><SPAN LANG="en-au"><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New"></FONT>&nbsp;<FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">raise</FONT><FONT SIZE=2 FACE="Courier New"> exception </FONT><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">type</FONT><FONT SIZE=2 FACE="Courier New"> cx_swf_ifs_workitem_exit_error </FONT><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">exporting</FONT><FONT SIZE=2 FACE="Courier New"> t100_msg = lw_message.</FONT></SPAN>

<BR><SPAN LANG="en-au"><FONT FACE="Times New Roman">&nbsp; (</FONT><FONT SIZE=2 FACE="Courier New">lw_message</FONT><FONT SIZE=2 FACE="Courier New"> is populated with my message of course)</FONT></SPAN>

<BR><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">&nbsp;All goes well, the workflow does not start. BUT the event linkage is deactivated.</FONT></SPAN>

<BR><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">&nbsp;Can I prevent the deactivation from happening?</FONT></SPAN>
</P>

<P><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">&nbsp;Thanks for your help,</FONT></SPAN>

<BR><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">&nbsp;Wayne Hanrahan</FONT></SPAN>

<BR><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New"></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>