1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.ole.module.purap.batch;
17
18 import org.kuali.ole.module.purap.batch.service.MigratePurapStatCodeToWorkflowDocumentService;
19 import org.kuali.ole.sys.batch.AbstractWrappedBatchStep;
20 import org.kuali.ole.sys.batch.service.WrappedBatchExecutorService.CustomBatchExecutor;
21
22
23
24
25 public class MigratePurapStatCodeToWorkflowDocumentStep extends AbstractWrappedBatchStep {
26
27 protected MigratePurapStatCodeToWorkflowDocumentService migratePurapStatCodeToWorkflowDocumentService;
28 protected static org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(MigratePurapStatCodeToWorkflowDocumentStep.class);
29 protected String batchFileDirectoryName;
30
31
32
33
34
35
36 @Override
37 protected CustomBatchExecutor getCustomBatchExecutor() {
38 return new CustomBatchExecutor() {
39 public boolean execute() {
40 boolean success = true;
41 success = migratePurapStatCodeToWorkflowDocumentService.migratePurapStatCodeToWorkflowDocuments();
42
43 return success;
44 }
45 };
46 }
47
48
49
50
51
52
53 public void setBatchFileDirectoryName(String batchFileDirectoryName) {
54 this.batchFileDirectoryName = batchFileDirectoryName;
55 }
56
57
58
59
60
61
62
63 public MigratePurapStatCodeToWorkflowDocumentService getMigratePurapStatCodeToWorkflowDocumentService() {
64 return migratePurapStatCodeToWorkflowDocumentService;
65 }
66
67
68
69
70
71
72
73 public void setMigratePurapStatCodeToWorkflowDocumentService(MigratePurapStatCodeToWorkflowDocumentService migratePurapStatCodeToWorkflowDocumentService) {
74 this.migratePurapStatCodeToWorkflowDocumentService = migratePurapStatCodeToWorkflowDocumentService;
75 }
76 }