<!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.7226.0">
<TITLE>FW: Terminating event for EXTSRV</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT COLOR="#0000FF" SIZE=2 FACE="Tahoma">Hi all,</FONT>
</P>

<P><FONT COLOR="#0000FF" SIZE=2 FACE="Tahoma">I just thought I'd provide an answer to my own question for thoise who may be interested.</FONT>

<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Tahoma">We debugged the WfXHandler portal component and found that in order to sucessfully complete the terminating event EXTSRV.COMPLETED, you have to do the following:</FONT></P>

<P><FONT COLOR="#0000FF" SIZE=2 FACE="Tahoma">1) Generate a random number</FONT>

<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Tahoma">2) Execute SWK_EXEC_GUID_SET for you work item, passing the random no in parameter IM_EXECGUID</FONT>

<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Tahoma">3) Execute SWK_WI_COMPLETE_WITH_EVENT</FONT>

<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Tahoma">This seems to be working ok in our modified component, which saves us from having to make any changes to the workflow defn so that it may operate in EP6.</FONT></P>

<P><FONT SIZE=2 FACE="Tahoma">Regards,</FONT><FONT FACE="Times New Roman"><BR>
<I></I></FONT><I><FONT SIZE=2 FACE="Tahoma">Andrew Rankin</FONT></I><FONT FACE="Times New Roman"><BR>
</FONT><I></I><I><FONT SIZE=2 FACE="Tahoma">CSC Australia</FONT></I><FONT FACE="Times New Roman"><BR>
</FONT><I></I><I><FONT COLOR="#000000" SIZE=2 FACE="Tahoma">Phone +61 2 42310322</FONT></I>

<BR><I><FONT COLOR="#000000" SIZE=2 FACE="Tahoma">Mobile 040 805 9920</FONT></I><FONT FACE="Times New Roman"></FONT>
</P>

<P><FONT FACE="Arial"></FONT>&nbsp;<FONT SIZE=1 FACE="Tahoma">-----Original Message-----</FONT>

<BR><B><FONT SIZE=1 FACE="Tahoma">From: &nbsp;</FONT></B> <FONT SIZE=1 FACE="Tahoma">Rankin, Andrew AJ&nbsp; </FONT>

<BR><B><FONT SIZE=1 FACE="Tahoma">Sent:&nbsp;&nbsp;</FONT></B> <FONT SIZE=1 FACE="Tahoma">Monday, 14 March 2005 11:26 AM</FONT>

<BR><B><FONT SIZE=1 FACE="Tahoma">To:&nbsp;&nbsp;&nbsp;&nbsp;</FONT></B> <FONT SIZE=1 FACE="Tahoma">'SAP-WUG@MITVMA.MIT.EDU'</FONT>

<BR><B><FONT SIZE=1 FACE="Tahoma">Subject:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT></B> <FONT SIZE=1 FACE="Tahoma">Terminating event for EXTSRV</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Hi all,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Hoping somone can assist me with the following problem:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">We have a workflow in place for approval of travel expenses through EP5. Migration to EP6 is in progress. The workflow uses the WFXhandler component which calls a custom portal component to render the travel details and allow approval/rejection. Configuration in the UWL override.xml&nbsp; and WfXHandler control it all. The actual task behind this uses EXTSRV.PROCESS method. Now with EP6 we don't want/can't use the WFXHandler any longer. Preference is to not change the workflow definition if possible and&nbsp; minimal change to the customised component. Switching to use the handler service on the WAS is an option but raises other issues for us. </FONT></P>

<P><FONT SIZE=2 FACE="Arial">Using the EP6 UWL configuration potential, we can start a work item with the same custom component, which is a good start. However the problem we have relates to how to complete the work item once the user makes a&nbsp; decision. The present and expected way to continue to do this is with terminating event EXTSRV.COMPLETED. The EP6 document &quot;How To&#8230; configure the UWL&quot; suggests that you can use SAP_WAPI_CREATE_EVENT, so we tried doing this to create EXTSRV.COMPLETED event, with the work item number as the object key. But it doesn't find a receiver.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">When I look at the &quot;WORKITEM&quot; event instances, none of them have an object key! They only have a receiver key, which is the associated work item number. However the whole thing is currently working in EP5 with the WfXHandler, so it must do something to find the event instance linkage in order to get the receiver. Note that when I check the event log for current examples, it finds the receiver with an object key (the wi no.) - so maybe the instance linkage is modified before the event is created?</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Does anyone have any ideas about what I could try to resolve the issue? Many Thanks!</FONT>
</P>

<P><FONT SIZE=2 FACE="Tahoma">Regards,</FONT><FONT FACE="Times New Roman"><BR>
</FONT><I></I><I><FONT SIZE=2 FACE="Tahoma">Andrew Rankin</FONT></I><FONT FACE="Times New Roman"><BR>
</FONT><I></I><I><FONT SIZE=2 FACE="Tahoma">CSC Australia</FONT></I><FONT FACE="Times New Roman"><BR>
</FONT><I></I><I><FONT COLOR="#000000" SIZE=2 FACE="Tahoma">Phone +61 2 42310322</FONT></I>

<BR><I><FONT COLOR="#000000" SIZE=2 FACE="Tahoma">Mobile 040 805 9920</FONT></I><FONT FACE="Times New Roman"></FONT>
</P>

</BODY>
</HTML>
<table><tr><td bgcolor=#ffffff><font color=#000000>This message and any attached files may contain information that is confidential and/or subject of legal privilege intended only for use by the intended recipient. If you are not the intended recipient or the person responsible for delivering the message to the intended recipient, be advised that you have received this message in error and that any dissemination, copying or use of this message or attachment is strictly forbidden, as is the disclosure of the information therein.  If you have received this message in error please notify the sender immediately and delete the message.<br></font></td></tr></table>