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 » XML Interface cannot handle Data Container Arrays ??

Post new topic  Reply to topic
 XML Interface cannot handle Data Container Arrays ?? « View previous topic :: View next topic » 
Author Message
apdutta
PostPosted: Thu Jan 12, 2006 9:09 pm    Post subject: XML Interface cannot handle Data Container Arrays ?? Reply with quote

Novice

Joined: 14 Dec 2004
Posts: 11

The first activity of my process template expects an input data structure which has few of the members as arrays (each is an array of sub-datastructures). Following is the structure of the complete data structure.

ECOData
    ECOId
    ECOStatus
    SMARAGDFlagSet
    ECORecipientDefined
    ECOAction
    ECRId
    ECRStatus
    ECROwnerIdIdeal
    CreateECOAcceptorId
    CreateECORejectorId
    OptionalAttManaged
    ImplementECORejectorId
    ImplementECOAcceptorId

    ECOSupporter
      ECOSupporterId

    ECOOwner
      ECOOwnerId

    ECOReviewer
      ECOReviewerId


As we see, I expect multiple ECOSupporter in the input.

I have to start the Process Instance using MQ Workflow XML Message Interface. The XML I send to EXEXMLINPUTQ is

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- This document is to create and start a process template -->
<WfMessage>
<WfMessageHeader>
<ResponseRequired>Yes</ResponseRequired>
<UserContext>I want this data back</UserContext>
</WfMessageHeader>
<ProcessTemplateCreateAndStartInstance>
<ProcTemplName>Create_ECO_New</ProcTemplName>
<ProcInstName>Create_ECO_New</ProcInstName>
<KeepName>false</KeepName>
<ProcInstInputData>
<ECOData>
<ECOId>12</ECOId>
<ECOStatus />
<SMARAGDFlagSet />
<ECORecipientDefined />
<ECOAction/>
<ECRId />
<ECRStatus />
<ECROwnerIdIdeal />

<CreateECOAcceptorId />
<CreateECORejectorId />
<OptionalAttManaged />
<ImplementECORejectorId />
<ImplementECOAcceptorId />

<ECOSupporter>
<ECOSupporterId>FTLSUPPORTER1</ECOSupporterId>
</ECOSupporter>

<ECOOwner>
<ECOOwnerId />
</ECOOwner>

<ECOOwner>
<ECOOwnerId />
</ECOOwner>

<ECOReviewer>
<ECOReviewerId />
</ECOReviewer>

<ECOReviewer>
<ECOReviewerId />
</ECOReviewer>

</ECOData>

</ProcInstInputData>
</ProcessTemplateCreateAndStartInstance>
</WfMessage>


The process fails to instantiate. Inside the same above message if I repeat the following tag twice, it works !!!
<ECOSupporter>
<ECOSupporterId>FTLSUPPORTER1</ECOSupporterId>
</ECOSupporter>


If I send only one ECOSupporter, MQ Workflow is not able to map it to the input container of process and the process does not start. Is that how MQWorkflow is expected to behave ?? Is it necessary for me to send atleast two tags for any data container member which is an array ???
Back to top
View user's profile Send private message
vennela
PostPosted: Thu Jan 12, 2006 11:28 pm    Post subject: Reply with quote

Jedi Knight

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

Quote:
Is it necessary for me to send atleast two tags for any data container member which is an array ???


Yes
Back to top
View user's profile Send private message Send e-mail Visit poster's website
apdutta
PostPosted: Fri Jan 13, 2006 11:07 pm    Post subject: XML Interface cannot handle Data Container Arrays ?? Reply with quote

Novice

Joined: 14 Dec 2004
Posts: 11

Thanks a lot for your response.

Is there a better solution to the problem then. I am finding it difficult to put in a restriction on the XML sender to mandatorily send atleast 2 tags.

Can I set up the input data container in any way to be able to handle one tag also? Is it possible to make changes in the Workflow model or the Data structures in any way such that the XML sender can send one or more tags.
Back to top
View user's profile Send private message
vennela
PostPosted: Sat Jan 14, 2006 9:50 am    Post subject: Reply with quote

Jedi Knight

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

If he is taking trouble to form an XML that complies to Workflow standard then why can't he do just the extra step. It is well documented in the workflow programming manual.

Ask the sender to put it on a different queue and you write a program to change the xml and put it to EXEXMLINPUTQ.
If not ask the person putting to change his program.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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 » XML Interface cannot handle Data Container Arrays ??
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.