How to bind asynch method exception messages back to WF?

Mike Pokraka wug.replies at workflowconnections.com
Mon Jul 18 04:34:24 EDT 2005


Hi Jocelyn,
That would be far too simple :) We were trying to make use of the standard
method is BUS2081.PRELIMINARYPOST, which raises a single exception and
passes the application error message text back in it's variables.
In keeping with the FAQ, I suppose I should post our solution: we copied
the code into a custom synch method with a return parameter containing any
error message.
Thanks for the tip about the event with parameter though, I like it.
Cheers
Mike

Dart, Jocelyn wrote:
> Hi Mike,
> If you model it then the outcome effectively replaces the message.  By
> inference you know what the message is about because you had to know it
> to model the exception.  I take it you want to show the user the
> variables in the messaage?
> Why not raise it as an event, passing the message text as an event
> parameter, and handle it as an alternative terminating event of your
> method?
>
>
> Regards,
> Jocelyn Dart
> Senior Consultant
> SAP Australia Pty Ltd.
> Level 1/168 Walker St.
> North Sydney
> NSW, 2060
> Australia
> T   +61 412 390 267
> M   + 61 412 390 267
> E   jocelyn.dart at sap.com
> http://www.sap.com
>
> The information contained in or attached to this electronic transmission
> is confidential and may be legally privileged. It is intended only for
> the person or entity to which it is addressed. If you are not the
> intended recipient, you are hereby notified that any distribution,
> copying, review, retransmission, dissemination or other use of this
> electronic transmission or the information contained in it is strictly
> prohibited. If you have received this electronic transmission in error,
> please immediately contact the sender to arrange for the return of the
> original documents.
> Electronic transmission cannot be guaranteed to be secure and
> accordingly, the sender does not accept liability for any such data
> corruption, interception, unauthorized amendment, viruses, delays or the
> consequences thereof.
> Any views expressed in this electronic transmission are those of the
> individual sender, except where the message states otherwise and the
> sender is authorized to state them to be the views of SAP AG or any of
> its subsidiaries. SAP AG, its subsidiaries, and their directors,
> officers and employees make no representation nor accept any liability
> for the accuracy or completeness of the views or information contained
> herein. Please be aware that the furnishing of any pricing information/
> business proposal herein is indicative only, is subject to change and
> shall not be construed as an offer or as constituting a binding
> agreement on the part of SAP AG or any of its subsidiaries to enter into
> any relationship, unless otherwise expressly stated.
>
>
> -----Original Message-----
> From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
> Of Mike Pokraka
> Sent: Tuesday, 12 July 2005 12:00 AM
> To: sap-wug at mit.edu
> Subject: How to bind asynch method exception messages back to WF?
>
> Hello wuggers,
>
> We have an asynchronous method defined with an exception. If the
> exception
> is not modelled, the WF goes into error and the message is visible in
> the
> WF log.
> If the exception is modelled however, the message is nowhere to be
> found.
> Logic dictates that if it is visible in the error log it should be
> accessible to WF without clunky workarounds..... but then again is SAP
> always logical?
>
> We simply wanted to get the message back into WF and display it in an
> item
> text for a user.
>
> Any input appreciated,
> Cheers
> Mike Pokraka
> Senior Consultant
> Workflow Connections Ltd.
> Mobile: +44 (0)7786 910 855
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug
>
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug
>


Mike Pokraka
Senior Consultant
Workflow Connections Ltd.
Mobile: +44 (0)7786 910 855


More information about the SAP-WUG mailing list