cancel
Showing results for 
Search instead for 
Did you mean: 

Java code in creating Nodes

former_member1330829
Participant
0 Kudos

Hi All,

I needed some help in java code for generating multiple nodes based on some source field.

The condition is i have 3 IDs in Source. The target Node "AssetDetail" is to be generated depending on the source, i.e if ID1/ID2/ID3 exists, correspondig 3 "AssetDetail" is to be generated on the target. If only ID1/ID2 exits, only 2 "AssetDetail" and if none, no "AssetDetail".

I tried to achieve it using standard functions, but couldn't. Could anyone please suggest me some code to achieve the same.

Thanks.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member184789
Active Contributor
0 Kudos

Hi,

Create 2 duplicate subtrees of the target node so that you now have three AssetDetail in target, & have a createIf condition for each of the three target nodes.

manigram
Active Participant
0 Kudos

Hi,

In Target side how many fields are there only one or corresponding like AssetDetail1,AssetDetail2,AssetDetail3 are there.

Share the source and target structure and condition clearly


Regards,

Mani