<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Terminating Event</TITLE>
<META content="MSHTML 5.00.3013.2600" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=821163223-01102000>Hi
Brad</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=821163223-01102000></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=821163223-01102000>What
version are you on? I made an incorrect assumption here.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=821163223-01102000></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=821163223-01102000>This
excerpt is from the SAP Help version 4.6:</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=821163223-01102000></SPAN></FONT> </DIV>
<DIV><SPAN class=821163223-01102000>
<LI><FONT color=#0000ff face=Arial size=2>Single-step tasks that refer to an
</FONT><A
href="00001827.chm::/3526B0FCAFAB52B9E10000009B38F974/content.htm"><FONT
face=Arial size=2>asynchronous object method</FONT></A><FONT color=#0000ff
face=Arial size=2> <B>must </B>always be defined with at least one terminating
event. At runtime, the relevant work item is only terminated if one of the
defined terminating events occurs. </FONT></LI><FONT color=#0000ff><FONT
size=2><FONT face=Arial>
<LI>Single-step tasks that refer to a </FONT></FONT></FONT><A
href="00001827.chm::/3526B0FDAFAB52B9E10000009B38F974/content.htm"><FONT
face=Arial size=2>synchronous object method</FONT></A><FONT size=2><FONT
color=#0000ff><FONT face=Arial> <B>can </B>also be defined with terminating
events<B>.</B> At runtime, the relevant work item is generally terminated when
the synchronous method has been successfully executed. But the work item is also
terminated if one of the defined terminating events
occurs.</FONT></FONT></FONT></LI></DIV>
<DIV> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=821163223-01102000>So, to
answer your question, if the terminating event is required to give an alternate
outcome to the execution of the task (to cater for a specific scenario) then you
need to model for it and ensure that the custom event is raised. Otherwise, if
the execution of the task only has one outcome then you dont have to worry about
the terminating event.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=821163223-01102000></SPAN></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=821163223-01102000>Graeme</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=821163223-01102000><FONT
color=#0000ff face=Arial size=2><SPAN class=373104001-29092000>Deloitte
Consulting, Melbourne</SPAN></FONT></SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=821163223-01102000></SPAN></FONT> </DIV>
<DIV>
<LI><FONT size=2><FONT color=#0000ff><FONT face=Arial><SPAN
class=821163223-01102000> </SPAN></FONT></FONT></FONT></SPAN><FONT
face=Tahoma><FONT size=2>-----Original Message-----<BR><B>From:</B> Schroeter,
Brad [mailto:BSchroeter@ti.com]<BR><B>Sent:</B> Saturday, 30 September 2000
0:53<BR><B>To:</B> SAP-WUG@MITVMA.MIT.EDU<BR><B>Subject:</B> Re: Terminating
Event<BR><BR></FONT></LI></DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px"></FONT>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=064523614-29092000>Graeme,</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=064523614-29092000>I
guess I'm a little bit confused regarding this whole
thing.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=064523614-29092000></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=064523614-29092000>The
method is synchronous (it's actually a custom method copied from a SAP method
which was also synchronous) and it has a terminating event. When I look
at the object type this event is a custom event. I never could find
where this event was being raised so my plan was to to create the event when a
change document was created. Do I even need to worry about this change
document event or the terminating event since the method is
synchronous?</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=064523614-29092000></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=064523614-29092000>Thanks,</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=064523614-29092000>Brad</SPAN></FONT></DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV align=left class=OutlookMessageHeader dir=ltr><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> MacPherson, Graeme (AU -
Melbourne) [mailto:gmacpherson@dc.com]<BR><B>Sent:</B> Thursday, September
28, 2000 9:05 PM<BR><B>To:</B> SAP-WUG@MITVMA.MIT.EDU<BR><B>Subject:</B> Re:
Terminating Event<BR><BR></DIV></FONT>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=373104001-29092000>Hi
Brad</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=373104001-29092000></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=373104001-29092000>This only applies to the single step task. Your
single step task obviously executes an asynchronous object method. Since
asynchronous object methods dont (and technically cant) send a return code
back to the caller (like synchronous methods), the only way the workflow
knows the outcome of the task being executed is by an event which gets
raised. Once the terminating event is raised the workflow runtime sytem
knows from the way you have modelled your workflow which path to continue
down after the task has been executed. Typically, asynchronous methods deal
with update tasks and executing a task in the workflow which is designed
to perform an update does not guarantee that the update will be
successful. Therefore, the workflow waits for confirmation (by means of the
terminating event) that the outcome has occured successfully before
continuing.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=373104001-29092000></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=373104001-29092000>Cheers</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=373104001-29092000></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=373104001-29092000>Graeme </SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=373104001-29092000>Deloitte Consulting, Melbourne</SPAN></FONT></DIV>
<DIV> </DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV align=left class=OutlookMessageHeader dir=ltr><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Schroeter, Brad
[mailto:BSchroeter@ti.com]<BR><B>Sent:</B> Friday, 29 September 2000
6:21<BR><B>To:</B> SAP-WUG@MITVMA.MIT.EDU<BR><B>Subject:</B> Terminating
Event<BR><BR></DIV></FONT>
<P><FONT face=Arial size=2>I have a workflow task (task type WF,
multi-step) which has an activity step which calls a custom task (task
type T). This custom task uses an object method with dialog.
This custom task has a custom terminating event. Does this
terminating event have any effect on the workflow or does it only apply to
the single-step task level?</FONT></P>
<P><FONT face=Arial size=2>-Brad</FONT>
</P></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>