com.ptc.windchill.uwgm.proesrv.task
Class UwgmTask

java.lang.Object
  extended bycom.ptc.core.task.Task
      extended bycom.ptc.windchill.uwgm.proesrv.task.UwgmTask
All Implemented Interfaces:
Externalizable, Serializable

public class UwgmTask
extends Task

UWGM request status data holder for Task framework

See Also:
Serialized Form

Field Summary
(package private) static long serialVersionUID
           
private  com.ptc.windchill.uwgm.soap.uwgm.UwgmTransaction uwgmTransaction
          non persistable internal data
 
Fields inherited from class com.ptc.core.task.Task
EXTERNALIZATION_VERSION_UID, log, OLD_FORMAT_VERSION_UID, VERBOSE
 
Constructor Summary
UwgmTask()
          constructor required for serialization, since Task is Externalizable
UwgmTask(String taskName, com.ptc.windchill.uwgm.soap.uwgm.UwgmTransaction uwgmTransaction)
          constructor
 
Method Summary
protected  TaskResult run()
          

Supported API: false
 void setEndDate(long timestamp)
          sets task stop time (overwrites pretected super.setEndDate)
 void setInternalStatus(TaskStatus taskStatus)
          sets task status
 void setStartDate(long timestamp)
          sets task start time (overwrites protected super.setStartDate)
 
Methods inherited from class com.ptc.core.task.Task
execute, executeInBackground, getClientID, getContext, getEndDate, getInternalStatus, getName, getParentTask, getQueueName, getResolutionOptions, getStartDate, getTaskData, getTaskEventId, hasConflicts, hasErrors, hasOverridableConflicts, hasWarnings, isRunningInBackground, isTaskEventStatusStored, readExternal, readVersion, setClientID, setContext, setName, setParentTask, setQueueName, setResolutionOptions, setRunningInBackground, setTaskData, setTaskEventId, setTaskEventStatusStored, toString, updateTaskEvent, writeExternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

uwgmTransaction

private transient com.ptc.windchill.uwgm.soap.uwgm.UwgmTransaction uwgmTransaction
non persistable internal data

Constructor Detail

UwgmTask

public UwgmTask(String taskName,
                com.ptc.windchill.uwgm.soap.uwgm.UwgmTransaction uwgmTransaction)
         throws UwgmTaskException
constructor


UwgmTask

public UwgmTask()
constructor required for serialization, since Task is Externalizable

Method Detail

setStartDate

public void setStartDate(long timestamp)
sets task start time (overwrites protected super.setStartDate)

Overrides:
setStartDate in class Task
Parameters:
timestamp -

setEndDate

public void setEndDate(long timestamp)
sets task stop time (overwrites pretected super.setEndDate)

Overrides:
setEndDate in class Task
Parameters:
timestamp -

setInternalStatus

public void setInternalStatus(TaskStatus taskStatus)
sets task status

Overrides:
setInternalStatus in class Task
Parameters:
taskStatus - TaskStatus

run

protected TaskResult run()
                  throws WTException,
                         TaskException
Description copied from class: Task


Supported API: false

Specified by:
run in class Task
Returns:
TaskResult
Throws:
TaskException
WTException