IDEMPIERE-2767 Web Services not working with UUID

This commit is contained in:
Diego Ruiz 2020-04-22 23:32:18 +02:00 committed by Carlos Ruiz
parent 3ede3738de
commit 7e91d03ac0
1 changed files with 9 additions and 1 deletions

View File

@ -410,7 +410,15 @@ public class ModelADServiceImpl extends AbstractService implements ModelADServic
} }
// Validate parameters // Validate parameters
try {
modelRunProcess.setADMenuID(validateParameter("AD_Menu_ID", modelRunProcess.getADMenuID())); modelRunProcess.setADMenuID(validateParameter("AD_Menu_ID", modelRunProcess.getADMenuID()));
} catch(XmlValueOutOfRangeException e) { // Catch the exception when the Process ID is not an Integer
String menuUU = getUUIDValue(modelRunProcess.xgetADMenuID());
if (menuUU == null) {
throw e;
}
modelRunProcess.setADMenuID(validateParameter("AD_Menu_ID", 0, menuUU));
}
try { try {
modelRunProcess.setADProcessID(validateParameter("AD_Process_ID", modelRunProcess.getADProcessID())); modelRunProcess.setADProcessID(validateParameter("AD_Process_ID", modelRunProcess.getADProcessID()));
} catch(XmlValueOutOfRangeException e) { // Catch the exception when the Process ID is not an Integer } catch(XmlValueOutOfRangeException e) { // Catch the exception when the Process ID is not an Integer