Send workflow into error from background method

Kouw, FA - SPLTX fa.kouw at td.klm.com
Tue Oct 28 10:08:37 EST 2003


Stephan,
 
Maybe I overlook something that makes your problem more complex, but isn't is possible to raise an exception
from your method in case the update fails? The exception should be of type 'A' = application error, which in
turn sets the work item to status 'Error' and the workflow too.
 
Regards,
 
Fred Kouw
 
"Becker, Stephan" wrote:
 
> Hi everyone,
>
> I need to send a workflow into error from within a background method in case
> a direct table update fails. How do I do this most elegantly? Will a simple
> "rollback work." do the trick?
>
> I tried the process control "Cancel Workflow", which sets the workflow to
> "logically deleted" and should, believing the documentation in the workflow
> builder, send the main workflow into error, but the latter stays in status
> "Started", which gives me a bit of a headache, as it would be such a nice
> feature to stop the main workflow for manual rework in case of grave system
> errors like update failures etc. which need to be corrected manually in any
> case..
>
> Thanks,
> Regards,
> Stephan
>
> _________________________________________________________________________________________
> This inbound message from KPN has been checked for all known viruses by KPN IV-Scan, powered by MessageLabs.
> For further information visit: http://www.veiliginternet.nl
> _____________________________________________________________________________________________
 
 
**********************************************************************
This e-mail and any attachment may contain confidential and privileged
material intended for the addressee only. If you are not the addressee, you
are notified that no part of the e-mail or any attachment may be disclosed,
copied or distributed, and that any other action related to this e-mail or
attachment is strictly prohibited, and may be unlawful. If you have received
this e-mail by error, please notify the sender immediately by return e-mail,
and delete this message. Koninklijke Luchtvaart Maatschappij NV (KLM), its
subsidiaries and/or its employees shall not be liable for the incorrect or
incomplete transmission of this e-mail or any attachments, nor responsible
for any delay in receipt.
**********************************************************************
 
_____________________________________________________________________________________________
This outbound message from KPN has been checked for all known viruses by KPN IV-Scan, powered by MessageLabs.
For further information visit: http://www.veiliginternet.nl
_____________________________________________________________________________________________
 


More information about the SAP-WUG mailing list