1 5 package com.opensymphony.workflow.spi; 6 7 import java.io.Serializable ; 8 9 import java.util.Date ; 10 11 12 17 public class SimpleStep implements Step, Serializable { 18 20 private Date dueDate; 21 private Date finishDate; 22 private Date startDate; 23 private String caller; 24 private String owner; 25 private String status; 26 private long[] previousStepIds; 27 private int actionId; 28 private int stepId; 29 private long entryId; 30 private long id; 31 32 34 public SimpleStep(long id, long entryId, int stepId, int actionId, String owner, Date startDate, Date dueDate, Date finishDate, String status, long[] previousStepIds, String caller) { 35 this.id = id; 36 this.entryId = entryId; 37 this.stepId = stepId; 38 this.actionId = actionId; 39 this.owner = owner; 40 this.startDate = startDate; 41 this.finishDate = finishDate; 42 this.dueDate = dueDate; 43 this.status = status; 44 this.previousStepIds = previousStepIds; 45 this.caller = caller; 46 } 47 48 50 public void setActionId(int actionId) { 51 this.actionId = actionId; 52 } 53 54 public int getActionId() { 55 return actionId; 56 } 57 58 public void setCaller(String caller) { 59 this.caller = caller; 60 } 61 62 public String getCaller() { 63 return caller; 64 } 65 66 public Date getDueDate() { 67 return dueDate; 68 } 69 70 public void setEntryId(long entryId) { 71 this.entryId = entryId; 72 } 73 74 public long getEntryId() { 75 return entryId; 76 } 77 78 public void setFinishDate(Date finishDate) { 79 this.finishDate = finishDate; 80 } 81 82 public Date getFinishDate() { 83 return finishDate; 84 } 85 86 public void setId(long id) { 87 this.id = id; 88 } 89 90 public long getId() { 91 return id; 92 } 93 94 public void setOwner(String owner) { 95 this.owner = owner; 96 } 97 98 public String getOwner() { 99 return owner; 100 } 101 102 public void setPreviousStepIds(long[] previousStepIds) { 103 this.previousStepIds = previousStepIds; 104 } 105 106 public long[] getPreviousStepIds() { 107 return previousStepIds; 108 } 109 110 public void setStartDate(Date startDate) { 111 this.startDate = startDate; 112 } 113 114 public Date getStartDate() { 115 return startDate; 116 } 117 118 public void setStatus(String status) { 119 this.status = status; 120 } 121 122 public String getStatus() { 123 return status; 124 } 125 126 public void setStepId(int stepId) { 127 this.stepId = stepId; 128 } 129 130 public int getStepId() { 131 return stepId; 132 } 133 134 public String toString() { 135 return "SimpleStep@" + stepId + "[owner=" + owner + ", actionId=" + actionId + ", status=" + status + "]"; 136 } 137 } 138 | Popular Tags |