wt.projmgmt.execution
Class ProjectPlan

java.lang.Object
  extended bywt.fc.WTObject
      extended bywt.enterprise.Simple
          extended bywt.workflow.engine.WfExecutionObject
              extended bywt.workflow.engine.WfContainer
                  extended bywt.workflow.engine.WfProcess
                      extended bywt.projmgmt.execution.ProjectPlan
All Implemented Interfaces:
AccessControlled, BusinessInformation, ContentHolder, DisplayIdentification, DomainAdministered, ExecutionObject, Externalizable, Indexable, NetFactor, Notifiable, ObjectMappable, Ownable, Persistable, RecentlyVisited, ResourceHolder, RoleHolder, Serializable, SubjectOfForum, SubjectOfNotebook, TeamManaged, WTContained

public class ProjectPlan
extends WfProcess
implements ExecutionObject, ResourceHolder, Externalizable

The ProjectPlan class represents a container for activities, resources, deliverables and their relationships that are involved in the execution of a project.

Use the newProjectPlan static factory method(s), not the ProjectPlan constructor, to construct instances of this class. Instances must be constructed using the static factory(s), in order to ensure proper initialization of the instance.



Supported API: true

Extendable: false

See Also:
ProjectActivity, SummaryActivity, Deliverable, ProjectResource, Serialized Form

Field Summary
private  TimeToElapse afterDeadline
           
private  TimeToElapse beforeDeadline
           
private static String CLASSNAME
           
private  ExecutionConfiguration configuration
           
protected  QueryResult containedNodes
           
protected  Double currentCost
           
private  Currency currentWorkCost
           
private static boolean DELETE_QUEUE_WHEN_CLOSING
           
protected  TimeToElapse duration
           
private  boolean enabled
           
protected  Timestamp estimatedFinish
           
private  Timestamp estimatedFinishDate
           
static long EXTERNALIZATION_VERSION_UID
           
private static int HEALTH_STATUS_UPPER_LIMIT
           
private  ProjectHealthStatus healthStatus
           
private  IndexerSet indexerSet
           
private  Timestamp inheritedDeadline
           
static String MANAGER_REF
          Label for the attribute; Reference to a group or a user that acts as project managers.
private  WTPrincipalReference managerRef
           
protected static long OLD_FORMAT_VERSION_UID
           
private  int percentComplete
           
private  Work performedWork
           
private  ProjectPhase phase
           
static String PHASE
          Label for the attribute; Description of project's stage in its execution.
private static int PHASE_UPPER_LIMIT
           
protected  QueryResult predecessors
           
static String PROJECT
          Label for the attribute.
private static int PROJECT_CATEGORY_UPPER_LIMIT
           
static String PROJECT_REFERENCE
          Label for the attribute.
private  ProjectCategory projectCategory
           
private  ObjectReference projectReference
           
private static String RESOURCE
           
private static int RISK_DESCRIPTION_UPPER_LIMIT
           
private static int RISK_VALUE_UPPER_LIMIT
           
private  String riskDescription
           
private  ProjectRiskValue riskValue
           
private  String scope
           
static String SCOPE
          Label for the attribute; Description of project's scope.
private static int SCOPE_UPPER_LIMIT
           
(package private) static long serialVersionUID
           
private static int STATUS_DESCRIPTION_UPPER_LIMIT
           
private  String statusDescription
           
protected  QueryResult successors
           
protected  Double totalCost
           
private  Work totalWork
           
private  Currency totalWorkCost
           
private static boolean USE_QUEUE
           
private static boolean VERBOSE
           
 
Fields inherited from class wt.workflow.engine.WfProcess
BUSINESS_OBJ_REFERENCE, CREATOR, PROJECT_REF, PROPAGATION_QUEUE_REFERENCE, TEAM_ID, USER_WORK_QUEUE_REFERENCE
 
Fields inherited from class wt.workflow.engine.WfContainer
REQUESTER_REF
 
Fields inherited from class wt.workflow.engine.WfExecutionObject
AD_SQEN, ALERT_TIME, CHANGE_STATE_TIME, CONTAINER, CONTEXT, D_SQEN, DEADLINE, DEADLINE_DURATION, DESCRIPTION, END_TIME, EVENT_CONFIGURATION, EXCEPTION_MESSAGE, KEY, NAME, PD_SQEN, PRIORITY, START_TIME, STATE, SUSPEND_TIME, TEMPLATE, TIME_PAST_DEADLINE, TIME_TO_DEADLINE, TIME_TO_START
 
Fields inherited from class wt.enterprise.Simple
 
Fields inherited from class wt.fc.WTObject
CREATE_TIMESTAMP, MODIFY_TIMESTAMP
 
Fields inherited from interface wt.projmgmt.execution.ExecutionObject
AFTER_DEADLINE, BEFORE_DEADLINE, CONFIGURATION, CURRENT_WORK_COST, ENABLED, ESTIMATED_FINISH_DATE, HEALTH_STATUS, INHERITED_DEADLINE, PERCENT_COMPLETE, PERFORMED_WORK, PROJECT_CATEGORY, RISK_DESCRIPTION, RISK_VALUE, STATUS_DESCRIPTION, TOTAL_WORK, TOTAL_WORK_COST
 
Fields inherited from interface wt.fc.Persistable
IDENTITY, PERSIST_INFO, TYPE
 
Fields inherited from interface wt.notify.Notifiable
EVENT_SET
 
Fields inherited from interface wt.inf.container.WTContained
CONTAINER, CONTAINER_ID, CONTAINER_NAME, CONTAINER_REFERENCE
 
Fields inherited from interface wt.ownership.Ownable
OWNERSHIP
 
Fields inherited from interface wt.index.Indexable
INDEXER_SET
 
Fields inherited from interface wt.project.RoleHolder
ROLE_PRINCIPAL_MAP
 
Fields inherited from interface wt.content.ContentHolder
CONTENT_VECTOR, HAS_CONTENTS, HTTP_VECTOR, OPERATION
 
Fields inherited from interface wt.team.TeamManaged
TEAM_IDENTITY, TEAM_NAME, TEAM_TEMPLATE_ID, TEAM_TEMPLATE_IDENTITY, TEAM_TEMPLATE_NAME
 
Fields inherited from interface wt.admin.DomainAdministered
DOMAIN_REF, INHERITED_DOMAIN
 
Fields inherited from interface wt.fc.BusinessInformation
BUSINESS_TYPE, IDENTITY
 
Fields inherited from interface wt.identity.DisplayIdentification
DISPLAY_IDENTIFIER, DISPLAY_IDENTITY, DISPLAY_TYPE
 
