cancel
Showing results for 
Search instead for 
Did you mean: 

Message Mapping

Former Member
0 Kudos

Hi All,

As per my requirement, The target node should not be created when source doesn't send any data. i.e null value.

Please suggest how to do this.

Thanks in advance !

Accepted Solutions (0)

Answers (4)

Answers (4)

ambrish_mishra
Active Contributor
0 Kudos

Safest way:

source field ->mapWithDefault - > not EQ null -> creatif - > Target.

Ambrish

Muniyappan
Active Contributor
0 Kudos

Hi,

please share your input and output xml file.

1. are you trying not to create node based on the field is empty?

2. or source node is not having any elements then not to create target node?

if you are trying for 2nd option as mentioned by  Zameer Farook  set occurrence to 0..unbounded or 0..1. then it will not create any node.


if you want option 1 then you have to use mapwihtdefault,Equals,createif functions to get your requirement done.

Regards,

Muniyappan.

former_member190624
Active Contributor
0 Kudos

Hi Chethan,

Try as shown below,

Source --> exists(Node function) ---> createif (Node function)--> Target

Hope this will help

Regards

Hari

zameerf
Contributor
0 Kudos

Hi Chethan,

Keep your target node occurrence as 0..unbounded or 0..1.

Map the source segment to the target segment, depending on the source your target node will be either created or will be null(not created).

Regards,

Zameer