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.framework.postprocessor.ActionTakenEvent;
20 import org.kuali.rice.kew.framework.postprocessor.AfterProcessEvent;
21 import org.kuali.rice.kew.framework.postprocessor.BeforeProcessEvent;
22 import org.kuali.rice.kew.framework.postprocessor.DeleteEvent;
23 import org.kuali.rice.kew.framework.postprocessor.DocumentLockingEvent;
24 import org.kuali.rice.kew.framework.postprocessor.DocumentRouteLevelChange;
25 import org.kuali.rice.kew.framework.postprocessor.DocumentRouteStatusChange;
26 import org.kuali.rice.kew.framework.postprocessor.PostProcessor;
27 import org.kuali.rice.kew.framework.postprocessor.ProcessDocReport;
28 import org.kuali.rice.krad.service.KRADServiceLocatorInternal;
29
30 import java.util.List;
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48 public class KualiPostProcessor implements PostProcessor {
49
50 private static Logger LOG = Logger.getLogger(KualiPostProcessor.class);
51
52
53
54
55
56 @Override
57 public ProcessDocReport doRouteStatusChange(DocumentRouteStatusChange statusChangeEvent) throws Exception {
58 return KRADServiceLocatorInternal.getPostProcessorService().doRouteStatusChange(statusChangeEvent);
59 }
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
74 @Override
75 public ProcessDocReport doDeleteRouteHeader(DeleteEvent event) throws Exception {
76 return KRADServiceLocatorInternal.getPostProcessorService().doDeleteRouteHeader(event);
77 }
78
79
80
81
82
83 @Override
84 public ProcessDocReport doRouteLevelChange(DocumentRouteLevelChange levelChangeEvent) throws Exception {
85 return KRADServiceLocatorInternal.getPostProcessorService().doRouteLevelChange(levelChangeEvent);
86 }
87
88
89
90
91 @Override
92 public ProcessDocReport beforeProcess(BeforeProcessEvent beforeProcessEvent) throws Exception {
93 return KRADServiceLocatorInternal.getPostProcessorService().beforeProcess(beforeProcessEvent);
94 }
95
96
97
98
99 @Override
100 public ProcessDocReport afterProcess(AfterProcessEvent afterProcessEvent) throws Exception {
101 return KRADServiceLocatorInternal.getPostProcessorService().afterProcess(afterProcessEvent);
102 }
103
104
105
106
107 @Override
108 public List<String> getDocumentIdsToLock(DocumentLockingEvent documentLockingEvent) throws Exception {
109 return KRADServiceLocatorInternal.getPostProcessorService().getDocumentIdsToLock(documentLockingEvent);
110 }
111
112 }