Posted: Fri Nov 21, 2003 12:39 pm Post subject: Nested data structure
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?
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>
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