Send workflow into error from background method

Becker, Stephan stephan_becker.ext at siemens.com
Tue Oct 28 15:34:50 EST 2003


Hi Fred,
 
Sorry, I should have been more precise:
 
I must rollback all updates in a Logical Unit of Work if at least one of the
updates fails (ie all items of an invoice must be updated or none). The
exception would not rollback previous updates in the same LUW.
 
Regards,
Stephan
 
 
-----Mensaje original-----
De: Kouw, FA - SPLTX [mailto:fa.kouw at td.klm.com]
Enviado el: 28 October 2003 16:09
Para: SAP-WUG at MITVMA.MIT.EDU
Asunto: Re: Send workflow into error from background method
 
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