- Created by Prem Kumar Balu (Unlicensed) , last modified by Vivekprabhu Bhoopathi on Jul 18, 2013
You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 5 Next »
Description
Calendar are defined and sharing the calendar to the circulation desk are provided in this section. Defining a calendar begins with providing the General,Exception Day,Exception Period and Holiday information for a range of days.
Each Circulation Location needs a calendar for open/closed days/time. One calendar can be shared between or among all or some of the circulation location. Or each circulation location may have its own calendar. These calendar are considered while calculating the loan due date
User Stories
Priority Rank Order
Design Technical
Service Design and Implementation
Screen Flow Diagram
Layout use cases based on the screen flows indicating navigation between different screens and pop-ups.
Security
- Roles – list of roles to be defined
- Permissions – list of permissions to be defined
- User Profiles – user profiles that may be applied roles/permissions (also for test/mock purposes)
Rules
- Context & Agendas
- Terms & Prepositions
- Sample XML file
Component Design
- OJB.xml
- Class Diagram
- State Chart Diagram
- Psuedo Code
- User creates a batch profile using the options provided in batch profile screen
- User schedules a batch job for a given data and time
- BatchProcessJobManager will perform the job scheduling by calling scheduleJob(ScheduleJobBo bo) method. The schedule information (storeds as cron expression) and the job information is stored in db
- The Quartz scheduler which is configured in KRMSLocalSpringBean.xml calls the BatchProcessManager.execute(int processId) method.
- BatchProcessManager will load the profile(BatchProcessProfile) created by user based on the process id supplied and call the factory class to create BatchProcess instance.
- The BatchProcessFactory creates the appropriate BatchProcess instance based on the processType in the profile
- The processBatch(BatchProcessProfile profile) is called to perform the batch process as per the profile information provided by the user.
- BatchProcessExportData
This batchprocess is involved in performing export of bib / intance information based on the profile provided by the user. It has the following methods:batchExport(BatchProcessProfile profile)
This method is passed the BatchProcessProfile and writes its output to the filesystem. It is the method used for scheduled exports. It should function as follows
- BatchProcessExportData
- A call is made to the getBatchJobInfo(int processId) to get the current job info which executed the processBatch()
- updateBatchProgress(BatchProcessJobBo jobBo) is called to updated the job running status to started and start time.
- A call is made to the batchExport(BatchProcessProfile profile) method passing the profile information.
- The needed values are pulled out of the profile information.
- exportFilterCriteria - What exportFilterCriteria to use. The exportFormat is read from the exportFilterCriteria
- exportType - Full or Incremental
- exportId (processId)- Used for saving the incremental dateTime.
- exportFileTo - The directory and file name format.
- writeReportTo - The directory and report file name.
- chunkSize - Max number of records per file.
- staffOnly- If staffOnly records should be included.
- updateLeveInfo - bibOnly, instance.
- If the export is incremental
- Get the last export dateTime for the exportId
- save the current dateTime exportId pair.
- call getSolrDocList(BatchProcessProfile profile) to get the solr doc list
- A call to updateBatchProgress(BatchProcessJobBo jobBo) is called to updated the total number of records to be processed.
- if there is more than one chunk split the solr results based on the number of chunks data
- make a call to ExportService.getExportDataBySolr using the exportFormatProfile and one set of solr results which were split as per the chunk size.
- If isMarc21 is true convert the returned MarcXML to Marc21.
- Write the returned XML or Marc21 from the export service to files using the exportTo variable.
- call the updateBatchProgress(BatchProcessJobBo jobBo) passing the jobBo which contains the current job information updated with records processed, % processed and time spent.
- If there is more chunks make the next call to the ExportService.
- Create the Report in the location provided in the profile.
- updateBatchProgress(BatchProcessJobBo jobBo) is called to updated the job running status to completed and end time, total records processed, % processed and time spent.
- BatchProcessOrderRecordData
This BatchProcessOrderRecordData performs order record ingest and creates Requisitions and Purchase Orders based on the batchProcessProfile selected by the user.getFileContent(BatchProcessJobBO batchProcessJobBO)
This method takes content from the ingested mrc and edi files.
validateFile(String mrcFileName, String ediFileName, String xmlFileName)
This method takes file names and validate these files to perform orderRecord.if(true)
ingestOrderRecord(BatchProcessProfile batchProcessProfile, BatchProcessJobBO batchProcessJobBO)
This method takes batchProcessProfile and batchProcessJobBO as parameters and load mrc and edi files content into IngestRecord object.
isPreProcessingRequired(MultipartFile marcFile, MultipartFile ediFile)
This method checks file extensions returns boolean
start(IngestRecord ingestRecord, BatchProcessProfile BatchProcessProfile)
This method performs order record operation.
else
Displays error message. - BatchProcessLocationIngestData
This BatchProcessLocationIngestData gets location details from XMl and stores in db.
getFileContent(BatchProcessJobBO batchProcessJobBO)
This method takes content from the ingested mrc and edi files.
validateFile(String xmlFileName)
This method takes file names and validates whether ingested file is xml or not.if(true)
validateContentsAgainstSchema(InputStream inputStream)persistLocationFromFileContent(String fileContent,String locationFileName);
This method persist location details into db.else
Displays error message. - BatchProcessPatronIngestData
This BatchProcessPatronIngestData gets location details from XMl and stores in db.
getFileContent(BatchProcessJobBO batchProcessJobBO)
This method takes content from the ingested mrc and edi files.
validateFile(String xmlFileName)
This method takes file names and validates whether ingested file is xml or not.if(true)
validateContentsAgainstSchema(InputStream inputStream)persistLocationFromFileContent(String fileContent, boolean addUnMatchedPatronFlag, String fileName, OlePatronIngestSummaryRecord olePatronIngestSummaryRecord, String addressSource, String userName);
This method persist location details into db.else
Displays error message.
Service Contracts
Service Implementation
ER Diagram:
CALENDAR FUNCTION :
UI Screen
Data Model
Entity : BATCH DEFINITION
Name | Max | Data Type | Default Value | Input Type | Action Event | Action Event Function Name | Validation | Tab Index | Remarks |
| |||||||||
|
- No labels