33
WMF Holding Point Application Upgrade Natalia Emelianenko 7/7/2005

WMF Holding Point Application Upgrade

  • Upload
    sanam

  • View
    33

  • Download
    0

Embed Size (px)

DESCRIPTION

WMF Holding Point Application Upgrade. Natalia Emelianenko 7/7/2005. Why We Need to Upgrade. Imposed migration to J2EE Public Service File upload on the server will not be possible Problems revealed during the code analysis: Measurement identification out of control - PowerPoint PPT Presentation

Citation preview

Page 1: WMF Holding Point Application Upgrade

WMF Holding Point Application Upgrade

Natalia Emelianenko

7/7/2005

Page 2: WMF Holding Point Application Upgrade

Why We Need to Upgrade

1. Imposed migration to J2EE Public Service File upload on the server will not be possible

2. Problems revealed during the code analysis:1) Measurement identification out of control

2) Database design fits to the workflow as it was imagined in the beginning of the project

3) Lack of organizing routings for the engineers

4) Poor security on the Web

Page 3: WMF Holding Point Application Upgrade

Solutions 1. Upload

Upload files directly into the database

Benefits:1. Detailed upload logging and traceability.

2. File replacement can be blocked after the files are downloaded for the analysis.

3. Upload information is accessible via the database, and the files can be managed with SQL.

Page 4: WMF Holding Point Application Upgrade

WMF Workflow

1. Upload – send mail to MAS-MA engineer2. Download 3. Analysis in Excel4. Loading of the information extracted from the

files into the database tables5. Similarity check6. Transfer files to the DB – delete files from the

server7. Mail to PE8. Mail to firm

Page 5: WMF Holding Point Application Upgrade

Workflow with New Version

1. Upload – send mail to MAS-MA engineer2. Download – mark as “analysis started”3. Analysis in Excel4. Loading of the information extracted from the

files into the database tables5. Similarity check6. Mark measurement as “analyzed”7. Mail to PE8. Mail to firm

Page 6: WMF Holding Point Application Upgrade

Solutions 2.1. Identification

Measurement identification:Current scheme: attempts to find the unique combination

date + magnet + time + time of ap2 + …Proposed:let the firm control what is a measurement, i.e. decidewhether the data files being uploaded are

• corrected version of previously uploaded files• results of a new measurement of the same magnet

performed on the same day

Page 7: WMF Holding Point Application Upgrade

Identification Scheme Explained

• A couple of data files for the magnet XXXX tested on DD-MON-YYYY is being loaded for the first time with the measurement ID

DD-MON-YYYY_XXXX_1• Next uploads will be at firm’s discretion

– replacement, ID not changed, or– new measurement, and its ID will be

DD-MON-YYYY_XXXX_2

• Measurement ID is assigned on upload and never more guessed from the data.

Page 8: WMF Holding Point Application Upgrade

Solutions 2.2. Database Design

New database design fits the real data model.

New objects:

• Table for uploads (replaces WMF_DATA_SOURCE): Store both source and info files in one record Log & manage upload, download and analysis

• Table with the list of magnets to manage: Final measurement for each magnet/stage. Renaming of magnets (dead measurements).

Page 9: WMF Holding Point Application Upgrade

Solutions 2.3. Validation

• Analyzer should have the possibility to choose the final measurement for a given magnet at any moment (or until the mail to firm was sent) – easy and safe with the new database design.

• Analysis and similarity check can be performed inside the database with PL/SQL or Java.

Page 10: WMF Holding Point Application Upgrade

Solutions 2.3. PDA Organizer

New functionality:

• List of not yet analyzed downloaded files.• List of measurements to send a message to PE on.• List of measurements to send a message to firm.• List of analyzed measurements for which

messages were not sent for some reason.• Mailing lists stored in the database

Page 11: WMF Holding Point Application Upgrade

Solutions 2.4. Security

• Make the session timeout really working (available for test on the J2EE prototype Report Maker).

• Choose another type of authentication instead of unsafe basic and /or enforce the use the SSL

• Create own password for each firm.

Page 12: WMF Holding Point Application Upgrade

New Features Examples

Next 6 slides show all changes to the PDA holding point Web applications for the users in MAS.

Page 13: WMF Holding Point Application Upgrade

Download 1

Page 14: WMF Holding Point Application Upgrade

Download 2

Page 15: WMF Holding Point Application Upgrade

Mail to PE 1

Page 16: WMF Holding Point Application Upgrade

Mail to PE 2

Page 17: WMF Holding Point Application Upgrade

Mail to firm 1

Page 18: WMF Holding Point Application Upgrade

Mail to firm 2

Page 19: WMF Holding Point Application Upgrade

Upload Illustrations…

Page 20: WMF Holding Point Application Upgrade

Upload 1

Page 21: WMF Holding Point Application Upgrade

Upload 2 – at attempt to load the second measurement for the day

Page 22: WMF Holding Point Application Upgrade

Upload 3 – uploaded as a new measurement

Page 23: WMF Holding Point Application Upgrade

Upload 4 – an attempt to load 3rd measurement for the day

Page 24: WMF Holding Point Application Upgrade

Upload 5 – check all measurements uploaded for the magnet and day

Page 25: WMF Holding Point Application Upgrade

Upload 6 – the 1st measurement data files have been replaced

Page 26: WMF Holding Point Application Upgrade

Download 1

Page 27: WMF Holding Point Application Upgrade

Download 2 – downloaded files disappear from the “waiting list”

Page 28: WMF Holding Point Application Upgrade

Upload 7 – an attempt to upload files after previous ones have been downloaded

Page 29: WMF Holding Point Application Upgrade

Upload 8 – replacement of downloaded files is blocked

Page 30: WMF Holding Point Application Upgrade

Summary of What Was Done

New features:

• Safe measurement identification• File upload managed by the database• Mailing lists managed by the database• Organizing features:

– List of measurements for the analysis

– List of mails to be sent

– Less manual input

Page 31: WMF Holding Point Application Upgrade

Summary for the Discussion

Analysis in Excel• List of new files for the analysis• Skip download – get files directly from the database• Similarity check inside the database • Data loading without conformity check

Workflow management• Do we need to mark a measurement as analyzed without mail to PE ?• Should there be a possibility to replace analyzed measurements ?

Access rights managed in the databaseAre we ready to migrate to the new database design ?

Page 32: WMF Holding Point Application Upgrade

Database Loading Guidelines

The following is proposed by Elena:• Data from any file should be always loaded.• The analyzer should decide the nature of the data

“invalidity” (i.e. should the magnet be re-measured).

• New valid measurements may automatically invalidate the previous ones.

• Tolerances should be stored in the database (to be taken from there for the analysis).

Page 33: WMF Holding Point Application Upgrade

Migration Plan

1. While the safe database migration is being prepared:

1) Fill in mailing lists in the database, define responsibilities.2) Install the new version of the upload (now available for tests

on PDA). Excel macro will not take the measurement ID from the file name but construct it as it is done now.

3) Test the new functionality with the current database design on the prototype and then on PDA.

2. Migration to the new database structures:1) Choose a day when there will be no hanging measurements.2) Transfer the data to the new tables.3) Install the new web applications on PDA and on the prototype.