import com.sap.gateway.ip.core.customdev.util.Message;
def Message processData_wrapper(Message message) {
String folder = message.getProperties().get("input_data_folder");
String fileContents = new File(folder + 'toobig.input.property_file.orders.json').getText('UTF-8')
message.setProperty("orders", fileContents);
String fileContents2 = new File(folder + 'toobig.input.property_file.deliveries.json').getText('UTF-8')
message.setProperty("deliveries", fileContents2);
processData(message);
// You can also write large body or property to file
def outputFile = new File(folder + 'toobig.output.property_file.orders.json')
outputFile.write(message.getProperties().get("orders"))
// Delete large output to avoid UI issues
message.setProperty("orders", "removed");
message.setProperty("deliveries", "removed");
return message;
}
def Message processData(Message message) {
// Develop your usual method.
return message;
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
6 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |