Posted: Wed Apr 06, 2005 12:28 am Post subject: Workflow Error Handling
Newbie
Joined: 06 Apr 2005 Posts: 7 Location: South Africa
Hi, forum members
I am new to MQ Workflow.
I would like to know how we can handle errors in Workflow.
If an external application responds to a UPES with an error, how do we go about telling Workflow about the error message?
I assume that we must set a non-zero value in PROGRAMRC. But, the application is responding with a specific error message (30 characters). How do we tell Workflow to display this error message to the client?
Are there specific values that must be set in PROGRAMRC and what is their meaning? Is it integer only?
Is a there a relation between PROGRAMRC and _RC?
populate the error message into one of the o/p container members and map it back to i/p container.
Set _RC to non 0 and set the exit condition to _RC =0
this will create a workitem for the UPES activity if the exit condition fails.
Assign the UPES activity to a perticular user, so that all the failed activities will be on his worklist.
ProgramRC and _RC are the same. _________________ -Ratan
you need to use the <Exception> tag in your UPES response. You can only use valid MQWF return code values in your exception object (see chapter 33 in the Programming Guide). The errorReason().messageText() method uses the MQWF message catalog to create the error message.
You can pick any suitable message that takes one or more parameters and provide the parameter values via the
<Parameter> tag (see e.g. chapter 34 The General Error Message). In
general RC=1113 should be used for UPES exception messages.
For instance your error message could look like this:
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum