cancel
Showing results for 
Search instead for 
Did you mean: 

Methods of TransformationInput classes

Former Member
0 Kudos

I am new to SAP PI. While going through java interfaces I found TransformationInput class and different methods like

1) transformationInput.getInputParameters()

  .getString()

2)

transformationInput.getInputPayload()

  .getInputStream() , etc

Can someone explain in detail what this method is actuallu doing.

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

iaki_vila
Active Contributor
0 Kudos

Hi Sharharyar,


1) transformationInput.getInputParameters()

  .getString()

You can use paremeters in your mappings. For example you can define in the Integration Directory the parameter "Enviroment" in order to have in each PI environment the name of "DEV - QUA - PRO".

With this method you can get this parameter. Concretely, with that instruction you will have a string


variable with the parameters.

2)

transformationInput.getInputPayload()

  .getInputStream()

To get the message payload in InputStream format. This format can be use easily with DOM parser like this example shows: Java mapping with DOM and SAX parsers in new mapping API(PI 7.1) - Process Integration - SCN Wiki

Hope this helps.

Regards.

Answers (0)