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

Choosing between Graphical Variable and useOneAsMany

$
0
0

To repeat a target field in message mapping, we can use one-to-one mapping, CopyValue, Graphical Variable and useOneAsMany.

 

Example 1: -

Let’s try one-to-one mapping and CopyValue in below example. Both one-to-one mapping and CopyValue fail to produce correct result.

A1.png

A2.png

Using Graphical Variable / useOneAsMany, produces correct result.

A3.png

A4.png

Example 2:-

Using Graphical Variable will not produce correct result, in below example. Using useOneAsMany, produces correct result.

A5.png

A6.png

So, how to choose between Graphical Variable and useOneAsMany?

If input hierarchy is maintained in output, choose Graphical Variable. If input hierarchy is becoming flat in output, choose useOneAsMany. FYI, Graphical Variable is simple and efficient at runtime (Link page 8).

 

Below diagram guides on, choosing between Graphical Variable and useOneAsMany.

A7.png

 

FYI. How to use Graphical Variable (slide 9 in this demo). Variables in the Target Structure. useOneAsMany. copyValue.


Viewing all articles
Browse latest Browse all 7030

Trending Articles



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