uCosminexus Service Platform, Basic Development Guide
Repeatedly maps a transformation-source node that occurs more than once to a transformation-destination node that occurs more than once as the mapping source. Can also sort the instances of a transformation-source node that occurs more than once.
This subsection explains the basic method for mapping looping. For details about synthesizing loops and looping dependent targets, see 6.6 Specifying Looping.
- Organization of this subsection
- (1) Function used
- (2) Setup procedure
(1) Function used
To repeatedly map a transformation-source node that occurs more than once to a transformation-destination node that occurs more than once as the mapping source, you use the loop node function. The following figure shows an example that uses the loop node function.
Figure 6-17 Usage example of the loop node function
(2) Setup procedure
To repeatedly map a transformation-source node that occurs more than once to a transformation-destination node that occurs more than once as the mapping source:
- From the palette, choose the loop node function (loop), and deploy it in the mapping viewer.
- Set up a mapping line.
- Use one of the following methods to open the Loop Node dialog box.
- Right--click the loop node function, and choose Setting.
- Double--click the loop node function.
The Loop Node dialog box opens.
For details about the Loop Node dialog box, see the manual Cosminexus Service Platform Reference.
- To sort the instances of a transformation-source node, click Add.
The Add/Edit Sort Condition dialog box opens.
For details about the Add and Edit Sort Condition dialog box, see the manual Cosminexus Service Platform Reference.
- Click Choose Node.
The Node Chooseion dialog box opens. In the Choose Node dialog box, specify the transformation-source node of the instances to be sorted.
- Specify the following items:
- Order
Choose ascending or descending.
- Language
Choose ja, en, or auto.
- Data type
Choose text or numeric.
- Case order
Choose Upper case or Lower case.
- Click OK.
The content specified in the Add/Edit Sort Condition dialog box is set up in Sort conditions in the Loop Node dialog box.
- To add keys to Sort conditions, repeat steps 4 through 7.
You can set up a maximum of eight keys.
- To change the order in Sort conditions, click Up or Down.
Sorting occurs sequentially, in the order of the conditions specified in Sort conditions.
For example, if date is specified at the top, followed by name, instances are first sorted according to date. If the same dates are found within the sorted result, they are further sorted by name.
- Click OK.
- Note
- Do not define a nested loop for the same transformation-destination node. That is, do not serially connect the loop node function to the same transformation-destination node.
- Do not specify multiple assignment lines of the same looping dependent target to the same transformation-destination node. For details about looping dependent targets, see 6.6.3 Mapping Looping Dependent Targets.
- Do not specify the looping--compatible line and assignment line of the same looping dependent target concurrently to the same transformation-destination node. For details about looping dependent targets, see 6.6.3 Mapping Looping Dependent Targets.
- When you specify a loop for a transformation-destination node, specify a looping dependent target for the descendant node of the transformation-destination node. For details about looping dependent targets, see 6.6.3 Mapping Looping Dependent Targets.
All Rights Reserved. Copyright (C) 2015, Hitachi, Ltd.