Posted: Thu Jul 06, 2006 6:47 pm Post subject: Varying number of record in CWF
Acolyte
Joined: 19 Dec 2005 Posts: 67
I need to transform XML message to Cobol Copybook. XML message which I am getting is of the form <X><Y>abc</Y></X>. Number of time Y element present in xml will be varying everytime. I need to convert this XML message to CWF i.e. cobol copy book. I have two diffrent message set for XML and CWF. So if Y is repeating twice in XML then I need to send Y...Y. For threetimes Y..Y..Y.. What property of message set or message needs to be modified so that I will be able to send varying number opf records for Y depending upon number of Y elemetn present in XML message.
Please understand that you have asked a question about basic use of the product. You have to build a CWF model that can handle your various forms of output data, including different numbers of repeats.
You then have to use Broker to copy field from the input message into the appropriate fields in the output message.
The only complicated part of your message is that you have to do repeating structures/elements in CWF. CWF has some specific limitations for repeating structures. These are relatively well documented. You may have to do some math in your transformation code to accomodate these limitations. _________________ I am *not* the model of the modern major general.
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