Openbravo Issue Tracking System - Retail Modules
View Issue Details
0036354Retail ModulesWeb POSpublic2017-06-27 09:232017-06-27 11:46
guilleaer 
Retail 
normalminoralways
newopen 
5
 
 
No
0036354: OBPOS_TerminalLoadedFromBackend Hook is not taking into account asynchrony
Hook OBPOS_TerminalLoadedFromBackend is not taking into account asynchrony, so if a 3th module implements it adding an asynchronous action, the loading process will continue without wait to finish.

It can be a problem or not depending on the actions done in the implementation of the hook.

Asynchrony should be correctly managed
Create a 3th module
implement the hook
with this code
OB.UTIL.HookManager.registerHook('OBPOS_TerminalLoadedFromBackend', function(args, c) {
  setTimeout(function () {
    //custom code
    OB.UTIL.HookManager.callbackExecutor(args, c);
  }, 10000);
});

As you can see the loading process continues without wait to the callback from the hook
Manage asynchrony
No tags attached.
Issue History
2017-06-27 09:23guilleaerNew Issue
2017-06-27 09:23guilleaerAssigned To => Retail
2017-06-27 09:23guilleaerTriggers an Emergency Pack => No
2017-06-27 11:46egoitzIssue Monitored: egoitz

There are no notes attached to this issue.