Openbravo Issue Tracking System - Retail Modules
View Issue Details
0032899Retail ModulesWeb POSpublic2016-05-07 14:332016-05-16 16:43
mtaal 
mtaal 
normalminorhave not tried
closedfixed 
5
 
RR16Q3 
migueldejuana
No
0032899: Provide a base class which implements default offline and online behavior in multi-server environments
The feature request is to implement a base class which can be extended to provide correct handling of process requests in multi-server environments where these environments need to be updated/synced on transaction level.

See above
Provide a base class which processes a request and returns the result and in parallel creates the import entry to replicate back to the central server.

This base class should work correctly also in case that the webpos directly calls the central server. In that case it should replicate back to the store server.
No tags attached.
blocks feature request 0031655 closed mtaal WebPOS Synchronous transactions 
Issue History
2016-05-07 14:33mtaalNew Issue
2016-05-07 14:33mtaalAssigned To => mtaal
2016-05-07 14:33mtaalTriggers an Emergency Pack => No
2016-05-09 06:19mtaalReview Assigned To => migueldejuana
2016-05-09 06:19mtaalNote Added: 0086293
2016-05-09 06:19mtaalSummaryProvide an base class which implements default offline and online behavior in multi-server environments => Provide a base class which implements default offline and online behavior in multi-server environments
2016-05-09 06:32mtaalRelationship addedblocks 0031655
2016-05-09 08:40hgbotCheckin
2016-05-09 08:40hgbotNote Added: 0086297
2016-05-09 08:40hgbotStatusnew => resolved
2016-05-09 08:40hgbotResolutionopen => fixed
2016-05-09 08:40hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/24050dd79e4d13b4be669928a0d5f94307a03732 [^]
2016-05-14 10:43mtaalNote Added: 0086448
2016-05-14 10:43mtaalStatusresolved => new
2016-05-14 10:43mtaalResolutionfixed => open
2016-05-16 00:55hgbotCheckin
2016-05-16 00:55hgbotNote Added: 0086452
2016-05-16 00:55hgbotStatusnew => resolved
2016-05-16 00:55hgbotResolutionopen => fixed
2016-05-16 00:55hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/24050dd79e4d13b4be669928a0d5f94307a03732 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/fb8219f1777e3a984f13784008505bda1de667f3 [^]
2016-05-16 16:43migueldejuanaNote Added: 0086472
2016-05-16 16:43migueldejuanaStatusresolved => closed

Notes
(0086293)
mtaal   
2016-05-09 06:19   
See documentation:

http://wiki.openbravo.com/wiki/Multi-Server_Process_Calls_Concept [^]

http://wiki.openbravo.com/wiki/How_to_implement_Multi-Server_Process_Calls [^]
(0086297)
hgbot   
2016-05-09 08:40   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 24050dd79e4d13b4be669928a0d5f94307a03732
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Mon May 09 08:39:25 2016 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/24050dd79e4d13b4be669928a0d5f94307a03732 [^]

Fixes issue 32899: Provide a base class which implements default offline and online behavior in multi-server environments
Provide base class with advanced multi-server logic to handle different cases, make it possible to run JSONProcessSimple for import entry processing class.
Some utility methods will also be used by related issue for synchronized transactions.

DataSynchronizationProcess.java: move code to super class
JSONProcessSimple.java: add methods from subclass so it can be used by import entry runnable
MobileImportEntryProcessorRunnable.java: make it possible to use JSONProcessSimple as processing class, remain backward compatible
MobileServerController.java: add defensive coding checks, added util methods
MobileServerUtils.java: added util methods, will be used also in subsequent issues
MultiServerDataSynchronizationProcess.java: main code for resolving the issue, new class
OBMOBCUtils.java: added utility method

---
M src/org/openbravo/mobile/core/process/DataSynchronizationProcess.java
M src/org/openbravo/mobile/core/process/JSONProcessSimple.java
M src/org/openbravo/mobile/core/process/MobileImportEntryProcessorRunnable.java
M src/org/openbravo/mobile/core/servercontroller/MobileServerController.java
M src/org/openbravo/mobile/core/servercontroller/MobileServerUtils.java
M src/org/openbravo/mobile/core/utils/OBMOBCUtils.java
A src/org/openbravo/mobile/core/servercontroller/MultiServerDataSynchronizationProcess.java
---
(0086448)
mtaal   
2016-05-14 10:43   
Will push/add additional changes to it.
(0086452)
hgbot   
2016-05-16 00:55   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: fb8219f1777e3a984f13784008505bda1de667f3
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Sun May 15 09:31:57 2016 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/fb8219f1777e3a984f13784008505bda1de667f3 [^]

Fixes issue 32899: Provide a base class which implements default offline and online behavior in multi-server environments
Extend base class to allow only executing on central and make it possible to change organization for created import entry

DataSynchronizationProcess.java: updated copyright
SecuredJSONProcess.java: throw better json exception by reading underlying db exception, handle if not called from request
MultiServerDataSynchronizationProcess.java: renamed to MultiServerJSONProcess

---
M src/org/openbravo/mobile/core/process/DataSynchronizationProcess.java
M src/org/openbravo/mobile/core/process/SecuredJSONProcess.java
A src/org/openbravo/mobile/core/servercontroller/MultiServerJSONProcess.java
R src/org/openbravo/mobile/core/servercontroller/MultiServerDataSynchronizationProcess.java
---
(0086472)
migueldejuana   
2016-05-16 16:43   
Reviewed