1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.ole.sys.batch;
17
18 import org.kuali.ole.sys.batch.service.AutoDisapproveDocumentsService;
19 import org.kuali.ole.sys.batch.service.WrappedBatchExecutorService.CustomBatchExecutor;
20
21
22
23
24 public class AutoDisapproveDocumentsStep extends AbstractWrappedBatchStep {
25 private AutoDisapproveDocumentsService autoDisapproveDocumentsService;
26 protected static org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(AutoDisapproveDocumentsStep.class);
27 private String batchFileDirectoryName;
28
29
30
31
32 @Override
33 protected CustomBatchExecutor getCustomBatchExecutor() {
34 return new CustomBatchExecutor() {
35 public boolean execute() {
36 boolean success = true;
37 success = autoDisapproveDocumentsService.autoDisapproveDocumentsInEnrouteStatus();
38
39 return success;
40 }
41 };
42 }
43
44
45
46
47
48
49
50 public void setAutoDisapproveDocumentsService(AutoDisapproveDocumentsService autoDisapproveDocumentsService) {
51 this.autoDisapproveDocumentsService = autoDisapproveDocumentsService;
52 }
53
54
55
56
57
58 public void setBatchFileDirectoryName(String batchFileDirectoryName) {
59 this.batchFileDirectoryName = batchFileDirectoryName;
60 }
61 }