<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3157" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=895032113-06112007><FONT face=Arial 
color=#0000ff size=2>Hi Vinod</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=895032113-06112007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=895032113-06112007><FONT face=Arial 
color=#0000ff size=2>It looks like you are not quite sure what to expect, so 
here's an overview. We've got several DMS workflows running here, so I can go 
into more detail if you have specific concerns.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=895032113-06112007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=895032113-06112007><FONT face=Arial 
color=#0000ff size=2>1) I note that in my environment my draw object only has a 
CHANGED event - there is no STATUSCHANGED event. I'm on an old 4.6c, so perhaps 
things have changed in newer versions, but that should not be a problem. On the 
other hand, if STATUSCHANGED is a new, custom event, it may be that it is only 
going to be raised in the appropriate scenario.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=895032113-06112007><FONT face=Arial 
color=#0000ff size=2>You might be able to prove this in SWEC, or if you are 
using a ZDRAW object....</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=895032113-06112007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=895032113-06112007><FONT face=Arial 
color=#0000ff size=2>2) We generally start our workflows using the CREATED 
event, plus a start condition which limits based on document type. Bare in mind 
that there may be other DMS documents being raised that are nothing to do with 
your workflow.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=895032113-06112007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=895032113-06112007><FONT face=Arial 
color=#0000ff size=2>3) In SWEL, the number of lines does not necessarily tie up 
with the number of events. It also relates to the number of event listeners as 
well. So one event can have two entries, if two things triggered off. Are you 
sure that they are both your workflow? Or is there something else reacting to 
the CHANGE as well?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=895032113-06112007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=895032113-06112007><FONT face=Arial 
color=#0000ff size=2>4) The start condition ought to limit things correctly. 
Check that your logic is correct... and you can try to raise the appropriate 
event in SWUE (and even look to see if there are any active listeners in any 
running work flows).</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=895032113-06112007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=895032113-06112007><FONT face=Arial 
color=#0000ff size=2>5) In order to respond differently to different types of 
status change, we have&nbsp;created custom events on DRAW and then 
used&nbsp;change docs in SWEC to raise them at the appropriate time. So, for 
example, we have a terminate event for a particular workflow, which is only 
raised when a certain DIR document type moves to a status of 
DL.&nbsp;</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=895032113-06112007>&nbsp;</SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=895032113-06112007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=895032113-06112007><FONT face=Arial 
color=#0000ff size=2>Andy</FONT></SPAN></DIV>
<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>Vinod 
Viswanathan<BR><B>Sent:</B> 06 November 2007 13:09<BR><B>To:</B> SAP Workflow 
Users' Group<BR><B>Subject:</B> Advice required on DMS 
workflow!<BR></FONT><BR></DIV>
<DIV></DIV>
<P><FONT face="MS Sans Serif"></FONT></P>
<P><FONT face="MS Sans Serif">Hi group,</FONT></P>
<P><FONT face="MS Sans Serif">I am currently working on a DMS workflow. 
</FONT></P>
<P><FONT size=+0><STRONG><FONT face="MS Sans Serif">The workflow should be 
updated with every status change to a DMS document<SPAN 
class=256200113-06112007> and perform necessary actions depending upon the DMS 
status</SPAN>.<SPAN class=256200113-06112007> New wf instances should not be 
triggered.</SPAN></FONT></STRONG></FONT></P>
<P><FONT face="MS Sans Serif">I have two issues:-</FONT></P>
<P><FONT face="MS Sans Serif">1. Initially my workflow had 'STATUSCHANGED' as 
the only start event. When the DMS document status was </FONT></P>
<P><FONT face="MS Sans Serif"><SPAN class=256200113-06112007>&nbsp;&nbsp;&nbsp; 
</SPAN>changed, the workflow did not trigger on the 'STATUSCHANGED' event. I 
noticed in SWEL(event trace) </FONT></P>
<P><FONT face="MS Sans Serif"><SPAN 
class=256200113-06112007>&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>that no event was 
triggered. </FONT></P>
<P><FONT face="MS Sans Serif"><SPAN 
class=256200113-06112007>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; Then 
</SPAN>I&nbsp;added 'CHANGED' event along with 'STATUSCHANGED'. But in vain! 
Yet, two workflow instances </FONT></P>
<P><FONT face="MS Sans Serif"><SPAN 
class=256200113-06112007>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>were triggered. 
SWEL(event trace) now showed 'CHANGED' event triggered twice.</FONT></P>
<P><FONT face="MS Sans Serif"></FONT>&nbsp;</P>
<P><FONT face="MS Sans Serif"></FONT></P>
<P><FONT face="MS Sans Serif">2.<SPAN class=256200113-06112007> </SPAN>&nbsp;I 
put a start condition such that the workflow should be triggered only for the 
first document&nbsp;</FONT><FONT face="MS Sans Serif">status.</FONT></P>
<P><FONT face="MS Sans Serif"><SPAN 
class=256200113-06112007>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN>But new wf 
instances are triggered<SPAN class=256200113-06112007>(2 more 
again!)</SPAN>&nbsp;inspite of the start condition<SPAN 
class=256200113-06112007>.</SPAN><SPAN class=256200113-06112007> 
</SPAN></FONT></P>
<P><FONT face="MS Sans Serif"><SPAN 
class=256200113-06112007>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The new status is not 
updated in the existing workflow.&nbsp;&nbsp;Should&nbsp;I&nbsp;fetching the new 
status from the database tables inspite of it </SPAN></FONT></P>
<P><FONT face="MS Sans Serif"><SPAN 
class=256200113-06112007>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; being available to me in 
the wf event container?</SPAN></FONT></P>
<P><FONT face="MS Sans Serif"><SPAN 
class=256200113-06112007></SPAN></FONT>&nbsp;</P>
<P><FONT face="MS Sans Serif"><SPAN 
class=256200113-06112007>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;I was told that the 
status should get updated automatically.&nbsp; Kindly help!</SPAN></FONT></P>
<P><FONT face="MS Sans Serif"><SPAN 
class=256200113-06112007>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Thanks a lot for your 
help in advance!</SPAN></FONT></P>
<P><FONT face="MS Sans Serif"><SPAN class=256200113-06112007>Best 
Regards,</SPAN></FONT></P>
<P><FONT face="MS Sans Serif"><SPAN 
class=256200113-06112007>Vinod</SPAN></FONT></P>
<P><FONT face="MS Sans Serif"><SPAN 
class=256200113-06112007></SPAN></FONT>&nbsp;</P>
<P><FONT face="MS Sans Serif"><SPAN 
class=256200113-06112007></SPAN></FONT>&nbsp;</P>
<P><FONT face="MS Sans Serif"><SPAN 
class=256200113-06112007></SPAN></FONT>&nbsp;</P>
<P><FONT face="MS Sans Serif"><SPAN 
class=256200113-06112007></SPAN></FONT>&nbsp;</P>
<P><FONT face="MS Sans Serif"></FONT>&nbsp;</P>
<P><FONT face="MS Sans Serif"></FONT></P>
<DIV><FONT face="MS Sans Serif" size=2></FONT>&nbsp;</DIV></BODY></HTML>