<!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.3019.2500" name=GENERATOR></HEAD>
<BODY>
<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></BODY></HTML>