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 » Extracting input data from an XML

Post new topic  Reply to topic
 Extracting input data from an XML « View previous topic :: View next topic » 
Author Message
Sreedevi
PostPosted: Tue Sep 25, 2007 9:34 am    Post subject: Extracting input data from an XML Reply with quote

Newbie

Joined: 25 Sep 2007
Posts: 3
Location: Bangalore

Im having an XML document which I have to validate.



<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<!DOCTYPE XML_BOPOCMQ>

<WfMessage>
<WfMessageHeader>
<ResponseRequired>Yes</ResponseRequired>
<UserContext>This data is sent back in the response</UserContext>

</WfMessageHeader>
<ProcessTemplateCreateAndStartInstance>
<ProcTemplName>Loan</ProcTemplName>
<ProcInstName>Loan</ProcInstName>
<KeepName>true</KeepName>
<ProcInstInputData>
<CustomerDetails>
<Name></Name>
<DateofBirth>12/05/1958</DateofBirth>
<Age>23</Age>
<Gender>Female</Gender>
</CustomerDetails>
</ProcInstInputData>
</ProcessTemplateCreateAndStartInstance>
</WfMessage>

I need to parse this XML through MQ workflow and validate it.

If the Name is a null value, a message should be sent to an error queue.

Can anyone please assist me on how to do this .
Back to top
View user's profile Send private message Send e-mail
vijaycr
PostPosted: Wed Sep 26, 2007 2:01 am    Post subject: Reply with quote

Acolyte

Joined: 11 Oct 2006
Posts: 62
Location: Singapore

If I understand correclty, you want to validate if a datastructure memeber is set before triggering the process.

MQWorkflow does not validate if a datastructure member is set or not before starting the process instance

You can achieve this by posting the message to a custom queue where a custom listener will validate the XML and pass only the successfull messages to EXEXMLINPUT queue. The messages that fail can be posted to an 'error' queue
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 » Extracting input data from an XML
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.