NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

We are already selecting sorted files from FTP.

Create a cache in ImportCacheManager.cs to store the all batch imformation related to ImportStatus, file name and date of file.

To this, Create a below dictionary :

struct ValuePair
{
public string fileDate;
public string importStatus;
}

Dictionary<string, ValuePair> _dictionary = new Dictionary<string, ValuePair>();

OR


Dictionary<fileName, Dictionary<fileDate, ImportStatus>> dictionary = new Dictionary<string, Dictionary<string, string>>();

Initialize the cache when ImportServices start and also Initialize/Update this cache when batch import execution completed, to this read dashboard XML from
(DebugDashBoardDataImport20160603Import_-1_PB.NTF.Transaction.Scotiabatch~gvActivityBlotter_20160424.csv.xml) path

Also handle for NoData file

Get Information to initialize catch :

Get following data from dashboard XML file

1. Get the value of batch filename from <FileName> tag
2. Get the value of file date from <ExecutionDateRef> tag
3. Get the value of ImportStatus from <ImportStatus> tag.


When batch comes to import data in Paxus DB, check the ImportStatus of previous date batch file in cache, that import status is Failed/Success/Partial Success.
If the import status is Success then procced the next file otherwise don't import that file or break the import funtionlity for next datefiles. It will handle on
bgwImportData_DoWork in PositionAndTransactionHandler.cs

If AutoProcessThirdPartyBatch preference vaue is 1 then data is imported if all trades are fullfill the all requirement.Otherwise trade will not import in Paxus DB
and middleware, so for this Import Status either Failed or Success.

If user import next date's batch manually, get the status of last date's batch from cache and check it is failed or success then show a warning message that
"previous date's batch status is failure/partial success, do you want to continue?" If yes then import the data in Paxus DB and middleware otherwise cancle the operation.
If there is previous date batch not folund then also check for previous of previous date batch in cache.


If user selects multiple rows from dashboard of same batch having status failure and import all files at once then get the detail from tupleList and get previous
date batch import status in cache files and check it is failed or success then show a warning message that "previous date's batch status is failure/partial success, do you want to continue?"
If yes then import the data in Paxus DB and middleware otherwise cancle the operation. If there is previous date batch not folund then also check for previous of previous date batch in cache.

To configurable:

Create a preference "SequencialBachProcessing" in T_PranaKeyValuePreferences table. If it is 1 then this functionality should be work otherwise not.
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.