com.ibm.rpm.timesheet.containers
TimesheetApprovalStatus

com.ibm.rpm.framework.RPMObject
  extended bycom.ibm.rpm.timesheet.containers.TimesheetApprovalStatus

TimesheetApprovalStatus
Extends: com.ibm.rpm.framework.RPMObject
Child objects: None

Related scope: com.ibm.rpm.timesheet.scope.TimesheetApprovalStatusScope

Used for timesheet approval/rejection status. The resource can submit their timesheet for an approval by setting the approvalStatus to TimesheetStatus.Submitted. Later the manager can either approve the timesheet by setting the approvalStatus to TimesheetStatus.Approved, or reject the timesheet by setting the approvalStatus to TimesheetStatus.Rejected.

Before creating a TimesheetApprovalStatus object, there must exist a SummaryTimesheet for the same resource, project, and weekOf. TimesheetApprovalStatus object will be deleted when its corresponding SummaryTimesheet object is deleted.

Delete restrictions: This object can't be deleted.

Supported API Calls: Primary key: The following fields are required when using the loadFromID and loadArrayFromID methods:

The following fields are required when using the loadFromId and loadArrayFromID methods :

Related code samples :

Java

C#

Field Summary
xsd:dateTime approvalDate
   

The date of the last action (submission, approval, or rejection).

xsd:string approvalNotes
    A note to accompany the last action.
TimesheetStatus approvalStatus
   The status of the timesheet approval request.
Resource lastApprovedRejectedBy
   

The last resource who took an action (submitted, approved, or rejected).

RPMObject project
   The project of the timesheet. This project is always of type (or a descendant of) GenericProject or GenericTimesheetElement.
Resource resource
   The resource of the timesheet.
xsd:dateTime weekOf
   The week of the timesheet.

Inherited Field Summary
xsd:string contextName
   The context name identifies which section of the Web Services API the object belongs to. This value of this field is generated automatically when creating the RPMObject.
xsd:boolean deleted
   If the value of this field is set to true, then the RPMObject will be deleted when performing a save.
xsd:string ID
   The unique ID of the RPMObject. If the value of this field is set to null, the save operation will generate the ID automatically when creating the RPMObject. If an ID is specified, then the save operation will attempt to update an existing RPMObject.
RPMObject parent
   The parent of the RPMObject.

Field Detail

approvalDate


xsd:dateTime  approvalDate

The date of the last action (submission, approval, or rejection).

Read-only behavior: The value of this field is read only.

Validation: The year, month and day values will be used by this field.


approvalNotes


xsd:string  approvalNotes
A note to accompany the last action.

Maximum: The maximum length for this field is 1024 characters.


approvalStatus


TimesheetStatus approvalStatus
The status of the timesheet approval request.

Relationship: This field is a reference relationship.


lastApprovedRejectedBy


Resource lastApprovedRejectedBy

The last resource who took an action (submitted, approved, or rejected).

Scoping: This field will be used by the API if the scope field lastApprovedRejectedBy is enabled.

Read-only behavior: The value of this field is read only.

Relationship: This field is a reference relationship.


project


RPMObject project
The project of the timesheet. This project is always of type (or a descendant of) GenericProject or GenericTimesheetElement.

Scoping: This field will be used by the API if the scope field project is enabled.

Read-only behavior: The value of this field is read only.

Relationship: This field is a reference relationship.


resource


Resource resource
The resource of the timesheet.

Null value: This field may never be null.

Scoping: This field will be used by the API if the scope field resource is enabled.

Relationship: This field is a reference relationship.


weekOf


xsd:dateTime  weekOf
The week of the timesheet.

Null value: This field may never be null.


Inherited Field Detail

contextName


xsd:string  contextName
The context name identifies which section of the Web Services API the object belongs to. This value of this field is generated automatically when creating the RPMObject.

Read-only behavior: The value of this field is read only.

X-Path availability: This field doesn't support X-Path queries.


deleted


xsd:boolean  deleted
If the value of this field is set to true, then the RPMObject will be deleted when performing a save.

Read-only behavior: The value of this field is read only.

X-Path availability: This field doesn't support X-Path queries.


ID


xsd:string  ID
The unique ID of the RPMObject. If the value of this field is set to null, the save operation will generate the ID automatically when creating the RPMObject. If an ID is specified, then the save operation will attempt to update an existing RPMObject.

Read-only behavior: The value of this field is read only.


parent


RPMObject parent
The parent of the RPMObject.

Null value: This field must have a value at creation time.

Scoping: This field will be used by the API if the scope field parent is enabled.

Scoping during creation: This field is always in scope at creation time.

Read-only behavior: The value of this field is read only.

Relationship: This field is a reference relationship.

X-Path availability: This field doesn't support X-Path queries.