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.KRADServiceLocatorWeb;
30
31 import java.util.List;
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48 public class KualiPostProcessor implements PostProcessor {
49 private static Logger LOG = Logger.getLogger(KualiPostProcessor.class);
50
51
52
53
54 @Override
55 public ProcessDocReport doRouteStatusChange(DocumentRouteStatusChange statusChangeEvent) throws Exception {
56 return KRADServiceLocatorWeb.getPostProcessorService().doRouteStatusChange(statusChangeEvent);
57 }
58
59
60
61
62 @Override
63 public ProcessDocReport doActionTaken(ActionTakenEvent event) throws Exception {
64 return KRADServiceLocatorWeb.getPostProcessorService().doActionTaken(event);
65 }
66
67
68
69
70
71 @Override
72 public ProcessDocReport afterActionTaken(ActionType performed, ActionTakenEvent event) throws Exception {
73 return KRADServiceLocatorWeb.getPostProcessorService().afterActionTaken(performed, event);
74 }
75
76
77
78
79 @Override
80 public ProcessDocReport doDeleteRouteHeader(DeleteEvent event) throws Exception {
81 return KRADServiceLocatorWeb.getPostProcessorService().doDeleteRouteHeader(event);
82 }
83
84
85
86
87 @Override
88 public ProcessDocReport doRouteLevelChange(DocumentRouteLevelChange levelChangeEvent) throws Exception {
89 return KRADServiceLocatorWeb.getPostProcessorService().doRouteLevelChange(levelChangeEvent);
90 }
91
92
93
94
95 @Override
96 public ProcessDocReport beforeProcess(BeforeProcessEvent beforeProcessEvent) throws Exception {
97 return KRADServiceLocatorWeb.getPostProcessorService().beforeProcess(beforeProcessEvent);
98 }
99
100
101
102
103 @Override
104 public ProcessDocReport afterProcess(AfterProcessEvent afterProcessEvent) throws Exception {
105 return KRADServiceLocatorWeb.getPostProcessorService().afterProcess(afterProcessEvent);
106 }
107
108
109
110
111 @Override
112 public List<String> getDocumentIdsToLock(DocumentLockingEvent documentLockingEvent) throws Exception {
113 return KRADServiceLocatorWeb.getPostProcessorService().getDocumentIdsToLock(documentLockingEvent);
114 }
115
116 }