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

Index of upper level in PI Graphical mapping

$
0
0

Hello experts,

 

I have an incoming structure like this:

 

<source>

     <item>

          <subitem>

          </subitem>

          <subitem>

          </subitem>

     </item>

 

     <item>

          <subitem>

          </subitem>

     </item>

 

     <item>

     </item>

</source>

 

the target structure is:

 

<target>

     <item>

          <subitem>

               <item_index>  1</item_index>

               <subitem_index>  1</subitem_index>

          </subitem>

          <subitem>

               <item_index> 1</item_index>

               <subitem_index> 2  </subitem_index>

          </subitem>

     </item>

 

     <item>

          <subitem>

               <item_index>  2</item_index>

               <subitem_index>  1</subitem_index>

          </subitem>

     </item>

 

     <item>

     </item>

</target>

 

In other word, I need to get an index of Item node in the context of SubItem.

How can I do this using graphical mapping tool's functions?

 

I am able to get SubItem index using  Index[1,1] and SplitByValue functions, but for Item in the context of SubItem it doesnt work, as any Item may have different numbers of SubItems.

 

Any help is appreciated.

Thanks!


Viewing all articles
Browse latest Browse all 7030

Trending Articles



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