1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.kuali.rice.kew.dto;
18
19
20
21
22
23
24 public class DocumentRouteStatusChangeDTO extends DocumentEventDTO {
25
26 private static final long serialVersionUID = 3969488320690393356L;
27 private String newRouteStatus;
28 private String oldRouteStatus;
29
30 public DocumentRouteStatusChangeDTO() {
31 super(ROUTE_STATUS_CHANGE);
32 }
33
34 public String getNewRouteStatus() {
35 return newRouteStatus;
36 }
37
38 public void setNewRouteStatus(String newRouteStatus) {
39 this.newRouteStatus = newRouteStatus;
40 }
41
42 public String getOldRouteStatus() {
43 return oldRouteStatus;
44 }
45
46 public void setOldRouteStatus(String oldRouteStatus) {
47 this.oldRouteStatus = oldRouteStatus;
48 }
49
50 public String toString() {
51 StringBuffer buffer = new StringBuffer();
52 buffer.append("RouteHeaderID ").append(getRouteHeaderId());
53 buffer.append(" changing from routeStatus ").append(oldRouteStatus);
54 buffer.append(" to routeStatus ").append(newRouteStatus);
55
56 return buffer.toString();
57 }
58
59 }