on 03-24-2014 4:45 PM
Hi,
I am trying to develop a message mapping for the following case:
For the case that the subtree has cardinality 1..n there are some examples on the web, e.g. useOneAsMany (SAP-Bibliothek - Partner Connectivity Kit). But that does not fit my case. The subtree in the source message is optional here.
See a screenshot of the message mapping and my solution for the mapping of "Value1" below:
All other values are mapped 1:1.
Sadly, this solution does not work when "Struct2" has cardinality 0..unbound, for 1..unbound it works perfectly. Here is my example:
When I try the mapping, I get the following error message:
That is true. The first queue of the useOneAsMany function has more values than the second. But I don't know how I can fix it, so that it works for my example. Can anyone give me a hint please?
Setup is AEX 7.31.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your reply. The only difference I see in your solution is the additional "splitByValue" function. Why did you place it there?
I further simplified the example:
Now I get the error that the fist list has fewer context elements than the second. I used the following test data:
Why does it work in your example? I don't see the difference.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.