1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krad.workflow.postprocessor;
17
18 import org.apache.log4j.Logger;
19 import org.kuali.rice.kew.api.action.ActionType;
20 import org.kuali.rice.kew.framework.postprocessor.ActionTakenEvent;
21 import org.kuali.rice.kew.framework.postprocessor.AfterProcessEvent;
22 import org.kuali.rice.kew.framework.postprocessor.BeforeProcessEvent;
23 import org.kuali.rice.kew.framework.postprocessor.DeleteEvent;
24 import org.kuali.rice.kew.framework.postprocessor.DocumentLockingEvent;
25 import org.kuali.rice.kew.framework.postprocessor.DocumentRouteLevelChange;
26 import org.kuali.rice.kew.framework.postprocessor.DocumentRouteStatusChange;
27 import org.kuali.rice.kew.framework.postprocessor.PostProcessor;
28 import org.kuali.rice.kew.framework.postprocessor.ProcessDocReport;
29 import org.kuali.rice.krad.service.KRADServiceLocatorInternal;
30
31 import java.util.List;
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49 public class KualiPostProcessor implements PostProcessor {
50
51 private static Logger LOG = Logger.getLogger(KualiPostProcessor.class);
52
53
54
55
56
57 @Override
58 public ProcessDocReport doRouteStatusChange(DocumentRouteStatusChange statusChangeEvent) throws Exception {
59 return KRADServiceLocatorInternal.getPostProcessorService().doRouteStatusChange(statusChangeEvent);
60 }
61
62
63
64
65 @Override
66 public ProcessDocReport doActionTaken(ActionTakenEvent event) throws Exception {
67 return KRADServiceLocatorInternal.getPostProcessorService().doActionTaken(event);
68 }
69
70
71
72
73 @Override
74 public ProcessDocReport afterActionTaken(ActionType performed, ActionTakenEvent event) throws Exception {
75 return KRADServiceLocatorInternal.getPostProcessorService().afterActionTaken(performed, event);
76 }
77
78
79
80
81
82 @Override
83 public ProcessDocReport doDeleteRouteHeader(DeleteEvent event) throws Exception {
84 return KRADServiceLocatorInternal.getPostProcessorService().doDeleteRouteHeader(event);
85 }
86
87
88
89
90
91 @Override
92 public ProcessDocReport doRouteLevelChange(DocumentRouteLevelChange levelChangeEvent) throws Exception {
93 return KRADServiceLocatorInternal.getPostProcessorService().doRouteLevelChange(levelChangeEvent);
94 }
95
96
97
98
99 @Override
100 public ProcessDocReport beforeProcess(BeforeProcessEvent beforeProcessEvent) throws Exception {
101 return KRADServiceLocatorInternal.getPostProcessorService().beforeProcess(beforeProcessEvent);
102 }
103
104
105
106
107 @Override
108 public ProcessDocReport afterProcess(AfterProcessEvent afterProcessEvent) throws Exception {
109 return KRADServiceLocatorInternal.getPostProcessorService().afterProcess(afterProcessEvent);
110 }
111
112
113
114
115 @Override
116 public List<String> getDocumentIdsToLock(DocumentLockingEvent documentLockingEvent) throws Exception {
117 return KRADServiceLocatorInternal.getPostProcessorService().getDocumentIdsToLock(documentLockingEvent);
118 }
119
120 }