com.ptc.windchill.uwgm.task.multirevise
Class MultireviseTask

java.lang.Object
  extended bycom.ptc.core.task.Task
      extended bycom.ptc.core.task.AtomicTask
          extended bycom.ptc.windchill.uwgm.task.multirevise.MultireviseTask
All Implemented Interfaces:
Externalizable, Serializable

public class MultireviseTask
extends AtomicTask

See Also:
Serialized Form

Nested Class Summary
(package private)  class MultireviseTask.SelectedObjOptions
           
 
Field Summary
private  WTKeyedMap assocObjMap
           
private static Log log
           
protected static String RESOURCE
           
private  Vector selectedObjectOptsToRevise
           
 
Fields inherited from class com.ptc.core.task.AtomicTask
EXTERNALIZATION_VERSION_UID, OLD_FORMAT_VERSION_UID
 
Fields inherited from class com.ptc.core.task.Task
VERBOSE
 
Constructor Summary
MultireviseTask()
           
 
Method Summary
 TaskResult _run()
          

Supported API: false
private  ReviseOptions createReviseOptions(RevisionControlled vcObj, Folder reviseFolder)
           
private  void debugPrintInputObjs(WTKeyedHashMap inputObjectsToRevise)
           
private  void debugPrintRevisedObjs(Vector allRevisedObjects)
           
private  RevisionControlled getLatestObject(Object obj)
           
 String getName()
          Gets the value of the attribute: name; Localized String that represents the "user task" label

Supported API: false
private static String getOid(Workable obj)
           
private  ReviseOptions getReviseoptionsForAssociatedObject(RevisionControlled vcObj, Folder reviseFolder)
           
private  TaskResult processMultireviseAction(DefaultTaskData taskData)
           
private  WTKeyedMap reviseObjects(WTKeyedMap inputObjects)
           
private  TaskResult updateWorkSpaceAfterRevise(WTKeyedMap result, EPMWorkspace workspace, boolean isActiveWs, Object sourceObj)
           
 
Methods inherited from class com.ptc.core.task.AtomicTask
readExternal, readVersion, run, writeExternal
 
Methods inherited from class com.ptc.core.task.Task
execute, executeInBackground, getClientID, getContext, getEndDate, getInternalStatus, getParentTask, getQueueName, getResolutionOptions, getStartDate, getTaskData, getTaskEventId, hasConflicts, hasErrors, hasOverridableConflicts, hasWarnings, isRunningInBackground, isTaskEventStatusStored, readVersion, setClientID, setContext, setEndDate, setInternalStatus, setName, setParentTask, setQueueName, setResolutionOptions, setRunningInBackground, setStartDate, setTaskData, setTaskEventId, setTaskEventStatusStored, toString, updateTaskEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

protected static final String RESOURCE
See Also:
Constant Field Values

log

private static Log log

selectedObjectOptsToRevise

private Vector selectedObjectOptsToRevise

assocObjMap

private WTKeyedMap assocObjMap
Constructor Detail

MultireviseTask

public MultireviseTask()
Method Detail

_run

public TaskResult _run()
                throws WTException
Description copied from class: AtomicTask


Supported API: false

Specified by:
_run in class AtomicTask
Returns:
TaskResult
Throws:
WTException

processMultireviseAction

private TaskResult processMultireviseAction(DefaultTaskData taskData)
                                     throws WTException
Throws:
WTException

getName

public String getName()
Description copied from class: Task
Gets the value of the attribute: name; Localized String that represents the "user task" label

Supported API: false

Overrides:
getName in class Task
Returns:
String

reviseObjects

private WTKeyedMap reviseObjects(WTKeyedMap inputObjects)
                          throws WTException
Throws:
WTException

updateWorkSpaceAfterRevise

private TaskResult updateWorkSpaceAfterRevise(WTKeyedMap result,
                                              EPMWorkspace workspace,
                                              boolean isActiveWs,
                                              Object sourceObj)
                                       throws WTException
Throws:
WTException

createReviseOptions

private ReviseOptions createReviseOptions(RevisionControlled vcObj,
                                          Folder reviseFolder)

getReviseoptionsForAssociatedObject

private ReviseOptions getReviseoptionsForAssociatedObject(RevisionControlled vcObj,
                                                          Folder reviseFolder)
                                                   throws WTException
Throws:
WTException

getLatestObject

private RevisionControlled getLatestObject(Object obj)
                                    throws WTException
Throws:
WTException

getOid

private static String getOid(Workable obj)
                      throws WTException
Throws:
WTException

debugPrintInputObjs

private void debugPrintInputObjs(WTKeyedHashMap inputObjectsToRevise)

debugPrintRevisedObjs

private void debugPrintRevisedObjs(Vector allRevisedObjects)