import [Link].
Message;
import [Link];
def Message processData(Message message) {
def body = [Link]([Link]) as String;
def messageLog = [Link](message);
if(messageLog != null){
[Link]("Logging#1", "Incoming Payload")
[Link]("ResponsePayload1:", body, "text/plain");
}
body = [Link]("<Lead>","");
body = [Link]("</Lead>","");
// body = [Link]("10000000","10000001");
//body = [Link]("<Lead>","<LeadCollection><Lead>");
//body = [Link]("</Lead>","</Lead></LeadCollection>");
body = [Link]("MT_Portal_Integration","ns0:MT_Portal_Integration");
//body = [Link]("</Records></MT_Portal_Integration>","");
/*
body = [Link]("<Organization>","<Company>");
body = [Link]("</Organization>","</Company>");
body = [Link]("<Organization/>","<Company/>");
body = [Link]("<Email>","<AccountEMail>");
body = [Link]("</Email>","</AccountEMail>");
body = [Link]("<Email/>","<AccountEMail/>");
body = [Link]("<Website>","<AccountWebsite>");
body = [Link]("</Website>","</AccountWebsite>");
body = [Link]("<Website/>","<AccountWebsite/>");
body = [Link]("<Country>","<AccountCountry>");
body = [Link]("</Country>","</AccountCountry>");
body = [Link]("<Country/>","<AccountCountry/>");
body = [Link]("<State>","<AccountState>");
body = [Link]("</State>","</AccountState>");
body = [Link]("<State/>","<AccountState/>");
body = [Link]("<City>","<AccountCity>");
body = [Link]("</City>","</AccountCity>");
body = [Link]("<City/>","<AccountCity/>");
*/
[Link](body);
if(messageLog != null){
[Link]("Logging#2", "Outgoing Payload")
[Link]("ResponsePayload2:", body, "text/plain");
}
map = [Link]();
value = [Link]("oldProperty");
[Link]("oldProperty", value + "modified");
[Link]("newProperty", "newProperty");
return message;
}