1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.kuali.rice.krad.workflow.postprocessor;
18
19 import java.rmi.RemoteException;
20
21 import org.apache.log4j.Logger;
22 import org.kuali.rice.kew.dto.ActionTakenEventDTO;
23 import org.kuali.rice.kew.dto.AfterProcessEventDTO;
24 import org.kuali.rice.kew.dto.BeforeProcessEventDTO;
25 import org.kuali.rice.kew.dto.DeleteEventDTO;
26 import org.kuali.rice.kew.dto.DocumentLockingEventDTO;
27 import org.kuali.rice.kew.dto.DocumentRouteLevelChangeDTO;
28 import org.kuali.rice.kew.dto.DocumentRouteStatusChangeDTO;
29 import org.kuali.rice.kew.postprocessor.PostProcessorRemote;
30 import org.kuali.rice.krad.service.KRADServiceLocatorInternal;
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48 public class KualiPostProcessor implements PostProcessorRemote {
49
50 private static Logger LOG = Logger.getLogger(KualiPostProcessor.class);
51
52
53
54
55
56 public boolean doRouteStatusChange(DocumentRouteStatusChangeDTO statusChangeEvent) throws RemoteException {
57 return KRADServiceLocatorInternal.getPostProcessorService().doRouteStatusChange(statusChangeEvent);
58 }
59
60
61
62
63
64 public boolean doActionTaken(ActionTakenEventDTO event) throws RemoteException {
65 return KRADServiceLocatorInternal.getPostProcessorService().doActionTaken(event);
66 }
67
68
69
70
71
72 public boolean doDeleteRouteHeader(DeleteEventDTO event) throws RemoteException {
73 return KRADServiceLocatorInternal.getPostProcessorService().doDeleteRouteHeader(event);
74 }
75
76
77
78
79
80 public boolean doRouteLevelChange(DocumentRouteLevelChangeDTO levelChangeEvent) throws RemoteException {
81 return KRADServiceLocatorInternal.getPostProcessorService().doRouteLevelChange(levelChangeEvent);
82 }
83
84
85
86
87 public boolean beforeProcess(BeforeProcessEventDTO beforeProcessEvent) throws Exception {
88 return KRADServiceLocatorInternal.getPostProcessorService().beforeProcess(beforeProcessEvent);
89 }
90
91
92
93
94 public boolean afterProcess(AfterProcessEventDTO afterProcessEvent) throws Exception {
95 return KRADServiceLocatorInternal.getPostProcessorService().afterProcess(afterProcessEvent);
96 }
97
98
99
100
101 public String[] getDocumentIdsToLock(DocumentLockingEventDTO documentLockingEvent) throws Exception {
102 return KRADServiceLocatorInternal.getPostProcessorService().getDocumentIdsToLock(documentLockingEvent);
103 }
104
105
106 }