Professional Documents
Culture Documents
For
VARStreet
By
Website: www.varstreet.com
Document History
Revision Records
Log files are generated for every entity of Data Sync for every day.
E:\NewCatalogProcess\DataSyncProcess_Catalog_VarPart\Log
E:\NewCatalogProcess\ContractDataSync\Log
System is creating log file as: log_Date.txt
Ex. log_5_8_2015.txt
It is process which pick request from DATASYNCREQUEST table and process according to
REQUESTTYPE.
If anyone wants to check sync log of any request then he can query to DATASYNCREQUEST
table as, if we want to retrieve today’s requests for varcompany 6036 then we can query
as:
If we need any additional from relevant table then REFERENCEID column will be
helpful. For Sore Catalog request it is CATALOGLISTID, custom product it have VARPARTID,
for pricelist it have PRICELISTID. So we can use this column for relevant data checking in
parent table.
If anyone wants to update failed request having status=2 them he can update status=0, so
that record will process again.
# TYPE PRIORITY
1 VARPART 1
2 CATALOG 2
3 PRICELIST 3
4 CONTRACTPRODUCT 4
5 WEEKLYPROCESS 5
If we have all above request for one company id then first we should process
VARPART as so on.
Check for no of request in DataSyncRequest table. It should not be more than 100.
If request for REQUESTTYPE=’VARPART’ is more than 100, and exe for DATASYNCVARPART is
running and critical request comes to process then follow the steps as:
First Stop that exe, update status=-1 records to status=0.
For all request for REQUESTTYPE=’VARPART’ update status=3 and for critical request update
status=0.
Run schedule task for DATASYNCVARPART, it will process and once it done then check status
of critical request, it must be 1, if it is 2 then you need to check log file for that request.
Now update status=3 requests to status=0.
Run again schedule task for DATASYNCVARPART, to process remaining all request as well.
After done check status of request it must be 1, if it is 2 then check log file for that request.
1.6. Technical Details
1.6.1. Data Collect:
(1)In Data Sync we have data collect for PriceList, Catalog, Store
Profile, Distributor and Configurator.
(2)For Custom products we have trigger “triggervarpartinsert” which
insert record in DataSyncRequest for each updates.
(3)For Weekly Process we insert records on Saturday morning and run
process.
1.6.2. Data Process:
(1) We have data Process call for each process and it will run verify
records in datasyncrequest table and process accordingly.
(2)In this process we are taking data from oracle for that request
using referenceid and fill it using DTO.
(3)DTO will used to fill data for parameters in MySQL procedure and
call procedure to insert data in MySQL respective tables.
(4)For weekly process we internally call “refresh prices” exe.
b) Data Processes:
ii) PRICELIST: It is used to load pricelist from oracle it will create new if
not exists or update if exists and it also create custom and standard
rules in mysql.
Process include:
(1)Sync of pricelist
(2)Sync of standard price rule.
(3)Sync of custom price rule.
iv) VARDIST: It is used to load distributors from oracle it will create new
if not exists or update if exists.
vii) MSP: It is used run MSP creation logic for given company id.