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