1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.kew.postprocessor;
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38 public class DocumentRouteStatusChange implements IDocumentEvent {
39
40 private static final long serialVersionUID = -5170568498563302803L;
41 private String appDocId;
42 private Long routeHeaderId;
43 private String newRouteStatus;
44 private String oldRouteStatus;
45
46 public DocumentRouteStatusChange(Long routeHeaderId, String appDocId, String oldStatus, String newStatus) {
47 this.routeHeaderId = routeHeaderId;
48 this.appDocId = appDocId;
49 this.newRouteStatus = newStatus;
50 this.oldRouteStatus = oldStatus;
51 }
52
53 public String getDocumentEventCode() {
54 return ROUTE_STATUS_CHANGE;
55 }
56
57 public Long getRouteHeaderId() {
58 return routeHeaderId;
59 }
60
61 public String getNewRouteStatus() {
62 return newRouteStatus;
63 }
64
65 public String getOldRouteStatus() {
66 return oldRouteStatus;
67 }
68
69 public String toString() {
70 StringBuffer buffer = new StringBuffer();
71 buffer.append("RouteHeaderID ").append(routeHeaderId);
72 buffer.append(" changing from routeStatus ").append(oldRouteStatus);
73 buffer.append(" to routeStatus ").append(newRouteStatus);
74
75 return buffer.toString();
76 }
77
78
79
80
81
82
83 public String getAppDocId() {
84 return this.appDocId;
85 }
86 }