217. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 12/13/2018 10:35:25 AM Eastern Standard 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.

217.1 Files compared

# Location File Last Modified
1 v12.5_iter_7_build 51.zip\TRM_Upgrade\src\main\java\gov\va\med\fw\batchprocess ConfigurableBatchProcess.java Fri Dec 7 17:36:22 2018 UTC
2 v12.5_iter_7_build 51.zip\TRM_Upgrade\src\main\java\gov\va\med\fw\batchprocess ConfigurableBatchProcess.java Wed Dec 12 22:33:39 2018 UTC

217.2 Comparison summary

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

217.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

217.4 Active regular expressions

No regular expressions were active.

217.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   }