on 08-29-2008 4:41 AM
What is the best way to handle exceptions in workflow?
Suppose a workflow step calls a method in a business object which in turn calls a function. Now an exception is raised in the function, the workflow just sits at that step with an "In Process" status. I would like the workflow to get an error status so that it can be restarted.
How can this be achieved? Thanks in advance
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks everyone for your input. The resolution was as follows
http://help.sap.com/saphelp_nw2004s/helpdata/en/1a/6b023c3f6aaf08e10000000a11402f/content.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In the workflow log, I am seeing a 'broken block in red color' when one of the approver rejects at a particular level. Workflow is not executing for the rejection path. May I know the reason behind this. I am more worried about the broken red color block. I am seeing the status as 'Error'.
You can observe the difference of the execution of the workflow from the following . Please help me.
1. Approved 2. Rejected
First thing is, is the exception raised in the FM also handled by the FM? So is it an exception of the FM? If so you can handle it in your method also and raise an exception for your method.
Regards,
Martin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi AB,
are you sure that the WF's that end up in "InProcess" status are those WF's in error ?
If yes, then you could collect all such statuses thru SWWWIHEAD and make them in "Error" state.
After that use FM SWW_*_ERROR_RESTART for all those workitem in Error state.
Else need to identify all WF's in "InProcess" change it to "Error" as above and run SWPR.
Shall wait for some good answers too.
Hope it helps.
Aditya
Edited by: Aditya Varrier on Aug 29, 2008 10:37 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.