Quantcast
Channel: SCN : All Content - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 7030

Using useOneAsMany function in Message Mapping if subtree is optional

$
0
0

Hi,

 

I am trying to develop a message mapping for the following case:

  • In the source message, there is a value "Value1" which is on the same level as a subtree "Struct2" which can occur 0..unbound times
  • In the target message the value "Value1" has to be part of that subtree, so it has to be copied for each occurence of "Struct2" in the source message

 

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:

Capture.PNG

 

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.


Viewing all articles
Browse latest Browse all 7030

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>