ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » Workflow Error Handling

Post new topic  Reply to topic
 Workflow Error Handling « View previous topic :: View next topic » 
Author Message
modene
PostPosted: Wed Apr 06, 2005 12:28 am    Post subject: Workflow Error Handling Reply with quote

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?

Regards
modene (apprentice)
Back to top
View user's profile Send private message
Ratan
PostPosted: Wed Apr 06, 2005 8:25 am    Post subject: Reply with quote

Grand Master

Joined: 18 Jul 2002
Posts: 1245

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
Back to top
View user's profile Send private message Send e-mail
hos
PostPosted: Thu Apr 07, 2005 5:45 am    Post subject: Reply with quote

Chevalier

Joined: 03 Feb 2002
Posts: 470

Modene,

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:

<ActImplCorrelID>RUEAAAABALQABwAAAAAAAAAAAAAAAgAAAAEAs0ABAAAAAAAAAAAAAAACQQA
AAAEAtAALAAAAAAAAAABF</ActImplCorrelID>
<Exception>
<Rc>1113</Rc>
<Parameters>
<Parameter>any;application;specific;text</Parameter>
<Parameter> <null/> </Parameter>
</Parameters>
<MessageText></MessageText>
<Origin>Upes Framework</Origin>
</Exception>
</ActivityImplInvokeResponse>
</WfMessage>
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » Workflow Error Handling
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.