HR -> Active Directory, data passed but task status "In Proce ss"

Sheth, Neeraja Neeraja.Sheth at fnc.fujitsu.com
Fri Jan 16 11:59:47 EST 2004


After years of workflow, to have forgotten a return, and sit there wondering
why the workflow status is still in process, what can I say? Thank you very
much for the immediate help.
 
 
Regards
 
Neeraja
 
 
 
-----Original Message-----
From: Soady, Phil [mailto:phil.soady at sap.com]
Sent: Wednesday, January 14, 2004 5:32 PM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: HR -> Active Directory, data passed but task status "In
Proce ss"
 
 
A submit and return starts a new Logical Unit of Work. (LUW2)
So if this LUW2 is to be committed properly, the Commit work should be at
the end of
but still inside the the LUW2.
Upon return to the calling code. ie immediately after the SUBMIT and return
you are back in LUW1. So the commit work, commits any work oustanding in
LUW1.
At this point if your method exists normally, the WF system get control
back.
It is plausible, that this Commit has caused a change in behaviour of WF
system.
It should however, still allow the WF to create new updates and commit them
inside  LUW1.
 Make sure you method doesn't "exit" the LUW at that point?
Try debugging back after you method is called.
The WF system should get a chance to update the status.
 
The other thing to check is that you method isnt marked as aysync and
therefore
expecting a terminating event.
 
It has just occurred that you may have just done a submit without the
return.
 
The effect of that is equivalent to shoting the workflow. ie /n in the
middle of the
transaction. NO return.... no update of complete. ;-( Oppps
 
 
hth
Phil Soady
 
-----Original Message-----
From: SAP Workflow [mailto:Owner-SAP-WUG at MITVMA.MIT.EDU] On Behalf Of Sheth,
Neeraja
Sent: Thursday,15 January 2004 9:02 AM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: HR -> Active Directory, data passed but task status "In Process"
 
 
One of the tasks of a custom workflow is to send some employee detail to
Active Directory. I have written a method for object BUS1065 - Employee,
that makes a function call.
 
The function call has two statements. The first is a SUBMIT RPLDAP_EXTRACT
with the necessary parameters to send the data to Active Directory. The
second is COMMIT WORK. The workflow works great, and data is passed as
required. However this task stays in status 'In Process'.
 
Any suggestions are greatly appreciated.
 
 
 
Regards
 
Neeraja
 


More information about the SAP-WUG mailing list