Constructor Summary
ProjectPlan()
           
 
Method Summary
protected  WfProcess changeProcessFolder(WfProcess process, WfTransition transition)
          Does nothing: overrides WfProcess.changeProcessFolder.
 ExecutionObject changeState(ProjectState new_state)
          Changes the state of the execution object to the workflow state that corresponds to the project state passed as argument.
 WfExecutionObject changeState(WfTransition transition)
          Change the workflow state of the project plan given a transition as argument.
 WfExecutionObject changeState(WfTransition transition, boolean immediate)
          Change the workflow state of the object given a transition as argument.
 WfTemplateObject createTemplateObject()
          Returns template object of type ProjectPlanTemplate derived from the project plan.
 boolean equals(Object obj)
          Indicates whether the given object is equal to this object from a persistence perspective, by comparing the two objects ObjectIdentifiers.
 TimeToElapse getAfterDeadline()
          Gets the value of the attribute: AFTER_DEADLINE.
 TimeToElapse getBeforeDeadline()
          Gets the value of the attribute: BEFORE_DEADLINE.
 String getConceptualClassname()
          Deprecated.  
 ExecutionConfiguration getConfiguration()
          Gets the value of the attribute: CONFIGURATION.
 QueryResult getContainedNodes()
          Returns object's ContainedNodes (calculated cached value)

Supported API: false
private  WTContainerRef getContainerRef(ObjectReference obj_ref)
           
 ProcessData getContext()
          

Supported API: false
 Double getCurrentCost()
          Returns object's current cost.
 Currency getCurrentWorkCost()
          Gets the value of the attribute: CURRENT_WORK_COST.
 Timestamp getDeadline()
          Returns object's deadline.
 String getDescription()
          Returns object description.
 TimeToElapse getDuration()
          Returns object's Duration.
 Timestamp getEndTime()
          Returns time execution of object finished.
 Timestamp getEstimatedFinish()
          Returns object's estimated finish.
 Timestamp getEstimatedFinishDate()
          Gets the value of the attribute: ESTIMATED_FINISH_DATE.
 ProjectState getExecutionState()
          Returns project execution state that corresponds to internal object's workflow state.
 Timestamp getFinishDate(TimeToElapse days)
          Returns estimated finish date for the object given the duration given in TimeToElapse.
 ProjectHealthStatus getHealthStatus()
          Gets the value of the attribute: HEALTH_STATUS.
 IndexerSet getIndexerSet()
          Gets the value of the attribute: INDEXER_SET.
 Timestamp getInheritedDeadline()
          Gets the value of the attribute: INHERITED_DEADLINE.
protected  Folder getInitialFolder()
          Returns initial process folder.
 WTPrincipalReference getManagerRef()
          Gets the value of the attribute: MANAGER_REF.
 Enumeration getManagers()
          Returns an enumeration of users that act as managers of the project plan.
 String getName()
          Returns name of the object.
private  ObjectIdentifier getOid(Object obj)
           
 int getPercentComplete()
          Gets the value of the attribute: PERCENT_COMPLETE.
 Work getPerformedWork()
          Gets the value of the attribute: PERFORMED_WORK.
 ProjectPhase getPhase()
          Gets the value of the attribute: PHASE.
 ProjectPlan getPlan()
          Retuns the project plan to which the execuiton object belongs.
 QueryResult getPredecessors()
          Returns object's Predecessors (calculated cached value)

Supported API: false
protected  Vector getPrincipalsForRole(Role role)
          Returns principal given a role.
 Project2 getProject()
          Gets the object for the association that plays role: PROJECT.
 ProjectCategory getProjectCategory()
          Gets the value of the attribute: PROJECT_CATEGORY.
 ObjectReference getProjectReference()
          Gets the value of the attribute: PROJECT_REFERENCE.
 String getRiskDescription()
          Gets the value of the attribute: RISK_DESCRIPTION.
 ProjectRiskValue getRiskValue()
          Gets the value of the attribute: RISK_VALUE.
 String getScope()
          Gets the value of the attribute: SCOPE.
 Timestamp getStartTime()
          Returns time execution of object started.
 String getStatusDescription()
          Gets the value of the attribute: STATUS_DESCRIPTION.
 QueryResult getSuccessors()
          Returns object's successors.
 WfTemplateObject getTemplateObject()
          Returns template to which the execution object is associated.
 Double getTotalCost()
          Returns object's total cost.
 Work getTotalWork()
          Gets the value of the attribute: TOTAL_WORK.
 Currency getTotalWorkCost()
          Gets the value of the attribute: TOTAL_WORK_COST.
 int hashCode()
          Returns a hash code for this object based upon its ObjectIdentifier.
protected  void initialize(Project2 project)
          Supports initialization, following construction of an instance.
protected  void initialize(WTContainerRef context_ref)
          Supports initialization, following construction of an instance.
 boolean isEnabled()
          Gets the value of the attribute: ENABLED.
private  void managerRefValidate(WTPrincipalReference a_ManagerRef)
           
static ProjectPlan newProjectPlan(Project2 project)
          ProjectPlan constructor.
static ProjectPlan newProjectPlan(WTContainerRef context_ref)
          ProjectPlan constructor to be used for stand-alone plans.
private  void projectReferenceValidate(ObjectReference a_ProjectReference)
           
 void readExternal(ObjectInput input)
          Reads the non-transient fields of this class from an external source.
 void readExternal(PersistentRetrieveIfc input)
          Used by Persistent Data Service to populate the persistent attributes of this class from a persistent store.
