| Author | Message | 
		
		  | noblate | 
			  
				|  Posted: Fri Oct 29, 2004 10:05 am Post subject: about CWF |   |  | 
		
		  | Apprentice
 
 
 Joined: 06 Sep 2004Posts: 27
 
 
 | 
			  
				| Hi all the QI Gurus, An element in a message in CWF, can be variable length, can repeat, can appear or not appear. Is this right? if this is true, CWF is as powerful as TDS.
 Noblate
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | siliconfish | 
			  
				|  Posted: Fri Oct 29, 2004 10:16 am Post subject: |   |  | 
		
		  |  Master
 
 
 Joined: 12 Aug 2002Posts: 203
 Location: USA
 
 | 
			  
				| An element in a message in CWF, can be variable length, -- NO (but the last element can be variable length) 
 can repeat, -- YES
 can appear or not appear. YES
 
 CWF is as powerful as TDS. Both of them has its own advantages.
 for ex : TDS support only string format and CWF support data types.
 _________________
 siliconfish
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | kirani | 
			  
				|  Posted: Fri Oct 29, 2004 11:11 am Post subject: |   |  | 
		
		  | Jedi Knight
 
 
 Joined: 05 Sep 2001Posts: 3779
 Location: Torrance, CA, USA
 
 | 
			  
				| 
   
	| siliconfish wrote: |  
	| can appear or not appear. YES 
 |  You cannot have an optional elements in CWF.
 _________________
 Kiran
 
 
 IBM Cert. Solution Designer & System Administrator - WBIMB V5
 IBM Cert. Solutions Expert - WMQI
 IBM Cert. Specialist - WMQI, MQSeries
 IBM Cert. Developer - MQSeries
 
 
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | siliconfish | 
			  
				|  Posted: Fri Oct 29, 2004 12:02 pm Post subject: |   |  | 
		
		  |  Master
 
 
 Joined: 12 Aug 2002Posts: 203
 Location: USA
 
 | 
			  
				| I considered it as NULL value permitted/not permitted. Ok I haven't thought that it meant the entire element is missing. _________________
 siliconfish
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | noblate | 
			  
				|  Posted: Fri Oct 29, 2004 12:24 pm Post subject: |   |  | 
		
		  | Apprentice
 
 
 Joined: 06 Sep 2004Posts: 27
 
 
 | 
			  
				| Thanks for Kiran and Siliconfish, 
 For example I define a binary element.
 The “Length Type” is set to be “Value Of”
 The “Length Value Of” is set to an integer element
 Make this integer element appear before this binary element. Can this way make this binary element to be variable length?
 
 Again set the “Repeat Count Type” to “Value Of”
 Set the “Repeat Count Value Of” to a integer element
 And make this integer element appear before this binary element.
 If this integer element in the coming in message contains a 0. doesn’t it means that this binary is not appear in the coming in message?
 
 Noblate
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | kirani | 
			  
				|  Posted: Fri Oct 29, 2004 12:43 pm Post subject: |   |  | 
		
		  | Jedi Knight
 
 
 Joined: 05 Sep 2001Posts: 3779
 Location: Torrance, CA, USA
 
 | 
			  
				| 
   
	| noblate wrote: |  
	| Make this integer element appear before this binary element. Can this way make this binary element to be variable length?
 
 |  Yes.
 
 
 
   
	| noblate wrote: |  
	| If this integer element in the coming in message contains a 0. doesn’t it means that this binary is not appear in the coming in message?
 
 |  Yes. But, this does not mean it's an Optional Element.
 _________________
 Kiran
 
 
 IBM Cert. Solution Designer & System Administrator - WBIMB V5
 IBM Cert. Solutions Expert - WMQI
 IBM Cert. Specialist - WMQI, MQSeries
 IBM Cert. Developer - MQSeries
 
 
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | noblate | 
			  
				|  Posted: Fri Oct 29, 2004 1:11 pm Post subject: |   |  | 
		
		  | Apprentice
 
 
 Joined: 06 Sep 2004Posts: 27
 
 
 | 
			  
				| Thanks for Kiran, Again set the “Repeat Count Type” to “Value Of”
 Set the “Repeat Count Value Of” to a integer element
 And make this integer element appear before this binary element.
 If this integer element in the coming in message contains a 0.
 On the connection pane of an element, let the Mandatory be set to “no” Is the 0 means repeat 0 time or not appear? If the integer element contain 1, is the 1 means just one binary element or means one plus one repeat?
 
 Noblate
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | kirani | 
			  
				|  Posted: Fri Oct 29, 2004 2:38 pm Post subject: |   |  | 
		
		  | Jedi Knight
 
 
 Joined: 05 Sep 2001Posts: 3779
 Location: Torrance, CA, USA
 
 | 
			  
				| Repeat 0 times is same as the element is not appearing in the input message. This is applicable to the elements that can be repeated "X" number of times depending on some integer variable. This is similar to what you described in your post. 
 What I was trying to say is, in CWF format you cannot set Min Occurs to 0 for a non-repeating element. I don't want you to make an assumption that you can just set Min Occurs to 0 for an element to make it optional.
 
 I hope this clears it.
 _________________
 Kiran
 
 
 IBM Cert. Solution Designer & System Administrator - WBIMB V5
 IBM Cert. Solutions Expert - WMQI
 IBM Cert. Specialist - WMQI, MQSeries
 IBM Cert. Developer - MQSeries
 
 
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | noblate | 
			  
				|  Posted: Fri Oct 29, 2004 3:34 pm Post subject: |   |  | 
		
		  | Apprentice
 
 
 Joined: 06 Sep 2004Posts: 27
 
 
 | 
			  
				| Thank a lot for Kiran, 0 means no repeat, just one message, 1 means one message plus one repeat, this is strait forward.
 but what the "Mandary" mean in the connection pane means. when it is set to "no", doesn't it means the element can not appear. if it can be not appear, then how to let the parser know it is not appear. the best way should be to use the repeat number to tell the parser this element is not appear, if use a repeat number of "-1", that will very good.
 Noblate
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | kirani | 
			  
				|  Posted: Sat Oct 30, 2004 12:43 pm Post subject: |   |  | 
		
		  | Jedi Knight
 
 
 Joined: 05 Sep 2001Posts: 3779
 Location: Torrance, CA, USA
 
 | 
			  
				| The mandatory propery in Connection pane is ment for TDS wire format. _________________
 Kiran
 
 
 IBM Cert. Solution Designer & System Administrator - WBIMB V5
 IBM Cert. Solutions Expert - WMQI
 IBM Cert. Specialist - WMQI, MQSeries
 IBM Cert. Developer - MQSeries
 
 
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | noblate | 
			  
				|  Posted: Sat Oct 30, 2004 1:15 pm Post subject: |   |  | 
		
		  | Apprentice
 
 
 Joined: 06 Sep 2004Posts: 27
 
 
 | 
			  
				| A lot of Thanks to Kiran, I realy want to confirm my understanding. I have a WMQI version 2.02, it doesn't support TDS. It has a connection pane and on it a Mandatory can be set yes or no.
 one conclusion I want to confirm is whether an element in a message in CWF can be not appear.
 if it can not be not appear, then what Mandatory is used for. it has the ability to repeat, why not let it can be not appear, not appear can be regarded a special case of repeat. why the QI designer didn't let it work that way?
 Noblate
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | kirani | 
			  
				|  Posted: Sat Oct 30, 2004 2:01 pm Post subject: |   |  | 
		
		  | Jedi Knight
 
 
 Joined: 05 Sep 2001Posts: 3779
 Location: Torrance, CA, USA
 
 | 
			  
				| Ohhhh .. so you are at MQSI 2.02 ... I thought you were talking about WMQI 2.1 or WBIMB 5.0 
 
   
	| noblate wrote: |  
	| one conclusion I want to confirm is whether an element in a message in CWF can be not appear.
 
 |  I think this property is ignored, no matter what value you select.
 
 This product is very old, and I think it's out of Support also. I don't know why they had that property in MQSI 2.0.x version. It'd be better if you migrate to newer version of WBIBM.
 _________________
 Kiran
 
 
 IBM Cert. Solution Designer & System Administrator - WBIMB V5
 IBM Cert. Solutions Expert - WMQI
 IBM Cert. Specialist - WMQI, MQSeries
 IBM Cert. Developer - MQSeries
 
 
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  |  |