1 package za.co.csir.icomtek.workflow; 2 3 import za.co.csir.icomtek.workflow.model.State; 4 import za.co.csir.icomtek.workflow.model.Workflow; 5 6 import java.io.Serializable ; 7 8 12 public class WorkflowData implements Serializable { 13 14 private Long id; 15 private Long linkId; 16 private String workflowName; 17 private String currentState; 18 private String currentStateDescription; 19 private long version; 20 21 24 public WorkflowData () {} 25 26 34 public Long getId() { 35 return this.id; 36 } 37 38 43 public void setId(Long argId){ 44 this.id = argId; 45 } 46 47 54 public Long getLinkId() { 55 return this.linkId; 56 } 57 58 63 public void setLinkId(Long argId){ 64 this.linkId = argId; 65 } 66 67 74 public String getWorkflowName() { 75 return this.workflowName; 76 } 77 78 83 public void setWorkflowName(String argWorkflowName){ 84 this.workflowName = argWorkflowName; 85 } 86 87 88 95 public String getCurrentState() { 96 return this.currentState; 97 } 98 99 104 public void setCurrentState(String currentState){ 105 this.currentState = currentState; 106 } 107 108 115 public String getCurrentStateDescription() { 116 return this.currentStateDescription; 117 } 118 119 124 public void setCurrentStateDescription(String currentStateDescription){ 125 this.currentStateDescription = currentStateDescription; 126 } 127 128 public Workflow getWorkflow () { 129 return WorkflowEvaluator.getWorkflow(workflowName); 130 } 131 132 140 public long getVersion() { 141 return this.version; 142 } 143 144 149 public void setVersion(long version){ 150 this.version = version; 151 } 152 } 153 | Popular Tags |