|
Currently there are several classes implementing the Process interface, without this issue, i.e.
https://code.openbravo.com/erp/devel/pi/file/f7371a718253/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_BankStatementProcess.java#l25 [^]
Here you have another example of the code generated by WAD:
private void process58763832F5F3485CAD33B8B9FCD6C640(String strProcessId, VariablesSecureApp vars, HttpServletRequest request, HttpServletResponse response) throws IOException,
ServletException {
ProcessBundle pb = new ProcessBundle(strProcessId, vars).init(this);
HashMap<String, Object> params= new HashMap<String, Object>();
pb.setParams(params);
OBError myMessage = null;
try {
new org.openbravo.erpCommon.ad_process.UpdateAuditTrail().execute(pb);
myMessage = (OBError) pb.getResult();
myMessage.setMessage(Utility.parseTranslation(this, vars, vars.getLanguage(), myMessage.getMessage()));
myMessage.setTitle(Utility.parseTranslation(this, vars, vars.getLanguage(), myMessage.getTitle()));
} catch (Exception ex) {
myMessage = Utility.translateError(this, vars, vars.getLanguage(), ex.getMessage());
log4j.error(ex);
if (!myMessage.isConnectionAvailable()) {
bdErrorConnection(response);
return;
}
}
processButtonHelper(request, response, vars, myMessage);
} |
|