Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0009564Openbravo ERPA. Platformpublic2009-06-19 14:542011-10-28 18:54
AinhoaPagola 
iperdomo 
normalminoralways
closedout of date 
20Ubuntu 8.4
pi 
 
Core
No
0009564: ProcessBundle not properly created
I have developed a class extending from Process.
In the method do execute, in the ProcessBundle I get as an entry, some attributes are null.

In the HCM module, in HCMC_employmentinformation_complete.java.

msg.setTitle(Utility.messageBD(bundle.getConnection(), "@Success@", bundle.getContext().getLanguage()));

I do this, and the connection I get is null.
dev-platform-quick-wins, OB3-Reviewed
related to defect 0014878 closed alostale Not possible to retrieve some variables in ProcessBundle method 
Issue History
2009-06-19 14:54AinhoaPagolaNew Issue
2009-06-19 14:54AinhoaPagolaAssigned To => iperdomo
2009-06-30 19:52psarobeStatusnew => scheduled
2009-06-30 19:52psarobeversion => pi
2010-11-17 11:57rafarodaIssue Monitored: rafaroda
2010-11-17 11:57rafarodaTag Attached: dev-platform-quick-wins
2010-11-17 13:38rafarodaRelationship addedrelated to 0014878
2010-11-17 13:39rafarodaNote Added: 0032665
2011-10-28 18:16psarobeTag Attached: OB3-Reviewed
2011-10-28 18:54iperdomoNote Added: 0042293
2011-10-28 18:54iperdomoStatusscheduled => closed
2011-10-28 18:54iperdomoResolutionopen => out of date

Notes
(0032665)
rafaroda   
2010-11-17 13:39   
Hi Ivan,

Is this issue fixed? Since I see that 0014878 has been closed.

Thanks.
(0042293)
iperdomo   
2011-10-28 18:54   
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);
   }