org.kuali.kfs.fp.batch
Class ProcurementCardLoadStep

java.lang.Object
  extended by org.kuali.kfs.sys.batch.AbstractStep
      extended by org.kuali.kfs.fp.batch.ProcurementCardLoadStep
All Implemented Interfaces:
Step, org.springframework.beans.factory.BeanNameAware

public class ProcurementCardLoadStep
extends AbstractStep

This step will call a service method to load the kuali pcard xml file into the transaction table. Validates the data before the load. Functions performed by this step: 1) Lookup path and filename from APC for the pcard input file 2) Load the pcard xml file 3) Parse each transaction and validate against the data dictionary 4) Clean fp_prcrmnt_card_trn_t from the previous run 5) Load new transactions into fp_prcrmnt_card_trn_t 6) Rename input file using the current date (backup) RESTART: All functions performed withing a single transaction. Step can be restarted as needed.


Constructor Summary
ProcurementCardLoadStep()
           
 
Method Summary
 boolean execute(String jobName, Date jobRunDate)
          Controls the procurement card process.
 void setBatchInputFileService(BatchInputFileService batchInputFileService)
          Sets the batchInputFileService attribute value.
 void setProcurementCardInputFileType(BatchInputFileType procurementCardInputFileType)
          Sets the procurementCardInputFileType attribute value.
 void setProcurementCardLoadTransactionsService(ProcurementCardLoadTransactionsService procurementCardLoadTransactionsService)
          Sets the procurementCardLoadTransactionsService attribute value.
 
Methods inherited from class org.kuali.kfs.sys.batch.AbstractStep
getDateTimeService, getName, getParameterService, interrupt, isInterrupted, setBeanName, setDateTimeService, setInterrupted, setParameterService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcurementCardLoadStep

public ProcurementCardLoadStep()
Method Detail

execute

public boolean execute(String jobName,
                       Date jobRunDate)
Controls the procurement card process.

Parameters:
jobName - the name of the job running the step
jobRunDate - the time/date the job is executed
Returns:
true if successful and continue the job, false if successful and stop the job

setBatchInputFileService

public void setBatchInputFileService(BatchInputFileService batchInputFileService)
Sets the batchInputFileService attribute value.


setProcurementCardInputFileType

public void setProcurementCardInputFileType(BatchInputFileType procurementCardInputFileType)
Sets the procurementCardInputFileType attribute value.


setProcurementCardLoadTransactionsService

public void setProcurementCardLoadTransactionsService(ProcurementCardLoadTransactionsService procurementCardLoadTransactionsService)
Sets the procurementCardLoadTransactionsService attribute value.



Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.