Project:
View Revisions: Issue #46479 | [ All Revisions ] [ Back to Issue ] | ||
Summary | 0046479: action preparation order is modified when the action fails | ||
Revision | 2021-05-04 10:50 by caristu | ||
Description | When an action fails, the action preparation rollback mechanism is executed[1]. This mechanism executes all the rollback functions of each action preparation in reverse order. In order to retrieve the reversed order of rollback functions we are using the reverse function[2]. Note that reverse function mutates the original array[3]. In practice, this means that if an action fails, the next time it is executed the action preparations are executed in reversed order. [1] http://wiki.openbravo.com/wiki/StateController#Action_Preparations [^] [2] https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/blob/master/web/org.openbravo.mobile.core/app/model/application-state/State.js#L60 [^] [3] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reverse [^] |
||
Revision | 2021-05-04 10:46 by caristu | ||
Description | When an action fails, the action preparation rollback mechanism is executed[1]. This mechanism executes all the rollback functions of each action preparation in reverse order. In order to retrieve the reversed order of rollback functions we are using the reverse function[2]. Note that reverse function mutates the original array[3]. [1] http://wiki.openbravo.com/wiki/StateController#Action_Preparations [^] [2] https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/blob/master/web/org.openbravo.mobile.core/app/model/application-state/State.js#L60 [^] [3] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reverse [^] |
Copyright © 2000 - 2009 MantisBT Group |