private  boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source, which is not the current version.
protected  boolean readVersion(ProjectPlan thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
protected  void resumeContainedActivities()
          Overrides WfContainer.resumeContainedActivities() to add project management specific behavior.
private  void scopeValidate(String a_Scope)
           
 void setAfterDeadline(TimeToElapse a_AfterDeadline)
          Sets the value of the attribute: AFTER_DEADLINE.
 void setBeforeDeadline(TimeToElapse a_BeforeDeadline)
          Sets the value of the attribute: BEFORE_DEADLINE.
 void setConfiguration(ExecutionConfiguration a_Configuration)
          Sets the value of the attribute: CONFIGURATION.
 void setContainedNodes(QueryResult a_result)
          sets object's ContainedNodes (calculated cached value)

Supported API: false
 void setCurrentCost(Double cost)
          set object's current cost.
 void setCurrentWorkCost(Currency a_CurrentWorkCost)
          Sets the value of the attribute: CURRENT_WORK_COST.
 void setDeadline(Timestamp time)
          Sets object's deadline.
 void setDescription(String desc)
          Sets object description.
 void setDuration(TimeToElapse a_time)
          set object's Duration.
 void setEnabled(boolean a_Enabled)
          Sets the value of the attribute: ENABLED.
 void setEndTime(Timestamp time)
          Sets the time the execution of object finished.
 void setEstimatedFinish(Timestamp a_time)
          set object's estimated finish.
 void setEstimatedFinishDate(Timestamp a_EstimatedFinishDate)
          Sets the value of the attribute: ESTIMATED_FINISH_DATE.
 void setExecutionState(ProjectState state)
          Setsinternal object's workflow state that corresponds to project execution state passed as argument.
 void setHealthStatus(ProjectHealthStatus a_HealthStatus)
          Sets the value of the attribute: HEALTH_STATUS.
 void setIndexerSet(IndexerSet a_IndexerSet)
          Sets the value of the attribute: INDEXER_SET.
 void setInheritedDeadline(Timestamp a_InheritedDeadline)
          Sets the value of the attribute: INHERITED_DEADLINE.
private  void setInitialAttributes(ObjectReference project_ref)
          For stand-alone plans, project_ref is null.
 void setManagerRef(WTPrincipalReference a_ManagerRef)
          Sets the value of the attribute: MANAGER_REF.
 void setName(String name)
          Sets name of the object.
 void setPercentComplete(int a_PercentComplete)
          Sets the value of the attribute: PERCENT_COMPLETE.
 void setPerformedWork(Work a_PerformedWork)
          Sets the value of the attribute: PERFORMED_WORK.
 void setPhase(ProjectPhase a_Phase)
          Sets the value of the attribute: PHASE.
 void setPredecessors(QueryResult a_result)
          sets object's Predecessors (calculated cached value)

Supported API: false
 void setProject(Project2 a_Project)
          Sets the object for the association that plays role: PROJECT.
 void setProjectCategory(ProjectCategory a_ProjectCategory)
          Sets the value of the attribute: PROJECT_CATEGORY.
 void setProjectReference(ObjectReference a_ProjectReference)
          Sets the value of the attribute: PROJECT_REFERENCE.
 void setRiskDescription(String a_RiskDescription)
          Sets the value of the attribute: RISK_DESCRIPTION.
 void setRiskValue(ProjectRiskValue a_RiskValue)
          Sets the value of the attribute: RISK_VALUE.
 void setScope(String a_Scope)
          Sets the value of the attribute: SCOPE.
 void setStartTime(Timestamp time)
          Sets the s time execution of object started.
 void setStatusDescription(String a_StatusDescription)
          Sets the value of the attribute: STATUS_DESCRIPTION.
 void setSuccessors(QueryResult a_result)
          sets object's successors.
 void setTotalCost(Double cost)
          set object's total cost.
 void setTotalWork(Work a_TotalWork)
          Sets the value of the attribute: TOTAL_WORK.
 void setTotalWorkCost(Currency a_TotalWorkCost)
          Sets the value of the attribute: TOTAL_WORK_COST.
private  boolean shouldStart(ProjectNode node)
          Returns whether a defined node in a suspended plan should start when the plan is restarted.
private  void suspendCancelledNodes(ProjectPlan plan)
           
 String toString()
          Returns a string representtaion of the project plan.
 void updateDeadline(Timestamp start)
          

Supported API: false
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 void writeExternal(PersistentStoreIfc output)
          Used by Persistent Data Service to obtain the values of the persistent attributes of this class, so they can be written to a persistent store.
 
Methods inherited from class wt.workflow.engine.WfProcess
addPrincipal, buildRoleMap, computeDeadline, computeTimeToStart, deletePrincipal, deleteRole, getBusinessObjectReference, getBusinessObjReference, getContentVector, getCreator, getHttpVector, getInitialDomain, getOperation, getOwnership, getPrincipals, getProcessRoles, getProjectRef, getPropagationQueueReference, getRoleFor, getRolePrincipalMap, getRoles, getTeamId, getTeamIdentity, getTeamName, getTeamTemplateId, getTeamTemplateIdentity, getTeamTemplateName, getUserWorkQueueReference, getWfException, isHasContents, isNested, newWfProcess, newWfProcess, readVersion, rolePrincipalMapAsString, setBusinessObjReference, setContentVector, setCreator, setHasContents, setHttpVector, setOperation, setOwnership, setPrimaryBusinessObject, setProcessAttributes, setProjectRef, setPropagationQueueReference, setRolePrincipalMap, setTeamId, setTeamTemplateId, setUserWorkQueueReference, start, start
 
Methods inherited from class wt.workflow.engine.WfContainer
abortContainedActivities, getContainerNodes, getRequester, getRequesterRef, getStartConnector, readVersion, resetContainedActivities, sendEventToRequester, setRequesterRef, suspendContainedActivities, terminateContainedActivities
 
Methods inherited from class wt.workflow.engine.WfExecutionObject
calculateTimePastDeadline, calculateTimeToDeadline, changeDeadline, changeStateAttributes, computeTimePastDeadline, computeTimeToDeadline, evaluateExpression, getAdSQEN, getAlertTime, getChangeStateTime, getContainer, getContainerName, getContainerReference, getDeadlineDuration, getDSQEN, getEventConfiguration, getIdentity, getKey, getPdSQEN, getPriority, getState, getSuspendTime, getTemplate, getTimePastDeadline, getTimeToDeadline, getTimeToStart, getVarDueDate, getVarDuration, getVarNotification, initialize, isOverdue, readVersion, removeDeadlineQueueEntries, resetValues, setAdSQEN, setAlertTime, setChangeStateTime, setContainer, setContainerReference, setContext, setDeadlineDuration, setDSQEN, setEventConfiguration, setKey, setPdSQEN, setPriority, setState, setSuspendTime, setTemplate, setTimePastDeadline, setTimeToDeadline, setTimeToStart, validTransitions
 
Methods inherited from class wt.enterprise.Simple
getBusinessType, getDomainRef, getEventSet, isInheritedDomain, readVersion, setDomainRef, setEventSet, setInheritedDomain
 
Methods inherited from class wt.fc.WTObject
checkAttributes, duplicate, finalize, getClassInfo, getCreateTimestamp, getDisplayIdentifier, getDisplayIdentity, getDisplayType, getModifyTimestamp, getPersistInfo, getType, readVersion, setPersistInfo
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface wt.fc.Persistable
checkAttributes, getIdentity, getPersistInfo, getType, setPersistInfo
 
Methods inherited from interface wt.fc.NetFactor
getClassInfo
 
Methods inherited from interface wt.notify.Notifiable
getEventSet, setEventSet
 
Methods inherited from interface wt.inf.container.WTContained
getContainer, getContainerName, getContainerReference, setContainer, setContainerReference
 
Methods inherited from interface wt.ownership.Ownable
getOwnership, setOwnership
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

MANAGER_REF

public static final String MANAGER_REF
Label for the attribute; Reference to a group or a user that acts as project managers. If the project plan is associated with a Project2 object this attribute is ignored, otherwise it is initialized as the user that created the project plan.

Supported API: false

See Also:
WTPrincipalReference, Project2, Constant Field Values

managerRef

private WTPrincipalReference managerRef

PHASE

public static final String PHASE
Label for the attribute; Description of project's stage in its execution. If the project plan is associated with a Project2 object this attribute is ignored, otherwise it can be set and retrieved using the attribute's accessors.

Supported API: true

See Also:
ProjectPhase, Project2, Constant Field Values

PHASE_UPPER_LIMIT

private static int PHASE_UPPER_LIMIT

phase

private ProjectPhase phase

SCOPE

public static final String SCOPE
Label for the attribute; Description of project's scope. If the project plan is associated with a Project2 object this attribute is ignored, otherwise it can be set and retrieved using the attribute's accessors.

Supported API: true

See Also:
Project2, Constant Field Values

SCOPE_UPPER_LIMIT

private static int SCOPE_UPPER_LIMIT

scope

private String scope

PROJECT

public static final String PROJECT
Label for the attribute.

Supported API: false

See Also:
Constant Field Values

PROJECT_REFERENCE

public static final String PROJECT_REFERENCE
Label for the attribute.

Supported API: false

See Also:
Constant Field Values

projectReference

private ObjectReference projectReference

afterDeadline

private TimeToElapse afterDeadline

beforeDeadline

private TimeToElapse beforeDeadline

configuration

private ExecutionConfiguration configuration

currentWorkCost

private Currency currentWorkCost

enabled

private boolean enabled

estimatedFinishDate

private Timestamp estimatedFinishDate

HEALTH_STATUS_UPPER_LIMIT

private static int HEALTH_STATUS_UPPER_LIMIT

healthStatus

private ProjectHealthStatus healthStatus

inheritedDeadline

private Timestamp inheritedDeadline

percentComplete

private int percentComplete

performedWork

private Work performedWork

PROJECT_CATEGORY_UPPER_LIMIT

private static int PROJECT_CATEGORY_UPPER_LIMIT

projectCategory

private ProjectCategory projectCategory

RISK_DESCRIPTION_UPPER_LIMIT

private static int RISK_DESCRIPTION_UPPER_LIMIT

riskDescription

private String riskDescription

RISK_VALUE_UPPER_LIMIT

private static int RISK_VALUE_UPPER_LIMIT

riskValue

private ProjectRiskValue riskValue

STATUS_DESCRIPTION_UPPER_LIMIT

private static int STATUS_DESCRIPTION_UPPER_LIMIT

statusDescription

private String statusDescription

totalWork

private Work totalWork

totalWorkCost

private Currency totalWorkCost

indexerSet

private IndexerSet indexerSet

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

EXTERNALIZATION_VERSION_UID

public static final long EXTERNALIZATION_VERSION_UID
See Also:
Constant Field Values

OLD_FORMAT_VERSION_UID

protected static final long OLD_FORMAT_VERSION_UID
See Also:
Constant Field Values

USE_QUEUE

private static final boolean USE_QUEUE

VERBOSE

private static final boolean VERBOSE

DELETE_QUEUE_WHEN_CLOSING

private static final boolean DELETE_QUEUE_WHEN_CLOSING

estimatedFinish

protected Timestamp estimatedFinish

predecessors

protected QueryResult predecessors

successors

protected QueryResult successors

duration

protected TimeToElapse duration

containedNodes

protected QueryResult containedNodes

totalCost

protected Double totalCost

currentCost

protected Double currentCost
Constructor Detail

ProjectPlan

public ProjectPlan()
Method Detail

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Writes the non-transient fields of this class to an external source.

Supported API: false

Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class WfProcess
Parameters:
output -
Throws:
IOException

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class WfProcess
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(ProjectPlan thisObject,
                              ObjectInput input,
                              long readSerialVersionUID,
                              boolean passThrough,
                              boolean superDone)
                       throws IOException,
                              ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Parameters:
thisObject -
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

readOldVersion

private boolean readOldVersion(ObjectInput input,
                               long readSerialVersionUID,
                               boolean passThrough,
                               boolean superDone)
                        throws IOException,
                               ClassNotFoundException
Reads the non-transient fields of this class from an external source, which is not the current version.

Parameters:
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(PersistentStoreIfc output)
                   throws SQLException,
                          DatastoreException
Used by Persistent Data Service to obtain the values of the persistent attributes of this class, so they can be written to a persistent store.

(Not intended for general use.)

Supported API: false

Specified by:
writeExternal in interface ObjectMappable
Overrides:
writeExternal in class WfProcess
Parameters:
output -
Throws:
SQLException
DatastoreException

readExternal

public void readExternal(PersistentRetrieveIfc input)
                  throws SQLException,
                         DatastoreException
Used by Persistent Data Service to populate the persistent attributes of this class from a persistent store.

(Not intended for general use.)

Supported API: false

Specified by:
readExternal in interface ObjectMappable
Overrides:
readExternal in class WfProcess
Parameters:
input -
Throws:
SQLException
DatastoreException

getConceptualClassname

public String getConceptualClassname()
Deprecated.  

Returns the conceptual (modeled) name for the class.

Supported API: false

Specified by:
getConceptualClassname in interface NetFactor
Overrides:
getConceptualClassname in class WfProcess
Returns:
String

getManagerRef

public WTPrincipalReference getManagerRef()
Gets the value of the attribute: MANAGER_REF. Reference to a group or a user that acts as project managers. If the project plan is associated with a Project2 object this attribute is ignored, otherwise it is initialized as the user that created the project plan.

Supported API: false

Returns:
WTPrincipalReference
See Also:
WTPrincipalReference, Project2

setManagerRef

public void setManagerRef(WTPrincipalReference a_ManagerRef)
                   throws WTPropertyVetoException
Sets the value of the attribute: MANAGER_REF. Reference to a group or a user that acts as project managers. If the project plan is associated with a Project2 object this attribute is ignored, otherwise it is initialized as the user that created the project plan.

Supported API: false

Parameters:
a_ManagerRef -
Throws:
WTPropertyVetoException
See Also:
WTPrincipalReference, Project2

managerRefValidate

private void managerRefValidate(WTPrincipalReference a_ManagerRef)
                         throws WTPropertyVetoException
Parameters:
a_ManagerRef -
Throws:
WTPropertyVetoException

getPhase

public ProjectPhase getPhase()
Gets the value of the attribute: PHASE. Description of project's stage in its execution. If the project plan is associated with a Project2 object this attribute is ignored, otherwise it can be set and retrieved using the attribute's accessors.

Supported API: true

Returns:
ProjectPhase
See Also:
ProjectPhase, Project2

setPhase

public void setPhase(ProjectPhase a_Phase)
              throws WTPropertyVetoException
Sets the value of the attribute: PHASE. Description of project's stage in its execution. If the project plan is associated with a Project2 object this attribute is ignored, otherwise it can be set and retrieved using the attribute's accessors.

Supported API: true

Parameters:
a_Phase -
Throws:
WTPropertyVetoException
See Also:
ProjectPhase, Project2

getScope

public String getScope()
Gets the value of the attribute: SCOPE. Description of project's scope. If the project plan is associated with a Project2 object this attribute is ignored, otherwise it can be set and retrieved using the attribute's accessors.

Supported API: true

Returns:
String
See Also:
Project2

setScope

public void setScope(String a_Scope)
              throws WTPropertyVetoException
Sets the value of the attribute: SCOPE. Description of project's scope. If the project plan is associated with a Project2 object this attribute is ignored, otherwise it can be set and retrieved using the attribute's accessors.

Supported API: true

Parameters:
a_Scope -
Throws:
WTPropertyVetoException
See Also:
Project2

scopeValidate

private void scopeValidate(String a_Scope)
                    throws WTPropertyVetoException
Parameters:
a_Scope -
Throws:
WTPropertyVetoException

getProject

public Project2 getProject()
Gets the object for the association that plays role: PROJECT.

Supported API: false

Returns:
Project2

setProject

public void setProject(Project2 a_Project)
                throws WTPropertyVetoException,
                       WTException
Sets the object for the association that plays role: PROJECT.

Supported API: false

Parameters:
a_Project -
Throws:
WTPropertyVetoException
WTException

getProjectReference

public ObjectReference getProjectReference()
Gets the value of the attribute: PROJECT_REFERENCE.

Supported API: false

Returns:
ObjectReference

setProjectReference

public void setProjectReference(ObjectReference a_ProjectReference)
                         throws WTPropertyVetoException
Sets the value of the attribute: PROJECT_REFERENCE.

Supported API: false

Parameters:
a_ProjectReference -
Throws:
WTPropertyVetoException

projectReferenceValidate

private void projectReferenceValidate(ObjectReference a_ProjectReference)
                               throws WTPropertyVetoException
Parameters:
a_ProjectReference -
Throws:
WTPropertyVetoException

changeState

public WfExecutionObject changeState(WfTransition transition)
                              throws WTException
Change the workflow state of the project plan given a transition as argument.

Supported API: false

Overrides:
changeState in class WfProcess
Parameters:
transition -
Returns:
WfExecutionObject
Throws:
WTException

changeState

public WfExecutionObject changeState(WfTransition transition,
                                     boolean immediate)
                              throws WTException
Change the workflow state of the object given a transition as argument. Propagation of the state change is done immediately (no queuing) if the argument 'immediate' is true. Normal queuing happens otherwise.

Supported API: false

Overrides:
changeState in class WfProcess
Parameters:
transition -
immediate -
Returns:
WfExecutionObject
Throws:
WTException

createTemplateObject

public WfTemplateObject createTemplateObject()
                                      throws WTException
Returns template object of type ProjectPlanTemplate derived from the project plan.

Supported API: false

Returns:
WfTemplateObject
Throws:
WTException

getContext

public ProcessData getContext()


Supported API: false

Overrides:
getContext in class WfExecutionObject
Returns:
ProcessData

getManagers

public Enumeration getManagers()
                        throws WTException
Returns an enumeration of users that act as managers of the project plan. If the project plan is associated with a Project2 object, this set of users is retrieved from the Project2 object, otherwise, the locally held users in the managerRef attribute is used.

Supported API: false

Returns:
Enumeration
Throws:
WTException
See Also:
Project2

newProjectPlan

public static ProjectPlan newProjectPlan(Project2 project)
                                  throws WTException
ProjectPlan constructor. Takes a Project2 object as argument to which it eill be associated. To create a stand-alone use constructor that accepts WTContainerRef as argument.

Supported API: false

Parameters:
project -
Returns:
ProjectPlan
Throws:
WTException
See Also:
Project2

initialize

protected void initialize(Project2 project)
                   throws WTException
Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.

Supported API: false

Parameters:
project -
Throws:
WTException

newProjectPlan

public static ProjectPlan newProjectPlan(WTContainerRef context_ref)
                                  throws WTException
ProjectPlan constructor to be used for stand-alone plans. Takes the container where it is to reside as argument.

Supported API: false

Parameters:
context_ref -
Returns:
ProjectPlan
Throws:
WTException
See Also:
WTContainerRef

initialize

protected void initialize(WTContainerRef context_ref)
                   throws WTException
Supports initialization, following construction of an instance. Invoked by "new" factory having the same signature.

Supported API: false

Overrides:
initialize in class WfProcess
Parameters:
context_ref -
Throws:
WTException

toString

public String toString()
Returns a string representtaion of the project plan. In the case, the project's plan name is returnsed.

Supported API: false

Overrides:
toString in class WfProcess
Returns:
String

getAfterDeadline

public TimeToElapse getAfterDeadline()
Gets the value of the attribute: AFTER_DEADLINE. Time past execution object deadline at which point some action may be taken. Typical action is to send notification to responsible parties if object has been completed successfully.

Supported API: false

Specified by:
getAfterDeadline in interface ExecutionObject
Returns:
TimeToElapse

setAfterDeadline

public void setAfterDeadline(TimeToElapse a_AfterDeadline)
Sets the value of the attribute: AFTER_DEADLINE. Time past execution object deadline at which point some action may be taken. Typical action is to send notification to responsible parties if object has been completed successfully.

Supported API: false

Specified by:
setAfterDeadline in interface ExecutionObject
Parameters:
a_AfterDeadline -

getBeforeDeadline

public TimeToElapse getBeforeDeadline()
Gets the value of the attribute: BEFORE_DEADLINE. Time before execution object deadline at which point some action may be taken. Typical action is to send notification to responsible parties alerting them of the approaching deadline, if object hasn't yet been completed successfully.

Supported API: false

Specified by:
getBeforeDeadline in interface ExecutionObject
Returns:
TimeToElapse

setBeforeDeadline

public void setBeforeDeadline(TimeToElapse a_BeforeDeadline)
Sets the value of the attribute: BEFORE_DEADLINE. Time before execution object deadline at which point some action may be taken. Typical action is to send notification to responsible parties alerting them of the approaching deadline, if object hasn't yet been completed successfully.

Supported API: false

Specified by:
setBeforeDeadline in interface ExecutionObject
Parameters:
a_BeforeDeadline -

getConfiguration

public ExecutionConfiguration getConfiguration()
Gets the value of the attribute: CONFIGURATION. Project management execution parameters. Conceptually it is a list of boolean flags that indicated the presence or absence of a certain property. For example, whether or not a certain event should be stored in the database. It is implemented as a unsigned long, which effectively limits the number of possible flags to 64.

Supported API: false

Specified by:
getConfiguration in interface ExecutionObject
Returns:
ExecutionConfiguration

setConfiguration

public void setConfiguration(ExecutionConfiguration a_Configuration)
Sets the value of the attribute: CONFIGURATION. Project management execution parameters. Conceptually it is a list of boolean flags that indicated the presence or absence of a certain property. For example, whether or not a certain event should be stored in the database. It is implemented as a unsigned long, which effectively limits the number of possible flags to 64.

Supported API: false

Specified by:
setConfiguration in interface ExecutionObject
Parameters:
a_Configuration -

getCurrentWorkCost

public Currency getCurrentWorkCost()
Gets the value of the attribute: CURRENT_WORK_COST.

Supported API: true

Specified by:
getCurrentWorkCost in interface ExecutionObject
Returns:
Currency

setCurrentWorkCost

public void setCurrentWorkCost(Currency a_CurrentWorkCost)
Sets the value of the attribute: CURRENT_WORK_COST.

Supported API: true

Specified by:
setCurrentWorkCost in interface ExecutionObject
Parameters:
a_CurrentWorkCost -

isEnabled

public boolean isEnabled()
Gets the value of the attribute: ENABLED. Determines whether the object is still relevant. One might want to keep irrelevant objects around if there are events associated with the object, for example.

Supported API: false

Specified by:
isEnabled in interface ExecutionObject
Returns:
boolean

setEnabled

public void setEnabled(boolean a_Enabled)
Sets the value of the attribute: ENABLED. Determines whether the object is still relevant. One might want to keep irrelevant objects around if there are events associated with the object, for example.

Supported API: false

Specified by:
setEnabled in interface ExecutionObject
Parameters:
a_Enabled -

getEstimatedFinishDate

public Timestamp getEstimatedFinishDate()
Gets the value of the attribute: ESTIMATED_FINISH_DATE. For milestones, estimate of the time milestone would be met; for project plans and activities, estimated finish date; for deliverables, estimated date it would be satisfied.

Supported API: true

Specified by:
getEstimatedFinishDate in interface ExecutionObject
Returns:
Timestamp

setEstimatedFinishDate

public void setEstimatedFinishDate(Timestamp a_EstimatedFinishDate)
Sets the value of the attribute: ESTIMATED_FINISH_DATE. For milestones, estimate of the time milestone would be met; for project plans and activities, estimated finish date; for deliverables, estimated date it would be satisfied.

Supported API: true

Specified by:
setEstimatedFinishDate in interface ExecutionObject
Parameters:
a_EstimatedFinishDate -

getHealthStatus

public ProjectHealthStatus getHealthStatus()
Gets the value of the attribute: HEALTH_STATUS. Measure of confidence of completing successfully the task or work represented by the execution object. Possible values are GREEN, RED, YELLOW and UNAVAILABLE.

Supported API: true

Specified by:
getHealthStatus in interface ExecutionObject
Returns:
ProjectHealthStatus
See Also:
ProjectHealthStatus

setHealthStatus

public void setHealthStatus(ProjectHealthStatus a_HealthStatus)
Sets the value of the attribute: HEALTH_STATUS. Measure of confidence of completing successfully the task or work represented by the execution object. Possible values are GREEN, RED, YELLOW and UNAVAILABLE.

Supported API: true

Specified by:
setHealthStatus in interface ExecutionObject
Parameters:
a_HealthStatus -
See Also:
ProjectHealthStatus

getInheritedDeadline

public Timestamp getInheritedDeadline()
Gets the value of the attribute: INHERITED_DEADLINE. Earliest date by which a containing object must be met/completed/delivered. In principle, the object's deadline can't be after the inherited deadline.

Supported API: true

Specified by:
getInheritedDeadline in interface ExecutionObject
Returns:
Timestamp

setInheritedDeadline

public void setInheritedDeadline(Timestamp a_InheritedDeadline)
Sets the value of the attribute: INHERITED_DEADLINE. Earliest date by which a containing object must be met/completed/delivered. In principle, the object's deadline can't be after the inherited deadline.

Supported API: true

Specified by:
setInheritedDeadline in interface ExecutionObject
Parameters:
a_InheritedDeadline -

getPercentComplete

public int getPercentComplete()
Gets the value of the attribute: PERCENT_COMPLETE. Quantitative assessment of how close object is from being met/completed/delivered. Values range from 0 and 100 if value has been set; otherwise it is -1.

Supported API: true

Specified by:
getPercentComplete in interface ExecutionObject
Returns:
int

setPercentComplete

public void setPercentComplete(int a_PercentComplete)
Sets the value of the attribute: PERCENT_COMPLETE. Quantitative assessment of how close object is from being met/completed/delivered. Values range from 0 and 100 if value has been set; otherwise it is -1.

Supported API: true

Specified by:
setPercentComplete in interface ExecutionObject
Parameters:
a_PercentComplete -

getPerformedWork

public Work getPerformedWork()
Gets the value of the attribute: PERFORMED_WORK. Work performed in a given project management object. Related to totalWork and percentComplete by the formulas:
 performedWork <= totalWork
 percentComplete = (performedWork / totalWork) * 100
 


Supported API: true

Specified by:
getPerformedWork in interface ExecutionObject
Returns:
Work

setPerformedWork

public void setPerformedWork(Work a_PerformedWork)
Sets the value of the attribute: PERFORMED_WORK. Work performed in a given project management object. Related to totalWork and percentComplete by the formulas:
 performedWork <= totalWork
 percentComplete = (performedWork / totalWork) * 100
 


Supported API: true

Specified by:
setPerformedWork in interface ExecutionObject
Parameters:
a_PerformedWork -

getProjectCategory

public ProjectCategory getProjectCategory()
Gets the value of the attribute: PROJECT_CATEGORY. Classification attribute for project management objects. The intent is to help identification and retrieval.

Supported API: true

Specified by:
getProjectCategory in interface ExecutionObject
Returns:
ProjectCategory

setProjectCategory

public void setProjectCategory(ProjectCategory a_ProjectCategory)
Sets the value of the attribute: PROJECT_CATEGORY. Classification attribute for project management objects. The intent is to help identification and retrieval.

Supported API: true

Specified by:
setProjectCategory in interface ExecutionObject
Parameters:
a_ProjectCategory -

getRiskDescription

public String getRiskDescription()
Gets the value of the attribute: RISK_DESCRIPTION. Longer textual qualitative assessment of risks of meeting/completing/delivering the object within the time and available resources.

Supported API: true

Specified by:
getRiskDescription in interface ExecutionObject
Returns:
String

setRiskDescription

public void setRiskDescription(String a_RiskDescription)
Sets the value of the attribute: RISK_DESCRIPTION. Longer textual qualitative assessment of risks of meeting/completing/delivering the object within the time and available resources.

Supported API: true

Specified by:
setRiskDescription in interface ExecutionObject
Parameters:
a_RiskDescription -

getRiskValue

public ProjectRiskValue getRiskValue()
Gets the value of the attribute: RISK_VALUE. Short qualitative assessment of risks of meeting/completing/delivering the object within the time and available resources.

Supported API: true

Specified by:
getRiskValue in interface ExecutionObject
Returns:
ProjectRiskValue
See Also:
ProjectRiskValue

setRiskValue

public void setRiskValue(ProjectRiskValue a_RiskValue)
Sets the value of the attribute: RISK_VALUE. Short qualitative assessment of risks of meeting/completing/delivering the object within the time and available resources.

Supported API: true

Specified by:
setRiskValue in interface ExecutionObject
Parameters:
a_RiskValue -
See Also:
ProjectRiskValue

getStatusDescription

public String getStatusDescription()
Gets the value of the attribute: STATUS_DESCRIPTION. Textual descriptionof confidence of completing successfully the task or work represented by the execution object.

Supported API: true

Specified by:
getStatusDescription in interface ExecutionObject
Returns:
String

setStatusDescription

public void setStatusDescription(String a_StatusDescription)
Sets the value of the attribute: STATUS_DESCRIPTION. Textual descriptionof confidence of completing successfully the task or work represented by the execution object.

Supported API: true

Specified by:
setStatusDescription in interface ExecutionObject
Parameters:
a_StatusDescription -

getTotalWork

public Work getTotalWork()
Gets the value of the attribute: TOTAL_WORK. Total work associated with a given project management object. Related to performedWork and percentComplete by the formulas:
 performedWork <= totalWork
 percentComplete = (performedWork / totalWork) * 100
 


Supported API: true

Specified by:
getTotalWork in interface ExecutionObject
Returns:
Work

setTotalWork

public void setTotalWork(Work a_TotalWork)
Sets the value of the attribute: TOTAL_WORK. Total work associated with a given project management object. Related to performedWork and percentComplete by the formulas:
 performedWork <= totalWork
 percentComplete = (performedWork / totalWork) * 100
 


Supported API: true

Specified by:
setTotalWork in interface ExecutionObject
Parameters:
a_TotalWork -

getTotalWorkCost

public Currency getTotalWorkCost()
Gets the value of the attribute: TOTAL_WORK_COST.

Supported API: true

Specified by:
getTotalWorkCost in interface ExecutionObject
Returns:
Currency

setTotalWorkCost

public void setTotalWorkCost(Currency a_TotalWorkCost)
Sets the value of the attribute: TOTAL_WORK_COST.

Supported API: true

Specified by:
setTotalWorkCost in interface ExecutionObject
Parameters:
a_TotalWorkCost -

changeState

public ExecutionObject changeState(ProjectState new_state)
                            throws WTException
Changes the state of the execution object to the workflow state that corresponds to the project state passed as argument.

Supported API: false

Specified by:
changeState in interface ExecutionObject
Parameters:
new_state -
Returns:
ExecutionObject
Throws:
WTException

getContainedNodes

public QueryResult getContainedNodes()
Returns object's ContainedNodes (calculated cached value)

Supported API: false

Specified by:
getContainedNodes in interface ExecutionObject
Returns:
QueryResult

getCurrentCost

public Double getCurrentCost()
Returns object's current cost. (calculated cached value)

Supported API: false

Specified by:
getCurrentCost in interface ExecutionObject
Returns:
Double

getDeadline

public Timestamp getDeadline()
Returns object's deadline.

Supported API: false

Specified by:
getDeadline in interface ExecutionObject
Overrides:
getDeadline in class WfExecutionObject
Returns:
Timestamp

getDescription

public String getDescription()
Returns object description.

Supported API: false

Specified by:
getDescription in interface ExecutionObject
Overrides:
getDescription in class WfExecutionObject
Returns:
String

getDuration

public TimeToElapse getDuration()
                         throws WTException
Returns object's Duration. (calculated cached value)

Supported API: false

Specified by:
getDuration in interface ExecutionObject
Returns:
TimeToElapse
Throws:
WTException

getEndTime

public Timestamp getEndTime()
Returns time execution of object finished. Returns 'null' if execution hasn't finished yet.

Supported API: false

Specified by:
getEndTime in interface ExecutionObject
Overrides:
getEndTime in class WfExecutionObject
Returns:
Timestamp

getEstimatedFinish

public Timestamp getEstimatedFinish()
Returns object's estimated finish. (calculated cached value)

Supported API: false

Specified by:
getEstimatedFinish in interface ExecutionObject
Returns:
Timestamp

getExecutionState

public ProjectState getExecutionState()
Returns project execution state that corresponds to internal object's workflow state.

Supported API: false

Specified by:
getExecutionState in interface ExecutionObject
Returns:
ProjectState

getFinishDate

public Timestamp getFinishDate(TimeToElapse days)
                        throws WTException
Returns estimated finish date for the object given the duration given in TimeToElapse. Takes into account the calendar and the start time. Returns null if object hasn't started yet.

Supported API: false

Specified by:
getFinishDate in interface ExecutionObject
Parameters:
days -
Returns:
Timestamp
Throws:
WTException

getName

public String getName()
Returns name of the object.

Supported API: false

Specified by:
getName in interface ExecutionObject
Overrides:
getName in class WfExecutionObject
Returns:
String

getPlan

public ProjectPlan getPlan()
                    throws WTException
Retuns the project plan to which the execuiton object belongs.

Supported API: false

Specified by:
getPlan in interface ExecutionObject
Returns:
ProjectPlan
Throws:
WTException

getPredecessors

public QueryResult getPredecessors()
Returns object's Predecessors (calculated cached value)

Supported API: false

Specified by:
getPredecessors in interface ExecutionObject
Returns:
QueryResult

getStartTime

public Timestamp getStartTime()
Returns time execution of object started. Returns 'null' if execution hasn't started yet.

Supported API: false

Specified by:
getStartTime in interface ExecutionObject
Overrides:
getStartTime in class WfExecutionObject
Returns:
Timestamp

getSuccessors

public QueryResult getSuccessors()
Returns object's successors. (calculated cached value)

Supported API: false

Specified by:
getSuccessors in interface ExecutionObject
Returns:
QueryResult

getTemplateObject

public WfTemplateObject getTemplateObject()
                                   throws WTException
Returns template to which the execution object is associated.

Supported API: false

Specified by:
getTemplateObject in interface ExecutionObject
Returns:
WfTemplateObject
Throws:
WTException

getTotalCost

public Double getTotalCost()
Returns object's total cost. (calculated cached value)

Supported API: false

Specified by:
getTotalCost in interface ExecutionObject
Returns:
Double

setContainedNodes

public void setContainedNodes(QueryResult a_result)
sets object's ContainedNodes (calculated cached value)

Supported API: false

Specified by:
setContainedNodes in interface ExecutionObject
Parameters:
a_result -

setCurrentCost

public void setCurrentCost(Double cost)
set object's current cost. (calculated cached value)

Supported API: false

Specified by:
setCurrentCost in interface ExecutionObject
Parameters:
cost -

setDeadline

public void setDeadline(Timestamp time)
Sets object's deadline.

Supported API: false

Specified by:
setDeadline in interface ExecutionObject
Overrides:
setDeadline in class WfExecutionObject
Parameters:
time -

setDescription

public void setDescription(String desc)
Sets object description.

Supported API: false

Specified by:
setDescription in interface ExecutionObject
Overrides:
setDescription in class WfExecutionObject
Parameters:
desc -

setDuration

public void setDuration(TimeToElapse a_time)
set object's Duration. (calculated cached value)

Supported API: false

Specified by:
setDuration in interface ExecutionObject
Parameters:
a_time -

setEndTime

public void setEndTime(Timestamp time)
Sets the time the execution of object finished.

Supported API: false

Specified by:
setEndTime in interface ExecutionObject
Overrides:
setEndTime in class WfExecutionObject
Parameters:
time -

setEstimatedFinish

public void setEstimatedFinish(Timestamp a_time)
set object's estimated finish. (calculated cached value)

Supported API: false

Specified by:
setEstimatedFinish in interface ExecutionObject
Parameters:
a_time -

setExecutionState

public void setExecutionState(ProjectState state)
Setsinternal object's workflow state that corresponds to project execution state passed as argument.

Supported API: false

Specified by:
setExecutionState in interface ExecutionObject
Parameters:
state -

setName

public void setName(String name)
Sets name of the object.

Supported API: false

Specified by:
setName in interface ExecutionObject
Overrides:
setName in class WfExecutionObject
Parameters:
name -

setPredecessors

public void setPredecessors(QueryResult a_result)
sets object's Predecessors (calculated cached value)

Supported API: false

Specified by:
setPredecessors in interface ExecutionObject
Parameters:
a_result -

setStartTime

public void setStartTime(Timestamp time)
Sets the s time execution of object started.

Supported API: false

Specified by:
setStartTime in interface ExecutionObject
Overrides:
setStartTime in class WfExecutionObject
Parameters:
time -

setSuccessors

public void setSuccessors(QueryResult a_result)
sets object's successors. (calculated cached value)

Supported API: false

Specified by:
setSuccessors in interface ExecutionObject
Parameters:
a_result -

setTotalCost

public void setTotalCost(Double cost)
set object's total cost. (calculated cached value)

Supported API: false

Specified by:
setTotalCost in interface ExecutionObject
Parameters:
cost -

updateDeadline

public void updateDeadline(Timestamp start)


Supported API: false

Specified by:
updateDeadline in interface ExecutionObject
Parameters:
start -

getIndexerSet

public IndexerSet getIndexerSet()
Gets the value of the attribute: INDEXER_SET.

Supported API: false

Specified by:
getIndexerSet in interface Indexable
Returns:
IndexerSet

setIndexerSet

public void setIndexerSet(IndexerSet a_IndexerSet)
Sets the value of the attribute: INDEXER_SET.

Supported API: false

Specified by:
setIndexerSet in interface Indexable
Parameters:
a_IndexerSet -

equals

public boolean equals(Object obj)
Indicates whether the given object is equal to this object from a persistence perspective, by comparing the two objects ObjectIdentifiers. Changed or stale copies are still considered equal by this method. Delegates to PersistenceHelper.equals(Persistable,Object).

Warning: Certain core Windchill operations may depend upon equals being ObjectIdentifier-based. Changes to the default implementation should be done with care, if at all.

Supported API: false

Overrides:
equals in class WfProcess
Parameters:
obj -
Returns:
boolean

hashCode

public int hashCode()
Returns a hash code for this object based upon its ObjectIdentifier. Delegates to PersistenceHelper.hashCode(Persistable).

Warning: Certain core Windchill operations may depend upon hashCode being ObjectIdentifier-based. Changes to the default implementation should be done with care, if at all.

Supported API: false

Overrides:
hashCode in class WfProcess
Returns:
int

resumeContainedActivities

protected void resumeContainedActivities()
                                  throws WTException
Overrides WfContainer.resumeContainedActivities() to add project management specific behavior.

Overrides:
resumeContainedActivities in class WfContainer
Throws:
WTException

shouldStart

private boolean shouldStart(ProjectNode node)
                     throws WTException
Returns whether a defined node in a suspended plan should start when the plan is restarted. The node should start if all the predecessors are in the COMPLETED state.

Throws:
WTException

changeProcessFolder

protected WfProcess changeProcessFolder(WfProcess process,
                                        WfTransition transition)
                                 throws WTException
Does nothing: overrides WfProcess.changeProcessFolder. This means that project plans don't change folders when they change state.

Throws:
WTException

getInitialFolder

protected Folder getInitialFolder()
                           throws WTException
Returns initial process folder. Overrides WfProcess.getInitialFolder().

Throws:
WTException

getPrincipalsForRole

protected Vector getPrincipalsForRole(Role role)
                               throws WTException
Returns principal given a role. Overrides WfProcess.getPrincipalsForRole().

Overrides:
getPrincipalsForRole in class WfProcess
Throws:
WTException

suspendCancelledNodes

private void suspendCancelledNodes(ProjectPlan plan)
                            throws WTException
Throws:
WTException

setInitialAttributes

private void setInitialAttributes(ObjectReference project_ref)
                           throws WTException
For stand-alone plans, project_ref is null.

Throws:
WTException

getContainerRef

private WTContainerRef getContainerRef(ObjectReference obj_ref)

getOid

private ObjectIdentifier getOid(Object obj)