1 5 package com.opensymphony.workflow.spi.hibernate; 6 7 import com.opensymphony.workflow.spi.WorkflowEntry; 8 9 import java.util.List ; 10 11 12 18 public class HibernateWorkflowEntry implements WorkflowEntry { 19 21 List currentSteps; 22 List historySteps; 23 String workflowName; 24 long id = -1; 25 private int state; 26 27 29 public void setCurrentSteps(List currentSteps) { 30 this.currentSteps = currentSteps; 31 } 32 33 public List getCurrentSteps() { 34 return currentSteps; 35 } 36 37 public void setHistorySteps(List historySteps) { 38 this.historySteps = historySteps; 39 } 40 41 public List getHistorySteps() { 42 return historySteps; 43 } 44 45 public void setId(long id) { 46 this.id = id; 47 } 48 49 public long getId() { 50 return id; 51 } 52 53 public boolean isInitialized() { 54 return state > 0; 55 } 56 57 public void setState(int state) { 58 this.state = state; 59 } 60 61 public int getState() { 62 return state; 63 } 64 65 public void setWorkflowName(String workflowName) { 66 this.workflowName = workflowName; 67 } 68 69 public String getWorkflowName() { 70 return workflowName; 71 } 72 } 73 | Popular Tags |