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 » Nested data structure

Post new topic  Reply to topic
 Nested data structure « View previous topic :: View next topic » 
Author Message
ajomillar
PostPosted: Fri Nov 21, 2003 12:39 pm    Post subject: Nested data structure Reply with quote

Centurion

Joined: 22 Aug 2003
Posts: 121
Location: Milwaukee, WI

In my process, I've defined a Data Structure known as EMWF-CustomerError that has an array of a nested data structure, ErrorDetail. Here's an snippet from the Workflow XML message sent to Workflow.

Code:

<ProcInstInputData>
   <EMWF-CustomerError>
    <Office>887X</Office>
    <CustomerId>123456</CustomerId>
    <CustomerName>JO'S PIZZA INC</CustomerName>
    <ErrorDate>11/12/2003 16:35:01</ErrorDate>
    <ErrorDetail>
        <ErrorCode>123R</ErrorCode>
        <ErrorText>this is an error</ErrorText>
        <ErrorCode>321R</ErrorCode>
        <ErrorText>this is another error</ErrorText>
    </ErrorDetail>
   </EMWF-CustomerError>
  </ProcInstInputData>


Workflow sends the following error message to the Reply Q:

Code:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<WfMessage>
 <WfMessageHeader>
  <ResponseRequired>No</ResponseRequired>
  <UserContext>This is my return data</UserContext>
 </WfMessageHeader>
 <ProcessTemplateExecuteResponse>
  <Exception>
   <Rc>1104</Rc>
   <Parameters>
    <Parameter>ErrorDetail.ErrorCode</Parameter>
    <Parameter>EMWF-CustomerError</Parameter>
   </Parameters>
   <MessageText>FMC01104E Data member 'ErrorDetail.ErrorCode' of data structure 'EMWF-CustomerError' not found. </MessageText>
   <Origin>e:\v340\src\fmcmctnm.cxx(351)</Origin>
  </Exception>
  <RequestAsHexString>...</RequestAsHexString>
 </ProcessTemplateExecuteResponse>
</WfMessage>


I verified the data structure was properly imported to Runtime. What could I do to fix the problem?
Back to top
View user's profile Send private message MSN Messenger
vennela
PostPosted: Fri Nov 21, 2003 12:56 pm    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

From what you said shouldn't this
Code:


    <ErrorDetail>
        <ErrorCode>123R</ErrorCode>
        <ErrorText>this is an error</ErrorText>
        <ErrorCode>321R</ErrorCode>
        <ErrorText>this is another error</ErrorText>
    </ErrorDetail>


be like this

Code:


    <ErrorDetail>
        <ErrorCode>123R</ErrorCode>
        <ErrorText>this is an error</ErrorText>
    <ErrorDetail>
    </ErrorDetail>
        <ErrorCode>321R</ErrorCode>
        <ErrorText>this is another error</ErrorText>
    </ErrorDetail>
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ajomillar
PostPosted: Mon Nov 24, 2003 10:57 am    Post subject: Reply with quote

Centurion

Joined: 22 Aug 2003
Posts: 121
Location: Milwaukee, WI

Yes. I'll try using that structure.
Back to top
View user's profile Send private message MSN Messenger
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 » Nested data structure
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.