|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.msponer.android.yac.model.MobileWorkItem
public class MobileWorkItem
Model-Class for mobile work items. Corresponding YAWl class is org.yawlfoundation.yawl.engine.interfce.WorkItemRecord. Extension added to support special mobile functionalities (current position, distances, etc.)
Field Summary | |
---|---|
static String |
STATUS_COMPLETE
Constant for status complete. |
static String |
STATUS_ENABLED
Constant for status enabled. |
static String |
STATUS_EXECUTING
Constant for status executing. |
static String |
STATUS_RESOURCE_ALLOCATED
Constant for resource status allocated. |
static String |
STATUS_RESOURCE_OFFERED
Constant for resource status offered. |
static String |
STATUS_RESOURCE_STARTED
Constant for resource status started. |
static String |
STATUS_RESOURCE_SUSPENDED
Constant for resource status suspended. |
static String |
STATUS_RESOURCE_UNOFFERED
Constant for resource status unoffered. |
static String |
STATUS_RESOURCE_UNRESOURCED
Constant for resource status unresourced. |
static String |
STATUS_SUSPENDED
Constant for status suspended. |
Constructor Summary | |
---|---|
MobileWorkItem()
Instantiates a new mobile work item. |
|
MobileWorkItem(String caseID,
String taskID,
String specURI,
String enablementTime,
String status)
Instantiates a new mobile work item. |
|
MobileWorkItem(org.yawlfoundation.yawl.engine.interfce.WorkItemRecord wir)
Instantiates a new mobile work item. |
Method Summary | |
---|---|
void |
appendSyncAction(String actionString)
Append sync action. |
int |
compareTo(MobileWorkItem another)
|
org.jdom.Element |
getCaseData()
Returns the case data. |
String |
getCaseDataString()
Returns the case data string. |
String |
getCaseID()
Returns the case id. |
org.jdom.Element |
getDataList()
Returns the data list. |
String |
getDataListString()
Returns the data list string. |
org.jdom.Element |
getDataSchema()
Returns the data schema. |
String |
getDataSchemaString()
Returns the data schema string. |
float |
getDistanceToPosition()
Returns the distance to position. |
Date |
getEnablementDate()
Returns the enablement date. |
String |
getEnablementTimeMs()
Returns the enablement time ms. |
String |
getEnablementTimeString()
Returns the enablement time string. |
String |
getID()
Returns the iD. |
String |
getIDForDisplay()
Returns the iD for display. |
String |
getLatitude()
Returns the latitude. |
String |
getLongitude()
Returns the longitude. |
int |
getPrimaryKey()
Returns the primary key. |
String |
getResourceStatus()
Returns the resource status. |
String |
getRootCaseID()
Returns the root case id. |
String |
getSpecIdentifier()
Returns the spec identifier. |
String |
getSpecURI()
Returns the spec uri. |
String |
getSpecVersion()
Returns the spec version. |
State |
getState()
Returns the state. |
String |
getStatus()
Returns the status. |
String |
getSyncQueue()
Returns the sync queue. |
String |
getTaskID()
Returns the task id. |
String |
getTaskName()
Returns the task name. |
org.jdom.Element |
getUpdatedData()
Returns the updated data. |
String |
getUpdatedDataString()
Returns the updated data string. |
org.yawlfoundation.yawl.engine.interfce.WorkItemRecord |
getWIR()
Returns the wIR. |
boolean |
hasLiveStatus()
Checks for live status. |
boolean |
hasResourceStatus(String status)
Checks for resource status. |
boolean |
hasStatus(String status)
Checks for status. |
void |
removeSyncAction(String actionString)
Removes the sync action. |
void |
restoreDataList()
Restores the data list. |
void |
setCaseData(org.jdom.Element caseData)
Sets the case data. |
void |
setCaseDataString(String caseDataString)
Sets the case data string. |
void |
setCaseID(String caseID)
Sets the case id. |
void |
setDataList(org.jdom.Element dataList)
Sets the data list. |
void |
setDataListString(String dataStr)
Sets the data list string. |
void |
setDataSchema(org.jdom.Element dataSchema)
Sets the data schema. |
void |
setDataSchemaString(String dataSchemaString)
Sets the data schema string. |
void |
setDistanceToPosition(float distanceToPosition)
Sets the distance to position. |
void |
setEnablementDate(Date enablementDate)
Sets the enablement date. |
void |
setEnablementTimeMs(String time)
Sets the enablement time ms. |
void |
setEnablementTimeString(String time)
Sets the enablement time string. |
void |
setLatitude(String latitude)
Sets the latitude. |
void |
setLongitude(String longitude)
Sets the longitude. |
void |
setPrimaryKey(int primaryKey)
Sets the primary key. |
void |
setResourceStatus(String status)
Sets the resource status. |
void |
setSpecIdentifier(String id)
Sets the spec identifier. |
void |
setSpecURI(String uri)
Sets the spec uri. |
void |
setSpecVersion(String version)
Sets the spec version. |
void |
setState(State state)
Sets the state. |
void |
setStatus(String status)
Sets the status. |
void |
setSyncQueue(String syncQueue)
Sets the sync queue. |
void |
setTaskID(String taskID)
Sets the task id. |
void |
setTaskName(String name)
Sets the task name. |
void |
setUpdatedData(org.jdom.Element dataListUpdated)
Sets the updated data. |
void |
setUpdatedDataListString(String updatedDataStr)
Sets the updated data list string. |
String |
toXML()
To xml. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String STATUS_ENABLED
public static final String STATUS_EXECUTING
public static final String STATUS_COMPLETE
public static final String STATUS_SUSPENDED
public static final String STATUS_RESOURCE_OFFERED
public static final String STATUS_RESOURCE_ALLOCATED
public static final String STATUS_RESOURCE_STARTED
public static final String STATUS_RESOURCE_SUSPENDED
public static final String STATUS_RESOURCE_UNOFFERED
public static final String STATUS_RESOURCE_UNRESOURCED
Constructor Detail |
---|
public MobileWorkItem()
public MobileWorkItem(String caseID, String taskID, String specURI, String enablementTime, String status)
caseID
- the case idtaskID
- the task idspecURI
- the spec urienablementTime
- the enablement timestatus
- the statuspublic MobileWorkItem(org.yawlfoundation.yawl.engine.interfce.WorkItemRecord wir)
wir
- the work item recordMethod Detail |
---|
public void restoreDataList()
public void setSpecIdentifier(String id)
id
- the new spec identifierpublic void setSpecVersion(String version)
version
- the new spec versionpublic void setSpecURI(String uri)
uri
- the new spec uripublic void setCaseID(String caseID)
caseID
- the new case idpublic void setTaskID(String taskID)
taskID
- the new task idpublic void setTaskName(String name)
name
- the new task namepublic void setEnablementTimeString(String time)
time
- the new enablement time stringpublic void setEnablementTimeMs(String time)
time
- the new enablement time mspublic void setStatus(String status)
status
- the new statuspublic void setResourceStatus(String status)
status
- the new resource statuspublic void setDataList(org.jdom.Element dataList)
dataList
- the new data listpublic void setDataListString(String dataStr)
dataStr
- the new data list stringpublic void setUpdatedData(org.jdom.Element dataListUpdated)
dataListUpdated
- the new updated datapublic void setUpdatedDataListString(String updatedDataStr)
updatedDataStr
- the new updated data list stringpublic void setDataSchema(org.jdom.Element dataSchema)
dataSchema
- the new data schemapublic void setDataSchemaString(String dataSchemaString)
dataSchemaString
- the new data schema stringpublic String getSpecIdentifier()
public String getSpecVersion()
public String getSpecURI()
public String getCaseID()
public String getTaskID()
public String getID()
public String getEnablementTimeString()
public String getEnablementTimeMs()
public String getStatus()
public String getResourceStatus()
public org.jdom.Element getDataList()
public String getDataListString()
public org.jdom.Element getUpdatedData()
public String getUpdatedDataString()
public String getIDForDisplay()
public String getTaskName()
public String getRootCaseID()
public boolean hasLiveStatus()
public boolean hasStatus(String status)
status
- the status
public boolean hasResourceStatus(String status)
status
- the status
public org.jdom.Element getDataSchema()
public String getDataSchemaString()
public String toXML()
public int getPrimaryKey()
public void setPrimaryKey(int primaryKey)
primaryKey
- the new primary keypublic void setState(State state)
state
- the new statepublic State getState()
public void setSyncQueue(String syncQueue)
syncQueue
- the new sync queuepublic String getSyncQueue()
public void appendSyncAction(String actionString)
actionString
- the action stringpublic void removeSyncAction(String actionString)
actionString
- the action stringpublic org.yawlfoundation.yawl.engine.interfce.WorkItemRecord getWIR()
public int compareTo(MobileWorkItem another)
compareTo
in interface Comparable<MobileWorkItem>
public void setEnablementDate(Date enablementDate)
enablementDate
- the new enablement datepublic Date getEnablementDate()
public void setLongitude(String longitude)
longitude
- the new longitudepublic String getLongitude()
public void setLatitude(String latitude)
latitude
- the new latitudepublic String getLatitude()
public void setDistanceToPosition(float distanceToPosition)
distanceToPosition
- the new distance to positionpublic float getDistanceToPosition()
public void setCaseData(org.jdom.Element caseData)
caseData
- the new case datapublic org.jdom.Element getCaseData()
public void setCaseDataString(String caseDataString)
caseDataString
- the new case data stringpublic String getCaseDataString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |