cancel
Showing results for 
Search instead for 
Did you mean: 

Default value in receiver file adapter

former_member182412
Active Contributor
0 Kudos

Hi Experts,

I am doing JMS to FILE scenario, receiver file structure got 100 fields, i need to create the file with all 100 fields, if anything doesn't exist in source side i need to put empty value in the receiver file, i know i can achieve this using MapWithDefault node function, but i got more than 100 fields.

is there any simple way to cheive this ????

Accepted Solutions (1)

Accepted Solutions (1)

former_member200962
Active Contributor
0 Kudos
i know i can achieve this using MapWithDefault node function
is there any simple way to cheive this ????

I dont think that you can find anything simpler

Answers (2)

Answers (2)

Former Member
0 Kudos

You can achieve this by keeping the receiver field occurance as 0..1. So, if it doesn't have any value then it would be empty.

Thanks,

former_member182412
Active Contributor
0 Kudos

Hi Hareen,

If the source field does not exist even the reciever side field occurance 0..1, the field is not coming in recever structure after the mapping, so in the file it is not creating empty value, for example if the source side 20 fields exist after the mapping target side only 20 fields appearing in target xml because we have 0..1 occurance.

Former Member
0 Kudos

Hi Praveen,

Can you please elaborate the issue/requirement, what exactly you are looking for?

Thanks,

Former Member
0 Kudos

hi.

I don't think that is possible in the mapping. but you could switch to xslt and then it is easier to change.