230 likes | 429 Views
EPA Exchange Network SDWIS Data Flow. Maine SDWIS/State system using FedRep XML output files. CDX. SDWIS/STATE. XML Doc Repository. Federal Enf Data Flow. Other State Data Systems. Data Warehouse. XML Doc. Standard Reports. Staging Tables. EPA Regional Office. Ad Hoc Reports.
E N D
EPA Exchange Network SDWIS Data Flow Maine SDWIS/State system using FedRep XML output files
CDX SDWIS/STATE XML Doc Repository Federal Enf Data Flow Other State Data Systems Data Warehouse XML Doc Standard Reports Staging Tables EPA Regional Office Ad Hoc Reports OLAP Tools New Data Flow FedRep Monthly Quarterly DIRECT PULL Annual ODS Certification
SDWIS Data Flow using FedRep Output • SDWIS/FedRep v1.1, dated 8/9/04, is an integrated set of tools, including a message notification tool, that extracts data from SDWIS/State applications using SQL Server, DB2 DBMS's, and ORACLE. • FedRep assists DW Public Water System Supervision Primacy Agencies, EPA regions and EPA Headquarters with the extraction (SDWIS/State only), formatting (SDWIS/State only), validation, and certification of federally reportable drinking water data.
SDWIS Data Flow using FedRep Output • Primacy agencies not using the SDWIS/State application, or using it for only part of their federally reportable data flow, have the responsibility of mapping and extracting data from their own database(s). The data must be formatted into XML documents compatible with the published XML schema used by FedRep. • SDWIS/FedRep is based upon the J2EE architecture so it can be deployed in diverse operating environments.
SDWIS Data Flow using FedRep Output • The majority of states use SDWIS/STATE. • EPA has used SDWIS/FED database. • An Oracle database, known as Operational Data System or ODS/SDWIS, is replacing the SDWIS/FED database. • The cutoff date for EPA to turn off SDWIS/FED is fast approaching. It is important that States keep informed of the status of SDWIS modernization.
SDWIS Data Flow using FedRep Output • The Drinking Water Protection Division at EPA headquarters issued a 2/3/05 memo requesting “assistance in encouraging primacy agencies to provide quarterly data using the modernized SDWIS data flow.” • Call 202-564-4624 or 202-564-3942 to subscribe to the “SDWIS Modernization Update” e-mail newsletter to stay up to date on the progress.
SDWIS Data Flow using FedRep Output ODS/SDWIS Timeline • Test ODS/SDWIS is now accepting zipped XML files up to 10 MB in size via CDX. • Production ODS/SDWIS is expected to be ready to accept XML files pushed to CDX by state nodes by 07/05. • Phase III of SDWIS modernization will implement pull of data from state node. A pilot was to begin 9/04. (?)
SDWIS Data Flow using FedRep Output • EPA’s FedRep software extracts quarterly report information from the SDWIS/STATE database into an XML file that is compliant with the EN drinking water schema. • FedRep runs a majority of the EPA data edits on your local system so you can correct most data errors before sending your files to CDX. Win-Win!
SDWIS Data Flow using FedRep Output • Maine’s Drinking Water program, part of DHHS/Division of Health Engineering/ Bureau of Health, beta tested FedRep for EPA. • BOH decided to join ME DEP in using the EN node to transmit its reports to EPA and to leverage its FedRep system at the same time.
SDWIS Data Flow using FedRep Output FedRep Features • Extract EPA-format XML output files for 3 EPA quarterly reports (Inventory, Actions, Samples) from SDWIS/STATE or custom DW database. • Validates data in files extracted from SDWIS/STATE, creating a separate “rejected” file for your attention. • E-mails you that the job is done. The e-mail contains links to validated and rejected XML files and to a reports list. Sample report follows…
Error Counts WaterSystem WaterSystemFacility
SDWIS Data Flow using FedRep Output • To create a drinking water flow, a.k.a. “exchange”, to CDX via the node using FedRep output files: • Zip the FedRep output files. • Place files on a server that’s accessible to the node. • Build a scheduler job that checks the server for the 3 file names each calendar quarter. • Pick up files, place in a SOAP message, send to CDX.
SDWIS Data Flow using FedRep Output • A UNIX CRON job executes a script every morning at 0015. • The executed UNIX script executes a Java .jar file. • The main method in the .jar file belongs to the DocSubmitterManager. It does the following: • Query a database table to retrieve a result set of all the "active" ("A") jobs.
SDWIS Data Flow using FedRep Output • Loop through the result set of jobs, performing these steps per job: • Verify that the job needs to be sent. • If job needs to be sent, call a method on the DocSubmitter object which does the following: • Create a stub to the Node to which the document (file) is to be sent. • Ping the stub to verify the Node is available.
SDWIS Data Flow using FedRep Output • Create an FTP client to retrieve the file for this job. • Create a NodeDocument object, populate it with the information from the method call and change the File into a byte[] to use in the NodeDocument. • Place the created NodeDocument in an NodeDocument array. • Authenticate against the node that will be receiving the document (file). • Invoke the Submit method on the receiving node (pushing the file to the node). • Return the transactionId (resulting from the Submit call) to the calling method in DocSubmitterManager.java.
SDWIS Data Flow using FedRep Output • If job needs to be sent, log the results of the call to the node's Submit method for this job. • Loop to the next job. • Log success or failure of running jobs. • E-mail results to developer.
SDWIS Data Flow using FedRep Output Helpful Resources • State IT profiles now available on ECOS website ECOS has added detailed profiles of each state to its website containing information about integration and information technology projects, Exchange Network grants, Network node status, Exchange Network data flows, and contact information for staff working on specific projects and initiatives. This tool will help to facilitate the exchange of information between states and it also highlights the interesting and innovative ways that states are managing environmental data. If you have any questions about the profiles please contact Kristen Dunne at kdunne@sso.org.
SDWIS Data Flow using FedRep Output Helpful Resources • eDWR XML Schema-to-SDWIS/State Sampling via EDI Converter is available thanks to the efforts of the Network Exchange Drinking Water Challenge Grant Project Team and support from the EPA Office of Environmental Information. This converter is a valuable tool for any State that wishes to implement an e-Reporting solution of laboratory analysis results and who also uses SDWIS/State to manage their drinking water data. Read more about the converter at http://www.exchangenetwork.net/flow/water/edwr_converter.htm.