cancel
Showing results for 
Search instead for 
Did you mean: 

REG: Java Mapping

Former Member
0 Kudos

Hi All,

In my scenario i have 1 source message interface and 2 target interface. I am using javamapping for transformation.After transformation i need to send input file to one of the target interface based on a condition( ie file name). Can someone plese provide me with the syntax how this can be achived in java mapping.

Thanks in advance,

Siva

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Srini,

Thanks for ur quick response, but my problem is not getting the file name. I need syntax by which my output stream will pass data to its respective Messsage Type.

Thanks

Siva

Former Member
0 Kudos

Hi

Why you need to go for JAVA mapping and Syntax

Use Message mapping Standard function "Node" Function "Creatif" Based on condition

create Source Node based on this condition.

No need any syntax

rgds

srini

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Srini,

I have go for java mapping and i have no choice for that because i have some reqirment which cannot handled in graphical mapping. Can my requirment( ie sending file to its respective Message Interface or Message Type) using java mapping can be achived.If yes please provide me the code for the same.

Thanks,

Siva

Former Member
0 Kudos

Cool

Then create Message Mapping (Mapping Program 1) can be handled u r requirement specified based on Filename / and Ur java Coding (Mapping Program 2)

Now in Interface mapping

Source Interface -


> (Mapping Program 1) -


> Target Interface

(Mapping Program 2)

this willl work for u y to code standard available function in coding and re - inventiing the wheel

Srini

Former Member
0 Kudos

Hi

Filename means u r using Sender File Adapter , if so then use in Sender Adapter "Adapter Spec Config"

Select Check box "FileName" , now write Dynamic Configuration UDF in u r message mapping to cpature u r filename (Testing to be done at runtime -- will not work with test tab )

Now use Message mapping condition based on u r filename , use constant to comaper if it same then sent to target or else whatever cond u have in u r business logic

rgds

srini