Openbravo Issue Tracking System - Retail Modules
View Issue Details
0034156Retail ModulesStoreServerpublic2016-10-03 10:162016-11-12 17:21
mtaal 
mtaal 
normalminorhave not tried
closedfixed 
5
 
RR17Q1 
AugustoMauch
No
No
0034156: Support an additional Multi-Server approach: first try central, if fails then store, but always max one server
The logic needs to guarantee that the action is executed max once on a server, with first trying central.

So a combination of _tryCentralFromStore and _executeInOneServer.

See the MultiServerJsonProcess [1]

[1]
https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/file/8e0dbeeca70d/src/org/openbravo/mobile/core/servercontroller/MultiServerJSONProcess.java#l353 [^]
Check the MultiServerJsonProcess logic
No tags attached.
Issue History
2016-10-03 10:16mtaalNew Issue
2016-10-03 10:16mtaalAssigned To => mtaal
2016-10-03 10:16mtaalOBNetwork customer => No
2016-10-03 10:16mtaalTriggers an Emergency Pack => No
2016-10-05 17:16eduardo_ArgalIssue Monitored: eduardo_Argal
2016-10-18 08:45hgbotCheckin
2016-10-18 08:45hgbotNote Added: 0090657
2016-10-18 08:45hgbotStatusnew => resolved
2016-10-18 08:45hgbotResolutionopen => fixed
2016-10-18 08:45hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/6452b4f43761ac56ad94961087541fcb2c6adffa [^]
2016-10-22 15:55mtaalReview Assigned To => AugustoMauch
2016-10-25 16:04AugustoMauchNote Added: 0090874
2016-11-07 11:58mtaalStatusresolved => new
2016-11-07 11:58mtaalResolutionfixed => open
2016-11-09 12:23mtaalStatusnew => scheduled
2016-11-09 12:23mtaalNote Added: 0091271
2016-11-09 12:23mtaalStatusscheduled => resolved
2016-11-09 12:23mtaalResolutionopen => fixed
2016-11-12 17:21AugustoMauchNote Added: 0091412
2016-11-12 17:21AugustoMauchStatusresolved => closed

Notes
(0090657)
hgbot   
2016-10-18 08:45   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 6452b4f43761ac56ad94961087541fcb2c6adffa
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Tue Oct 18 08:44:39 2016 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/6452b4f43761ac56ad94961087541fcb2c6adffa [^]

Fixes issue 34156: Support an additional Multi-Server approach: first try central, if fails then store, but always max one server
Updated documentation and in case of exception when calling central first then handle it more gracefully if
we are already transitioning to offline.
The original requirement of the mantis issue is already covered by existing code. This commit solves one corner case found
and updates the documentation.

---
M src/org/openbravo/mobile/core/servercontroller/MultiServerJSONProcess.java
---
(0090874)
AugustoMauch   
2016-10-25 16:04   
Add documentation about how to use _executeInOneServer, at least here [1] and here [2]

[1] http://wiki.openbravo.com/wiki/Multi-Server_Process_Calls_Concept [^]
[2] http://wiki.openbravo.com/wiki/How_to_implement_Multi-Server_Process_Calls [^]
(0091271)
mtaal   
2016-11-09 12:23   
Updated/added docs:
http://wiki.openbravo.com/wiki/Multi-Server_Process_Calls_Concept#Store_Server_Only [^]

http://wiki.openbravo.com/wiki/How_to_implement_Multi-Server_Process_Calls#Relevant_json_properties [^]
(0091412)
AugustoMauch   
2016-11-12 17:21   
Code reviewed and verified