1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.ole.fp.batch;
17
18 import java.util.Date;
19
20 import org.kuali.ole.fp.batch.service.ProcurementCardCreateDocumentService;
21 import org.kuali.ole.sys.batch.AbstractStep;
22
23
24
25
26 public class ProcurementCardRouteDocumentsStep extends AbstractStep {
27 private static org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(ProcurementCardRouteDocumentsStep.class);
28 private ProcurementCardCreateDocumentService procurementCardDocumentService;
29
30
31
32
33 public boolean execute(String jobName, Date jobRunDate) {
34
35 try {
36 Thread.sleep(300000);
37 }
38 catch (InterruptedException e) {
39 throw new RuntimeException(e);
40 }
41
42 return procurementCardDocumentService.routeProcurementCardDocuments();
43 }
44
45
46
47
48 public void setProcurementCardCreateDocumentService(ProcurementCardCreateDocumentService procurementCardDocumentService) {
49 this.procurementCardDocumentService = procurementCardDocumentService;
50 }
51 }