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