001: package org.obe.worklist;
002:
003: import org.obe.client.api.base.WMWorkItemImpl;
004: import org.obe.client.api.model.OBEWorkItem;
005: import org.obe.client.api.model.TemporalStatus;
006: import org.wfmc.wapi.WMParticipant;
007: import org.wfmc.wapi.WMWorkItemState;
008:
009: import java.util.Date;
010:
011: /**
012: * @author Adrian Price
013: */
014: public class WorkItemBean extends TemporalStatusBean {
015: private static final long serialVersionUID = 8018852865122550434L;
016:
017: private final WMWorkItemImpl _workItem;
018:
019: public WorkItemBean(OBEWorkItem workItem) {
020: _workItem = (WMWorkItemImpl) workItem;
021: }
022:
023: public Date getCompletedDate() {
024: return _workItem.getCompletedDate();
025: }
026:
027: public Date getDueDate() {
028: return _workItem.getDueDate();
029: }
030:
031: public String getPerformer() {
032: return _workItem.getPerformer();
033: }
034:
035: public String getProcessDefinitionId() {
036: return _workItem.getProcessDefinitionId();
037: }
038:
039: public Date getStartedDate() {
040: return _workItem.getStartedDate();
041: }
042:
043: public Date getTargetDate() {
044: return _workItem.getTargetDate();
045: }
046:
047: public TemporalStatus getTemporalStatus() {
048: return _workItem.getTemporalStatus();
049: }
050:
051: public int getToolIndex() {
052: return _workItem.getToolIndex();
053: }
054:
055: public String getName() {
056: return _workItem.getName();
057: }
058:
059: public String getId() {
060: return _workItem.getId();
061: }
062:
063: public String getActivityDefinitionId() {
064: return _workItem.getActivityDefinitionId();
065: }
066:
067: public String getActivityInstanceId() {
068: return _workItem.getActivityInstanceId();
069: }
070:
071: public String getProcessInstanceId() {
072: return _workItem.getProcessInstanceId();
073: }
074:
075: public int getPriority() {
076: return _workItem.getPriority();
077: }
078:
079: public WMParticipant getParticipant() {
080: return _workItem.getParticipant();
081: }
082:
083: public WMWorkItemState getState() {
084: return _workItem.getState();
085: }
086:
087: public void setActivityInstanceId(String activityInstanceId) {
088: _workItem.setActivityInstanceId(activityInstanceId);
089: }
090:
091: public void setParticipant(WMParticipant participant) {
092: _workItem.setParticipant(participant);
093: }
094:
095: public void setPerformer(String performer) {
096: _workItem.setPerformer(performer);
097: }
098:
099: public void setToolIndex(int toolIndex) {
100: _workItem.setToolIndex(toolIndex);
101: }
102:
103: public void setId(String id) {
104: _workItem.setId(id);
105: }
106:
107: public void setProcessDefinitionId(String processDefinitionId) {
108: _workItem.setProcessDefinitionId(processDefinitionId);
109: }
110:
111: public void setPriority(int priority) {
112: _workItem.setPriority(priority);
113: }
114:
115: public void setStartedDate(Date startedDate) {
116: _workItem.setStartedDate(startedDate);
117: }
118:
119: public void setTargetDate(Date targetDate) {
120: _workItem.setTargetDate(targetDate);
121: }
122:
123: public void setDueDate(Date dueDate) {
124: _workItem.setDueDate(dueDate);
125: }
126:
127: public void setCompletedDate(Date completedDate) {
128: _workItem.setCompletedDate(completedDate);
129: }
130:
131: public void setName(String name) {
132: _workItem.setName(name);
133: }
134:
135: public void setActivityDefinitionId(String activityDefinitionId) {
136: _workItem.setActivityDefinitionId(activityDefinitionId);
137: }
138:
139: public void setProcessInstanceId(String processInstanceId) {
140: _workItem.setProcessInstanceId(processInstanceId);
141: }
142:
143: public void setPriority(Integer priority) {
144: _workItem.setPriority(priority);
145: }
146:
147: public void setState(String state) {
148: _workItem.setState(state);
149: }
150: }
|