|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Handling elements with MaxOccurs bigger then 1 in CWF |
« View previous topic :: View next topic » |
Author |
Message
|
omatan234 |
Posted: Tue Jul 04, 2017 2:53 pm Post subject: Handling elements with MaxOccurs bigger then 1 in CWF |
|
|
Newbie
Joined: 12 Jun 2017 Posts: 8
|
WMB version - 8.
I'm using CWF in my MessageSet.
I have a few elements set to have MaxOccurs bigger then 1, 999999 to be specific.
When I'm transporting a message I oviusly don't have that actual number of occurens in my elements but the MessageSet expect the message to have that exact number of elements (which isn't realistic).
In the end the message doesn't have the required number of occurens so it goes to the next element and it creats a mismatch between the expected element (Messageset) and the actual element (messege).
The exception is BIP 5344
How can I change my MessageSet's CWF so it can accept the dynamic number of occurens of the element and keep on to the next element without any errors ? |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Jul 04, 2017 4:39 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
You'll have a lot better luck using DFDL instead of CWF.
Generally, though, when you have a dynamic number of records, you need to know two things: 1) When does a given record end - this could be at a line end, a fixed width, some kind of separator, etc. 2) When does the whole set of records end - this pretty much has to be a different thing than the thing used previously.
DFDL does also let you use one field to specify how many occurances of another record there will be - so you could say "Field X says how many Record Ys there will be" _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
omatan234 |
Posted: Tue Jul 04, 2017 8:21 pm Post subject: |
|
|
Newbie
Joined: 12 Jun 2017 Posts: 8
|
Lets say I cannot use DFDL, I can only use MRM and CWF.
What I need to change in MessageSet or CWF properties in order for this to work.
And to connect to your answer, how can i saperate each occurens.
Please answer both questions. |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Jul 05, 2017 3:40 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
omatan234 wrote: |
Lets say I cannot use DFDL, I can only use MRM and CWF.
What I need to change in MessageSet or CWF properties in order for this to work. |
The ones relevant to your data.
omatan234 wrote: |
And to connect to your answer, how can i saperate each occurens. |
By using the pieces of your data that indicate where things are separated.
omatan234 wrote: |
Please answer both questions. |
I'm afraid that I'm a volunteer, and don't get paid to answer any questions at all.
You are creating a model of your data. This matches the structure of your data. If I knew what your actual data looked like, I could give better answers.
But I'm not getting paid to do so. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|