109. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 6/11/2019 10:54:11 AM Eastern Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

109.1 Files compared

# Location File Last Modified
1 HTRE_P3_v14.5_iter_4_build_14.zip\java\gov\va\med\fw\batchprocess ConfigurableBatchProcess.java Wed May 29 15:26:02 2019 UTC
2 HTRE_P3_v14.5_iter_4_build_14.zip\java\gov\va\med\fw\batchprocess ConfigurableBatchProcess.java Mon Jun 10 19:19:21 2019 UTC

109.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 160
Changed 1 2
Inserted 0 0
Removed 0 0

109.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

109.4 Active regular expressions

No regular expressions were active.

109.5 Comparison detail

  1   /**
  2    * 
  3    */
  4   package go v.va.med.f w.batchpro cess;
  5  
  6   import jav a.util.Map ;
  7  
  8   import org .springfra mework.bat ch.core.Ex itStatus;
  9   import org .springfra mework.bat ch.core.St epContribu tion;
  10   import org .springfra mework.bat ch.core.sc ope.contex t.ChunkCon text;
  11   import org .springfra mework.bat ch.repeat. RepeatStat us;
  12  
  13   import gov .va.med.fw .util.Refl ector;
  14  
  15   /**
  16    * @author   DNS
  17    * 
  18    */
  19   public cla ss Configu rableBatch Process ex tends Abst ractTaskle t {
  20  
  21           pr ivate Stri ng service Name;
  22           pr ivate Stri ng methodN ame;
  23           pr ivate Map< String,Obj ect> dataM ap = null;
  24           // private bo olean test  = true;
  25  
  26           pu blic Repea tStatus ex ecute(Step Contributi on arg0, C hunkContex t arg1) th rows Excep tion{ 
  27                    try  {
  28                             // fin d the serv ice and ex ecute the  method
  29                             //if ( test) thro w new Exce ption("Fai lure notif icaion tes t");
  30                             Object  service =  getApplic ationConte xt().getBe an(service Name);
  31                             Object  result =  Reflector. invoke(ser vice, meth odName, ge tParameter s());
  32                             if (re sult insta nceof java .lang.Inte ger) {
  33                                      Integer  count = (I nteger) re sult;
  34                                      getProce ssStatisti cs().setNu mberOfSucc essfulReco rds(count) ;
  35                                      getProce ssStatisti cs().setNu mberOfTota lRecords(c ount);
  36                                      getProce ssStatisti cs().setNu mberOfErro rRecords(0 );
  37                             }
  38                    } ca tch (Excep tion ex) {
  39                             logger .error("Co nfigurable BatchProce ss.execute  failed",  ex);
  40                             arg0.s etExitStat us(ExitSta tus.FAILED );                   
  41                    }
  42                    retu rn RepeatS tatus.FINI SHED;            
  43           }
  44  
  45           pu blic Strin g getMetho dName() {
  46                    retu rn methodN ame;
  47           }
  48  
  49           pu blic void  setMethodN ame(String  methodNam e) {
  50                    this .methodNam e = method Name;
  51           }
  52  
  53           pu blic Strin g getServi ceName() {
  54                    retu rn service Name;
  55           }
  56  
  57           pu blic void  setService Name(Strin g serviceN ame) {
  58                    this .serviceNa me = servi ceName;
  59           }
  60  
  61           pu blic Map<S tring,Obje ct> getDat aMap() {
  62                    retu rn dataMap ;
  63           }
  64  
  65           pu blic void  setDataMap (Map<Strin g,Object>  dataMap) {
  66                    this .dataMap =  dataMap;
  67           }
  68  
  69           pr ivate Obje ct[] getPa rameters()  {
  70                    if ( dataMap !=  null && d ataMap.siz e() > 0) {
  71                             Object [] params  = new Obje ct[dataMap .size()];
  72                             int in dex = 0;
  73                             for (O bject obj  : dataMap. values())  {
  74                                      params[i ndex++] =  obj;
  75                             }
  76                             return  params;
  77                    } el se {
  78                             return  null;
  79                    }
  80           }
  81   }