Groovy script
import com.sap.gateway.ip.core.customdev.util.Message;
import java.util.HashMap;
import groovy.json.*;
import groovy.util.logging.*;
import org.codehaus.*;
def Message processData(Message message) {
def body = message.getBody(java.lang.String) as String;
def XmlDataObject = new XmlSlurper().parseText(body)
def xmldata = []
def s="";
XmlDataObject.'**'.findAll { it.name()== 'UserServiceTransactionProcessingTypeCode'}.each { a ->
xmldata << a.text() }
message.setProperty("StatusCode",xmldata);
def newxmldata = xmldata as String[]
newxmldata = newxmldata.contains("ZCW1")
message.setProperty("StatusCode1",newxmldata);
return message;
}