on 08-13-2015 11:42 AM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.