on 10-01-2018 1:32 PM
Step1: Stored XML (data) in an external parameter (EXP1).
Step2: Working on another xml feed from Successfactors - used a groovy script to manipulate data on second xml. Can someone guide me in reading the external parameter EXP1 in my groovy script in step 2.
PS: I don't want to combine both the xmls using content modifier.
Hi Sri,
Thanks for your answer.
I am aware of reading the parameter in groovy. But my question is on reading a parameter whose value is a xml load. I worked it out and completed my task. Once again thanks for your answer.
Thanks,
Kiran.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Kiran,
Below script will return the value of Property you have set(Assuming you have set the property using content modifier)
import com.sap.gateway.ip.core.customdev.util.Message;
import java.util.HashMap;
def Message processData(Message message) {
//Body
def body = message.getBody();
// message.setBody(body + "Body is modified");
//Headers
//Properties
map = message.getProperties();
value = map.get("EXT_PARAM");
return message;
}
Regards,
Sriprasad Shivaram Bhat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
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.