Class ResourceAssignment
Resource assignments track the work of resources or roles that are performing various activities. A resource may be assigned to the same activity more than once, but performing in different roles.
Resource assignments may be loaded with live spreads using the loadWithLiveSpreads() methods. It is not necessary to have run the Summarizer job service in order to use live resource assignment spreads. After loading, call getResourceAssignmentSpread() to access the spread data. Resource assignment spreads support future bucket planning in their calculations. To edit future bucket planning data, set values using the ResourceAssignmentSpread value object, then call ResourceAssignment.setResourceAssignmentSpread().
This business object supports user defined fields (UDFs). Use the UDFValue business object to assign UDFs.
-
Constructor Summary
ConstructorsConstructorDescriptionResourceAssignment(Session session) Class constructor specifying the Session.ResourceAssignment(Session session, ObjectId objId) Class constructor specifying the Session and ObjectId of the object.ResourceAssignment(Session session, com.primavera.infr.db.PrmRowSet rowSet, int iIndex) Class constructor called internally after objects are retrieved from the server. -
Method Summary
Modifier and TypeMethodDescriptioncreate()Creates this ResourceAssignment object in the database.static ObjectId[]create(Session session, ResourceAssignment[] resourceassignments) Creates multiple ResourceAssignment objects in the database.voiddelete()Deletes this ResourceAssignment object from the database.static voiddelete(Session session, ResourceAssignment[] resourceassignments) Deletes multiple ResourceAssignment objects from the database.Gets the date on which the activity is actually finished.Gets the short ID that uniquely identifies the activity within the project.Gets the name of the activity.Gets the unique ID of the activity to which the resource is assigned.Gets the type of activity, either 'Task Dependent', 'Resource Dependent', 'Level of Effort', 'Start Milestone', 'Finish Milestone', or 'WBS Summary'.Gets the actual non-overtime plus overtime cost for the resource assignment on the activity.Gets internal profile data for actual values.Gets the actual duration for the resource assignment on the activity.Gets the date the resource actually finished working on the activity.Gets the actual overtime cost for the resource assignment on the activity.Gets the actual overtime units worked by the resource on this activity.Gets the actual non-overtime cost for the resource assignment on the activity.Gets the actual non-overtime units worked by the resource on this activity.Gets the date the resource actually started working on the activity.Gets the actual this period cost (will be labor or nonlabor).Gets the actual this period units (hours) (will be labor or nonlabor).Gets the actual non-overtime plus overtime units worked by the resource on this activity.static String[]Gets all fields for this business object.Gets the Assignment percent complete.Gets the sum of the actual plus remaining costs for the resource assignment on the activity.Gets the total working time from the activity's current start date to the current finish date.Gets the sum of the actual plus remaining units for the resource assignment on the activity.booleanGets the option that determines whether the activity's actual and remaining units, start date, finish date, and percent complete are computed automatically using the planned dates, planned units and the schedule percent complete.static String[]Gets all spread fields that can be specified in the spreadFields parameter of loadWithBaseSpread methods for this business object.Gets the total number of unread comments on this activity for a user.Gets the total number of unread comments on this activity for a user.Gets the name of the calendar.Gets the unique ID generated by the system for the calendar associated with the resource assignment.Gets cBS Code.getCBSId()Gets the unique Id of CBS.Gets the id of associated cost account.Gets the name of the associated cost account.Gets the unique ID of the cost account associated with this resource assignment.Gets the date this assignment was created.Gets the name of the user that created this assignment.static String[]Deprecated.booleanGets the flag indicating whether new resource/role assignments drive activity dates, by default.Gets the percent complete of the activity duration.Gets displays the projected duration required to complete an activity based on schedule performance to date.Gets displays the projected labor effort needed to complete the remaining scope of work, based on labor efficiency to date.Gets the estimated cost to complete the activity.Gets the estimated quantity to complete the activity.static String[]Gets all fields that can be filtered.Gets financial Period Template Id.Gets the finish date of the resource assignment on the activity.getGUID()Gets the globally unique ID generated by the system.booleanGets the flag that indicates whether the assignment has future bucket data.static String[]An internal method that should not be called directly by client code.An internal method that should not be called directly by client code.static String[]An internal method that should not be called directly by client code.booleanGets the flag that indicates whether this resource assignment is active.booleanGets the flag that indicates whether the resource who is assigned to the activity assignment has flagged the activity as important to the resource.booleanGets the boolean value indicating if this business object is related to a Project or Baseline.booleanGets the flag that determines whether or not cost should be calculated based on units.booleanGets the flag that indicates whether the resource is allowed to log overtime hours.booleanGets the flag that indicates whether this resource is the activity's primary resource.booleanGets the boolean value indicating if this business object is related to a template Project.Gets the date this assignment was last updated.Gets the name of the user that last updated this assignment.static String[]Gets all fields in the main group for this business object.static String[]Gets all fields that are always exported at a minimum by the new flat XML exporterGets the unique ID generated by the system.doubleGets the overtime factor used to compute the overtime price for the resource assignment on this activity.Gets the actual overtime units worked by the resource on this activity.Gets the actual nonovertime units worked by the resource on this activity.Gets the estimate of the percentage of the resource's units of work completed on this activity.Gets the estimate of the resource's remaining units on this activity.Gets the activity percent complete.Gets the activity percent complete type: 'Physical', 'Duration', or 'Units'.com.primavera.common.value.spread.PeriodPerformanceSpreadGets the live resource assignment period spread data.Gets the planned cost for the resource assignment on the activity.Gets internal profile data for planned values.Gets the planned working time for the resource assignment on the activity, from the resource's planned start date to the planned finish date.Gets the date the resource is scheduled to finish working on the activity.Gets the planned time lag between the activity's planned start date and the resource's planned start date on the activity.Gets the date the resource is scheduled to begin working on the activity.Gets the planned units of work for the resource assignment on the activity.Gets the planned units per time at which the resource is to perform work on this activity.Gets the price per time for the resource on this activity.Gets the difference between the pending quantity value and the actual quantity value for overtime before applying the new actual value.Gets the difference between the pending quantity value and the actual quantity value before applying the new actual value.Gets the skill level that is associated with the role.Gets indicates if this WBS node a Project/EPS node?.Gets the short code that uniquely identifies the project.Gets the name of the associated project.Gets the unique ID of the associated project.Gets indicates if this Project/EPS node a Project or EPS?.Gets the value that indicates which price/unit will be used to calculate costs for the assignment, such as 'Resource', 'Role', and 'Override'.Gets the rate type that determines which of the five prices specified for the resource will be used to calculate the cost for the resource assignment.Gets the remaining cost for the resource assignment on the activity.Gets internal profile data for remaining values.Gets the remaining duration of the resource assignment.Gets the date the resource is scheduled to finish the remaining work for the activity.Gets the time lag between the activity's remaining start date and the resource's remaining start date on the activity.Gets the remaining late finish date calculated by the scheduler.Gets the remaining late start date calculated by the scheduler.Gets the date the resource is scheduled to begin the remaining work for the activity.Gets the remaining units of work to be performed by this resource on this activity.Gets the units per time at which the resource will be performing work on the remaining portion of this activity.static String[]Gets all fields that must be set before calling create() on this business object.Gets the live resource assignment spread data.Gets the name of the calendar for the resource.Gets the name of the resource curve that determines how resources and costs are distributed over time for this activity.Gets the unique ID of the resource curve.Gets the short code that uniquely identifies the resource.Gets the name of the resource.Gets the unique ID of the associated resource.Gets the resource request used as a search template to search for a qualified resource.Gets the resource type: "Labor", "Nonlabor", or "Material".booleanGets the indicator that determines whether the activity status updates made in Team Member applications must be approved before commiting changes.Gets the short code that uniquely identifies the role.Gets the name of the role.Gets the unique ID of the role the resource is performing on this activity.Gets the shorthand name for the role.static String[]Gets all spread fields that can be specified in the spreadFields parameter of loadWithLiveSpread methods for this business object.Gets the time distribution of the resource's remaining cost for resource assignments that have filled a role.Gets the time distribution of the resource's remaining units for resource assignments that have filled a role.Gets the start date of the resource assignment on the activity.Gets the project status: 'Planned', 'Active', 'Inactive', 'What-If', 'Requested', or 'Template'.Gets the total stored period cost for each assignment.Gets the total stored period units for each assignment.Gets the percent complete of units for the resource assignment on the activity.intGets the total number of unread comments on this activity for a user.Gets the time distribution of the resource's remaining cost for resource assignments that have not filled a role.Gets the time distribution of the resource's remaining units for resource assignments that have not filled a role.Gets the WBS name hierarchy of the Activity.Gets the unique ID of the WBS for the activity.static String[]Gets all writable fields for this business object.static ResourceAssignmentLoads a single ResourceAssignment object from the database.static BOIterator<ResourceAssignment>Loads multiple ResourceAssignment objects from the database.loadActivity(String[] fields) Loads an associated Activity object from the database.loadCostAccount(String[] fields) Loads an associated CostAccount object from the database.loadProject(String[] fields) Loads an associated Project object from the database.loadResource(String[] fields) Loads an associated Resource object from the database.loadResourceAssignmentCodeAssignments(String[] fields, String sWhereClause, String sOrderBy) Loads multiple associated ResourceAssignmentCodeAssignment objects from the database.loadResourceAssignmentPeriodActuals(String[] fields, String sWhereClause, String sOrderBy) Loads multiple associated ResourceAssignmentPeriodActual objects from the database.loadResourceCurve(String[] fields) Loads an associated ResourceCurve object from the database.loadResourceHours(String[] fields, String sWhereClause, String sOrderBy) Loads multiple associated ResourceHour objects from the database.Loads an associated Role object from the database.loadUDFValues(String[] fields, String sWhereClause, String sOrderBy) Loads multiple associated UDFValue objects from the database.static BOIterator<ResourceAssignment>loadWithLiveSpread(Session session, String[] nonSpreadFields, ObjectId[] objIds, String[] spreadFields, SpreadPeriodType periodType, Date startDate, Date endDate, boolean bIncludeCumulative) Loads multiple ResourceAssignment objects with summarized spreads from the database.static ResourceAssignmentloadWithLiveSpread(Session session, String[] nonSpreadFields, ObjectId objId, String[] spreadFields, SpreadPeriodType periodType, Date startDate, Date endDate, boolean bIncludeCumulative) Loads a ResourceAssignment object with summarized spreads from the database.static BOIterator<ResourceAssignment>loadWithLiveSpreadActivityOrAssignment(Session session, String[] nonSpreadFields, ObjectId[] objIds, String[] spreadFields, SpreadPeriodType periodType, Date startDate, Date endDate, boolean bIncludeCumulative) Loads multiple ResourceAssignment objects with summarized spreads from the database.static BOIterator<ResourceAssignment>loadWithPeriodPerformanceSpread(Session session, String[] nonSpreadFields, ObjectId[] objIds, String[] spreadFields, SpreadPeriodType periodType, Date startDate, Date endDate, boolean bIncludeCumulative) Loads multiple ResourceAssignment objects with summarized spreads from the database.static ResourceAssignmentloadWithPeriodPerformanceSpread(Session session, String[] nonSpreadFields, ObjectId objId, String[] spreadFields, SpreadPeriodType periodType, Date startDate, Date endDate, boolean bIncludeCumulative) Loads a ResourceAssignment object with summarized spreads from the database.static BOIterator<ResourceAssignment>loadWithPeriodPerformanceSpreadActivityOrAssignment(Session session, String[] nonSpreadFields, ObjectId[] objIds, String[] spreadFields, SpreadPeriodType periodType, Date startDate, Date endDate, boolean bIncludeCumulative) Loads multiple ResourceAssignment objects with summarized spreads from the database.voidSets the unique ID of the activity to which the resource is assigned.voidSets the actual non-overtime plus overtime cost for the resource assignment on the activity.voidSets internal profile data for actual values.voidSets the date the resource actually finished working on the activity.voidSets the actual overtime cost for the resource assignment on the activity.voidSets the actual overtime units worked by the resource on this activity.voidSets the actual non-overtime cost for the resource assignment on the activity.voidSets the actual non-overtime units worked by the resource on this activity.voidSets the date the resource actually started working on the activity.voidSets the actual this period cost (will be labor or nonlabor).voidSets the actual this period units (hours) (will be labor or nonlabor).voidSets the actual non-overtime plus overtime units worked by the resource on this activity.voidSets the Assignment percent complete.voidSets the sum of the actual plus remaining costs for the resource assignment on the activity.voidSets the sum of the actual plus remaining units for the resource assignment on the activity.voidSets the total number of unread comments on this activity for a user.voidSets the total number of unread comments on this activity for a user.voidsetCBSCode(String s) Sets cBS Code.voidSets the unique Id of CBS.voidSets the unique ID of the cost account associated with this resource assignment.voidsetDrivingActivityDatesFlag(boolean b) Sets the flag indicating whether new resource/role assignments drive activity dates, by default.voidSets the percent complete of the activity duration.voidSets the finish date of the resource assignment on the activity.voidSets the globally unique ID generated by the system.voidsetIsActivityFlagged(boolean b) Sets the flag that indicates whether the resource who is assigned to the activity assignment has flagged the activity as important to the resource.voidsetIsCostUnitsLinked(boolean b) Sets the flag that determines whether or not cost should be calculated based on units.voidsetIsPrimaryResource(boolean b) Sets the flag that indicates whether this resource is the activity's primary resource.voidSets the unique ID generated by the system.voidsetOvertimeFactor(double d) Sets the overtime factor used to compute the overtime price for the resource assignment on this activity.voidSets the estimate of the percentage of the resource's units of work completed on this activity.voidSets the estimate of the resource's remaining units on this activity.voidSets the activity percent complete.voidSets the activity percent complete type: 'Physical', 'Duration', or 'Units'.voidSets the planned cost for the resource assignment on the activity.voidSets internal profile data for planned values.voidSets the planned working time for the resource assignment on the activity, from the resource's planned start date to the planned finish date.voidSets the date the resource is scheduled to finish working on the activity.voidSets the planned time lag between the activity's planned start date and the resource's planned start date on the activity.voidSets the date the resource is scheduled to begin working on the activity.voidSets the planned units of work for the resource assignment on the activity.voidSets the planned units per time at which the resource is to perform work on this activity.voidSets the price per time for the resource on this activity.voidSets the skill level that is associated with the role.voidsetRateSource(RateSource enm) Sets the value that indicates which price/unit will be used to calculate costs for the assignment, such as 'Resource', 'Role', and 'Override'.voidsetRateType(RateType enm) Sets the rate type that determines which of the five prices specified for the resource will be used to calculate the cost for the resource assignment.voidSets the remaining cost for the resource assignment on the activity.voidSets internal profile data for remaining values.voidSets the remaining duration of the resource assignment.voidSets the date the resource is scheduled to finish the remaining work for the activity.voidSets the time lag between the activity's remaining start date and the resource's remaining start date on the activity.voidSets the date the resource is scheduled to begin the remaining work for the activity.voidSets the remaining units of work to be performed by this resource on this activity.voidSets the units per time at which the resource will be performing work on the remaining portion of this activity.voidSets the live resource assignment spread data.voidSets the unique ID of the resource curve.voidSets the unique ID of the associated resource.voidSets the resource request used as a search template to search for a qualified resource.voidSets the resource type: "Labor", "Nonlabor", or "Material".voidSets the unique ID of the role the resource is performing on this activity.voidSets the start date of the resource assignment on the activity.voidSets the total stored period cost for each assignment.voidSets the total stored period units for each assignment.voidSets the percent complete of units for the resource assignment on the activity.toString()Returns a string representation of the object.voidupdate()Updates this ResourceAssignment object in the database.static voidupdate(Session session, ResourceAssignment[] resourceassignments) Updates multiple ResourceAssignment objects in the database.Methods inherited from class com.primavera.integration.client.bo.BusinessObject
equals, getMaxFieldLength, getValue, getValue, hashCode, isNull, setEarlyDate, setNullMethods inherited from class com.primavera.integration.client.BOBase
combineFields
-
Constructor Details
-
ResourceAssignment
Class constructor specifying the Session. This constructor is most commonly used when create() is intended to be called on this object.- Parameters:
session- the Session
-
ResourceAssignment
Class constructor specifying the Session and ObjectId of the object. This constructor is most commonly used when update() will be called on this object.- Parameters:
session- the SessionobjId- the ObjectId- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
ResourceAssignment
public ResourceAssignment(Session session, com.primavera.infr.db.PrmRowSet rowSet, int iIndex) throws BusinessObjectException Class constructor called internally after objects are retrieved from the server. Client code should use one of the other constructors for this class.- Parameters:
session- the SessionrowSet- the PrmRowSet retrieved from the serveriIndex- the row index in the PrmRowSet associated with this business object- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
-
Method Details
-
loadActivity
public Activity loadActivity(String[] fields) throws ServerException, NetworkException, BusinessObjectException Loads an associated Activity object from the database.- Parameters:
fields- fields to load- Returns:
- Activity the Activity object
- Throws:
ServerException- if a problem occurred on the server-sideNetworkException- if a problem occurred in the network layerBusinessObjectException- if a problem occurred in the client-side business objects
-
loadProject
public Project loadProject(String[] fields) throws ServerException, NetworkException, BusinessObjectException Loads an associated Project object from the database.- Parameters:
fields- fields to load- Returns:
- Project the Project object
- Throws:
ServerException- if a problem occurred on the server-sideNetworkException- if a problem occurred in the network layerBusinessObjectException- if a problem occurred in the client-side business objects
-
loadResource
public Resource loadResource(String[] fields) throws ServerException, NetworkException, BusinessObjectException Loads an associated Resource object from the database.- Parameters:
fields- fields to load- Returns:
- Resource the Resource object
- Throws:
ServerException- if a problem occurred on the server-sideNetworkException- if a problem occurred in the network layerBusinessObjectException- if a problem occurred in the client-side business objects
-
loadRole
public Role loadRole(String[] fields) throws ServerException, NetworkException, BusinessObjectException Loads an associated Role object from the database.- Parameters:
fields- fields to load- Returns:
- Role the Role object
- Throws:
ServerException- if a problem occurred on the server-sideNetworkException- if a problem occurred in the network layerBusinessObjectException- if a problem occurred in the client-side business objects
-
loadCostAccount
public CostAccount loadCostAccount(String[] fields) throws ServerException, NetworkException, BusinessObjectException Loads an associated CostAccount object from the database.- Parameters:
fields- fields to load- Returns:
- CostAccount the CostAccount object
- Throws:
ServerException- if a problem occurred on the server-sideNetworkException- if a problem occurred in the network layerBusinessObjectException- if a problem occurred in the client-side business objects
-
loadResourceAssignmentPeriodActuals
public BOIterator<ResourceAssignmentPeriodActual> loadResourceAssignmentPeriodActuals(String[] fields, String sWhereClause, String sOrderBy) throws ServerException, NetworkException, BusinessObjectException Loads multiple associated ResourceAssignmentPeriodActual objects from the database.- Parameters:
fields- fields to loadsWhereClause- where clausesOrderBy- order-by clause- Returns:
- BOIterator a business object iterator used to get the results of the load request
- Throws:
ServerException- if a problem occurred on the server-sideNetworkException- if a problem occurred in the network layerBusinessObjectException- if a problem occurred in the client-side business objects
-
loadResourceHours
public BOIterator<ResourceHour> loadResourceHours(String[] fields, String sWhereClause, String sOrderBy) throws ServerException, NetworkException, BusinessObjectException Loads multiple associated ResourceHour objects from the database.- Parameters:
fields- fields to loadsWhereClause- where clausesOrderBy- order-by clause- Returns:
- BOIterator a business object iterator used to get the results of the load request
- Throws:
ServerException- if a problem occurred on the server-sideNetworkException- if a problem occurred in the network layerBusinessObjectException- if a problem occurred in the client-side business objects
-
loadResourceCurve
public ResourceCurve loadResourceCurve(String[] fields) throws ServerException, NetworkException, BusinessObjectException Loads an associated ResourceCurve object from the database.- Parameters:
fields- fields to load- Returns:
- ResourceCurve the ResourceCurve object
- Throws:
ServerException- if a problem occurred on the server-sideNetworkException- if a problem occurred in the network layerBusinessObjectException- if a problem occurred in the client-side business objects
-
loadUDFValues
public BOIterator<UDFValue> loadUDFValues(String[] fields, String sWhereClause, String sOrderBy) throws ServerException, NetworkException, BusinessObjectException Loads multiple associated UDFValue objects from the database.- Parameters:
fields- fields to loadsWhereClause- where clausesOrderBy- order-by clause- Returns:
- BOIterator a business object iterator used to get the results of the load request
- Throws:
ServerException- if a problem occurred on the server-sideNetworkException- if a problem occurred in the network layerBusinessObjectException- if a problem occurred in the client-side business objects
-
loadResourceAssignmentCodeAssignments
public BOIterator<ResourceAssignmentCodeAssignment> loadResourceAssignmentCodeAssignments(String[] fields, String sWhereClause, String sOrderBy) throws ServerException, NetworkException, BusinessObjectException Loads multiple associated ResourceAssignmentCodeAssignment objects from the database.- Parameters:
fields- fields to loadsWhereClause- where clausesOrderBy- order-by clause- Returns:
- BOIterator a business object iterator used to get the results of the load request
- Throws:
ServerException- if a problem occurred on the server-sideNetworkException- if a problem occurred in the network layerBusinessObjectException- if a problem occurred in the client-side business objects
-
getObjectId
Gets the unique ID generated by the system. This field is automatically loaded by default whenever this type of business object is loaded from the database.- Overrides:
getObjectIdin classBusinessObject- Returns:
- the value in the field ObjectId
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setObjectId
Sets the unique ID generated by the system. This field is automatically loaded by default whenever this type of business object is loaded from the database.- Overrides:
setObjectIdin classBusinessObject- Parameters:
o- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getActivityObjectId
Gets the unique ID of the activity to which the resource is assigned. This field is automatically loaded by default whenever this type of business object is loaded from the database. This field must contain a valid value in order to create this type of business object in the database.- Returns:
- the value in the field ActivityObjectId
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setActivityObjectId
Sets the unique ID of the activity to which the resource is assigned. This field is automatically loaded by default whenever this type of business object is loaded from the database. This field must contain a valid value in order to create this type of business object in the database.- Parameters:
o- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getProjectObjectId
Gets the unique ID of the associated project. This field is automatically loaded by default whenever this type of business object is loaded from the database.- Returns:
- the value in the field ProjectObjectId
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getProjectName
Gets the name of the associated project.- Returns:
- the value in the field ProjectName
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getResourceCurveObjectId
Gets the unique ID of the resource curve. This field is automatically loaded by default whenever this type of business object is loaded from the database.- Returns:
- the value in the field ResourceCurveObjectId
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setResourceCurveObjectId
Sets the unique ID of the resource curve. This field is automatically loaded by default whenever this type of business object is loaded from the database.- Parameters:
o- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getResourceCurveName
Gets the name of the resource curve that determines how resources and costs are distributed over time for this activity.- Returns:
- the value in the field ResourceCurveName
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getProjectId
Gets the short code that uniquely identifies the project.- Returns:
- the value in the field ProjectId
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getResourceObjectId
Gets the unique ID of the associated resource. This field is automatically loaded by default whenever this type of business object is loaded from the database.- Returns:
- the value in the field ResourceObjectId
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setResourceObjectId
Sets the unique ID of the associated resource. This field is automatically loaded by default whenever this type of business object is loaded from the database.- Parameters:
o- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getIsActive
Gets the flag that indicates whether this resource assignment is active.- Returns:
- the value in the field IsActive
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getIsPrimaryResource
Gets the flag that indicates whether this resource is the activity's primary resource. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field IsPrimaryResource
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setIsPrimaryResource
Sets the flag that indicates whether this resource is the activity's primary resource. This field may not be included in the where clause or order by clause specified when loading business objects.- Parameters:
b- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getPercentCompleteType
Gets the activity percent complete type: 'Physical', 'Duration', or 'Units'.- Returns:
- the value in the field PercentCompleteType
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setPercentCompleteType
Sets the activity percent complete type: 'Physical', 'Duration', or 'Units'.- Parameters:
enm- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getDurationPercentComplete
Gets the percent complete of the activity duration. Computed as (planned duration - remaining duration) / planned duration * 100. Always in the range 0 to 100. The planned duration is taken from the current plan, not from the baseline. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field DurationPercentComplete
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setDurationPercentComplete
Sets the percent complete of the activity duration. Computed as (planned duration - remaining duration) / planned duration * 100. Always in the range 0 to 100. The planned duration is taken from the current plan, not from the baseline. This field may not be included in the where clause or order by clause specified when loading business objects.- Parameters:
p- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getPercentComplete
Gets the activity percent complete. This value is tied to the activity duration % complete, units % complete, or physical % complete, depending on the setting for the activity's percent complete type, which is one of Duration, Units, or Physical. Always in the range 0 to 100. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field PercentComplete
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setPercentComplete
Sets the activity percent complete. This value is tied to the activity duration % complete, units % complete, or physical % complete, depending on the setting for the activity's percent complete type, which is one of Duration, Units, or Physical. Always in the range 0 to 100. This field may not be included in the where clause or order by clause specified when loading business objects.- Parameters:
p- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getAssignmentPercentComplete
Gets the Assignment percent complete. This value is tied to the Assignment duration % complete, units % complete, or physical % complete, depending on the setting for the activity's percent complete type, which is one of Duration, Units, or Physical. Always in the range 0 to 100. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field AssignmentPercentComplete
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setAssignmentPercentComplete
Sets the Assignment percent complete. This value is tied to the Assignment duration % complete, units % complete, or physical % complete, depending on the setting for the activity's percent complete type, which is one of Duration, Units, or Physical. Always in the range 0 to 100. This field may not be included in the where clause or order by clause specified when loading business objects.- Parameters:
p- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getCBSId
Gets the unique Id of CBS. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field CBSId
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setCBSId
Sets the unique Id of CBS. This field may not be included in the where clause or order by clause specified when loading business objects.- Parameters:
o- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getCalendarObjectId
Gets the unique ID generated by the system for the calendar associated with the resource assignment.- Returns:
- the value in the field CalendarObjectId
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getCalendarName
Gets the name of the calendar. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field CalendarName
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getResourceCalendarName
Gets the name of the calendar for the resource.- Returns:
- the value in the field ResourceCalendarName
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getRoleObjectId
Gets the unique ID of the role the resource is performing on this activity. A resource may be assigned to the same activity more than once, performing different roles. The project manager controls whether the same resource can be assigned to an activity more than once. This field is automatically loaded by default whenever this type of business object is loaded from the database.- Returns:
- the value in the field RoleObjectId
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setRoleObjectId
Sets the unique ID of the role the resource is performing on this activity. A resource may be assigned to the same activity more than once, performing different roles. The project manager controls whether the same resource can be assigned to an activity more than once. This field is automatically loaded by default whenever this type of business object is loaded from the database.- Parameters:
o- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getRoleName
Gets the name of the role. The role name uniquely identifies the role.- Returns:
- the value in the field RoleName
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getRoleShortName
Gets the shorthand name for the role.- Returns:
- the value in the field RoleShortName
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getActivityId
Gets the short ID that uniquely identifies the activity within the project.- Returns:
- the value in the field ActivityId
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getResourceId
Gets the short code that uniquely identifies the resource.- Returns:
- the value in the field ResourceId
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getActivityName
Gets the name of the activity. The activity name does not have to be unique.- Returns:
- the value in the field ActivityName
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getAutoComputeActuals
Gets the option that determines whether the activity's actual and remaining units, start date, finish date, and percent complete are computed automatically using the planned dates, planned units and the schedule percent complete. If this option is selected, the actual/remaining units and actual dates are automatically updated when project actuals are applied. Use this option to assume that all work for the activity proceeds according to plan.- Returns:
- the value in the field AutoComputeActuals
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getWBSNamePath
Gets the WBS name hierarchy of the Activity. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field WBSNamePath
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getPlannedStartDate
Gets the date the resource is scheduled to begin working on the activity. This date is computed by the project scheduler but can be updated manually by the project manager. This date is not changed by the project scheduler after the activity has been started. This is the start date that Timesheets users follow and schedule variance is measured against.- Returns:
- the value in the field PlannedStartDate
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setPlannedStartDate
Sets the date the resource is scheduled to begin working on the activity. This date is computed by the project scheduler but can be updated manually by the project manager. This date is not changed by the project scheduler after the activity has been started. This is the start date that Timesheets users follow and schedule variance is measured against.- Parameters:
d- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getPlannedFinishDate
Gets the date the resource is scheduled to finish working on the activity. This date is computed by the project scheduler but can be updated manually by the project manager. This date is not changed by the project scheduler after the activity has been started. This is the finish date that Timesheets users follow and schedule variance is measured against.- Returns:
- the value in the field PlannedFinishDate
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setPlannedFinishDate
Sets the date the resource is scheduled to finish working on the activity. This date is computed by the project scheduler but can be updated manually by the project manager. This date is not changed by the project scheduler after the activity has been started. This is the finish date that Timesheets users follow and schedule variance is measured against.- Parameters:
d- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getPlannedUnits
Gets the planned units of work for the resource assignment on the activity. This field is named BudgetedUnits in Primavera's Engineering & Construction and Maintenance & Turnaround solutions.- Returns:
- the value in the field PlannedUnits
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setPlannedUnits
Sets the planned units of work for the resource assignment on the activity. This field is named BudgetedUnits in Primavera's Engineering & Construction and Maintenance & Turnaround solutions.- Parameters:
u- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getPlannedUnitsPerTime
Gets the planned units per time at which the resource is to perform work on this activity. For example, a person assigned full time would perform 8 hours of work per day. A department of five people may perform at 5 days per day. This field is named BudgetedUnitsPerTime in Primavera's Engineering & Construction and Maintenance & Turnaround solutions.- Returns:
- the value in the field PlannedUnitsPerTime
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setPlannedUnitsPerTime
Sets the planned units per time at which the resource is to perform work on this activity. For example, a person assigned full time would perform 8 hours of work per day. A department of five people may perform at 5 days per day. This field is named BudgetedUnitsPerTime in Primavera's Engineering & Construction and Maintenance & Turnaround solutions.- Parameters:
d- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getPlannedDuration
Gets the planned working time for the resource assignment on the activity, from the resource's planned start date to the planned finish date. This field is named BudgetedDuration in Primavera's Engineering & Construction and Maintenance & Turnaround solutions. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field PlannedDuration
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setPlannedDuration
Sets the planned working time for the resource assignment on the activity, from the resource's planned start date to the planned finish date. This field is named BudgetedDuration in Primavera's Engineering & Construction and Maintenance & Turnaround solutions. This field may not be included in the where clause or order by clause specified when loading business objects.- Parameters:
d- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getPlannedLag
Gets the planned time lag between the activity's planned start date and the resource's planned start date on the activity. If the resource is planned to start work when the activity is planned to start, the planned lag is zero. This field is named BudgetedLag in Primavera's Engineering & Construction and Maintenance & Turnaround solutions.- Returns:
- the value in the field PlannedLag
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setPlannedLag
Sets the planned time lag between the activity's planned start date and the resource's planned start date on the activity. If the resource is planned to start work when the activity is planned to start, the planned lag is zero. This field is named BudgetedLag in Primavera's Engineering & Construction and Maintenance & Turnaround solutions.- Parameters:
d- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getPendingRemainingUnits
Gets the estimate of the resource's remaining units on this activity. The pending remaining units is entered by each resource using Timesheets. This value is copied to the resource's remaining units for the activity when project actuals are applied. The project manager specifies whether resources update their percent complete or remaining units for each project.- Returns:
- the value in the field PendingRemainingUnits
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setPendingRemainingUnits
Sets the estimate of the resource's remaining units on this activity. The pending remaining units is entered by each resource using Timesheets. This value is copied to the resource's remaining units for the activity when project actuals are applied. The project manager specifies whether resources update their percent complete or remaining units for each project.- Parameters:
u- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getPlannedCost
Gets the planned cost for the resource assignment on the activity. Computed as planned cost = planned units * price per time. This field is named BudgetedCost in Primavera's Engineering & Construction and Maintenance & Turnaround solutions.- Returns:
- the value in the field PlannedCost
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setPlannedCost
Sets the planned cost for the resource assignment on the activity. Computed as planned cost = planned units * price per time. This field is named BudgetedCost in Primavera's Engineering & Construction and Maintenance & Turnaround solutions.- Parameters:
c- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getActualStartDate
Gets the date the resource actually started working on the activity.- Returns:
- the value in the field ActualStartDate
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setActualStartDate
Sets the date the resource actually started working on the activity.- Parameters:
d- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getStartDate
Gets the start date of the resource assignment on the activity. Set to the remaining start date until the activity is started, then set to the actual start date. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field StartDate
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setStartDate
Sets the start date of the resource assignment on the activity. Set to the remaining start date until the activity is started, then set to the actual start date. This field may not be included in the where clause or order by clause specified when loading business objects.- Parameters:
d- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getFinishDate
Gets the finish date of the resource assignment on the activity. Set to the remaining finish date until the activity is completed, then set to the actual finish date. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field FinishDate
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setFinishDate
Sets the finish date of the resource assignment on the activity. Set to the remaining finish date until the activity is completed, then set to the actual finish date. This field may not be included in the where clause or order by clause specified when loading business objects.- Parameters:
d- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getActualDuration
Gets the actual duration for the resource assignment on the activity. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field ActualDuration
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getAtCompletionDuration
Gets the total working time from the activity's current start date to the current finish date. The current start date is the planned start date until the activity is started, then it is the actual start date. The current finish date is the activity planned finish date while the activity is not started, the remaining finish date while the activity is in progress, and the actual finish date once the activity is completed. The total working time is computed using the activity's calendar. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field AtCompletionDuration
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getStaffedRemainingUnits
Gets the time distribution of the resource's remaining units for resource assignments that have filled a role. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field StaffedRemainingUnits
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getStaffedRemainingCost
Gets the time distribution of the resource's remaining cost for resource assignments that have filled a role. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field StaffedRemainingCost
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getUnstaffedRemainingUnits
Gets the time distribution of the resource's remaining units for resource assignments that have not filled a role. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field UnstaffedRemainingUnits
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getUnstaffedRemainingCost
Gets the time distribution of the resource's remaining cost for resource assignments that have not filled a role. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field UnstaffedRemainingCost
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getActualFinishDate
Gets the date the resource actually finished working on the activity.- Returns:
- the value in the field ActualFinishDate
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setActualFinishDate
Sets the date the resource actually finished working on the activity.- Parameters:
d- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getActualRegularUnits
Gets the actual non-overtime units worked by the resource on this activity. This value is computed from timesheets when project actuals are applied or may be entered directly by the project manager.- Returns:
- the value in the field ActualRegularUnits
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setActualRegularUnits
Sets the actual non-overtime units worked by the resource on this activity. This value is computed from timesheets when project actuals are applied or may be entered directly by the project manager.- Parameters:
u- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getActualOvertimeUnits
Gets the actual overtime units worked by the resource on this activity. This value is computed from timesheets when project actuals are applied or may be entered directly by the project manager.- Returns:
- the value in the field ActualOvertimeUnits
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setActualOvertimeUnits
Sets the actual overtime units worked by the resource on this activity. This value is computed from timesheets when project actuals are applied or may be entered directly by the project manager.- Parameters:
u- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getActualUnits
Gets the actual non-overtime plus overtime units worked by the resource on this activity. This value is computed from timesheets when project actuals are applied or may be entered directly by the project manager. Computed as actual units = actual regular units + actual overtime units.- Returns:
- the value in the field ActualUnits
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setActualUnits
Sets the actual non-overtime plus overtime units worked by the resource on this activity. This value is computed from timesheets when project actuals are applied or may be entered directly by the project manager. Computed as actual units = actual regular units + actual overtime units.- Parameters:
u- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getActualRegularCost
Gets the actual non-overtime cost for the resource assignment on the activity. Computed as actual regular cost = actual regular units * cost per time.- Returns:
- the value in the field ActualRegularCost
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setActualRegularCost
Sets the actual non-overtime cost for the resource assignment on the activity. Computed as actual regular cost = actual regular units * cost per time.- Parameters:
c- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getActualOvertimeCost
Gets the actual overtime cost for the resource assignment on the activity. Computed as actual overtime cost = actual overtime units * cost per time * overtime factor.- Returns:
- the value in the field ActualOvertimeCost
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setActualOvertimeCost
Sets the actual overtime cost for the resource assignment on the activity. Computed as actual overtime cost = actual overtime units * cost per time * overtime factor.- Parameters:
c- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getActualCost
Gets the actual non-overtime plus overtime cost for the resource assignment on the activity. Computed as actual cost = actual regular cost + actual overtime cost.- Returns:
- the value in the field ActualCost
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setActualCost
Sets the actual non-overtime plus overtime cost for the resource assignment on the activity. Computed as actual cost = actual regular cost + actual overtime cost.- Parameters:
c- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getRemainingStartDate
Gets the date the resource is scheduled to begin the remaining work for the activity. This date is computed by the project scheduler but can be updated manually by the project manager. Before the activity is started, the remaining start date is the same as the planned start date.- Returns:
- the value in the field RemainingStartDate
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setRemainingStartDate
Sets the date the resource is scheduled to begin the remaining work for the activity. This date is computed by the project scheduler but can be updated manually by the project manager. Before the activity is started, the remaining start date is the same as the planned start date.- Parameters:
d- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getRemainingFinishDate
Gets the date the resource is scheduled to finish the remaining work for the activity. This date is computed by the project scheduler but can be updated manually by the project manager. Before the activity is started, the remaining finish date is the same as the planned finish date.- Returns:
- the value in the field RemainingFinishDate
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setRemainingFinishDate
Sets the date the resource is scheduled to finish the remaining work for the activity. This date is computed by the project scheduler but can be updated manually by the project manager. Before the activity is started, the remaining finish date is the same as the planned finish date.- Parameters:
d- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getRemainingLateStartDate
Gets the remaining late start date calculated by the scheduler.- Returns:
- the value in the field RemainingLateStartDate
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getRemainingLateFinishDate
Gets the remaining late finish date calculated by the scheduler.- Returns:
- the value in the field RemainingLateFinishDate
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getRemainingLag
Gets the time lag between the activity's remaining start date and the resource's remaining start date on the activity. If the resource's remaining work starts on the activity's remaining start date, the lag is zero. Before the activity is started, the remaining lag is the same as the planned lag. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field RemainingLag
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setRemainingLag
Sets the time lag between the activity's remaining start date and the resource's remaining start date on the activity. If the resource's remaining work starts on the activity's remaining start date, the lag is zero. Before the activity is started, the remaining lag is the same as the planned lag. This field may not be included in the where clause or order by clause specified when loading business objects.- Parameters:
d- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getRemainingUnits
Gets the remaining units of work to be performed by this resource on this activity. Before the activity is started, the remaining units are the same as the planned units. After the activity is completed, the remaining units are zero.- Returns:
- the value in the field RemainingUnits
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setRemainingUnits
Sets the remaining units of work to be performed by this resource on this activity. Before the activity is started, the remaining units are the same as the planned units. After the activity is completed, the remaining units are zero.- Parameters:
u- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getRemainingUnitsPerTime
Gets the units per time at which the resource will be performing work on the remaining portion of this activity. For example, a person assigned full time would perform 8 hours of work per day. A department of five people may perform at 5 days per day.- Returns:
- the value in the field RemainingUnitsPerTime
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setRemainingUnitsPerTime
Sets the units per time at which the resource will be performing work on the remaining portion of this activity. For example, a person assigned full time would perform 8 hours of work per day. A department of five people may perform at 5 days per day.- Parameters:
d- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getResourceName
Gets the name of the resource.- Returns:
- the value in the field ResourceName
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getCBSCode
Gets cBS Code. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field CBSCode
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setCBSCode
Sets cBS Code. This field may not be included in the where clause or order by clause specified when loading business objects.- Parameters:
s- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getRemainingCost
Gets the remaining cost for the resource assignment on the activity. Computed as remaining cost = remaining units * cost per time.- Returns:
- the value in the field RemainingCost
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setRemainingCost
Sets the remaining cost for the resource assignment on the activity. Computed as remaining cost = remaining units * cost per time.- Parameters:
c- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getRemainingDuration
Gets the remaining duration of the resource assignment. The remaining duration is the remaining working time for the resource assignment on the activity, from the resource's remaining start date to the remaining finish date. The remaining working time is computed using the calendar determined by the activity Type. Resource Dependent activities use the resource's calendar, other activity types use the activity's calendar. Before the activity is started, the remaining duration is the same as the Original duration. After the activity is completed, the remaining duration is zero. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field RemainingDuration
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setRemainingDuration
Sets the remaining duration of the resource assignment. The remaining duration is the remaining working time for the resource assignment on the activity, from the resource's remaining start date to the remaining finish date. The remaining working time is computed using the calendar determined by the activity Type. Resource Dependent activities use the resource's calendar, other activity types use the activity's calendar. Before the activity is started, the remaining duration is the same as the Original duration. After the activity is completed, the remaining duration is zero. This field may not be included in the where clause or order by clause specified when loading business objects.- Parameters:
d- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getAtCompletionUnits
Gets the sum of the actual plus remaining units for the resource assignment on the activity.- Returns:
- the value in the field AtCompletionUnits
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setAtCompletionUnits
Sets the sum of the actual plus remaining units for the resource assignment on the activity.- Parameters:
u- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getAtCompletionCost
Gets the sum of the actual plus remaining costs for the resource assignment on the activity.- Returns:
- the value in the field AtCompletionCost
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setAtCompletionCost
Sets the sum of the actual plus remaining costs for the resource assignment on the activity.- Parameters:
c- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getDrivingActivityDatesFlag
Gets the flag indicating whether new resource/role assignments drive activity dates, by default.- Returns:
- the value in the field DrivingActivityDatesFlag
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setDrivingActivityDatesFlag
Sets the flag indicating whether new resource/role assignments drive activity dates, by default.- Parameters:
b- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getResourceType
Gets the resource type: "Labor", "Nonlabor", or "Material".- Returns:
- the value in the field ResourceType
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setResourceType
Sets the resource type: "Labor", "Nonlabor", or "Material".- Parameters:
enm- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getIsCostUnitsLinked
Gets the flag that determines whether or not cost should be calculated based on units.- Returns:
- the value in the field IsCostUnitsLinked
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setIsCostUnitsLinked
Sets the flag that determines whether or not cost should be calculated based on units.- Parameters:
b- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getProficiency
Gets the skill level that is associated with the role. The values are 'Master', 'Expert', 'Skilled', 'Proficient', and 'Inexperienced'. If the current user does not have the ViewResourceRoleProficiency global security privilege, this field may not be accessed. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field Proficiency
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setProficiency
Sets the skill level that is associated with the role. The values are 'Master', 'Expert', 'Skilled', 'Proficient', and 'Inexperienced'. If the current user does not have the ViewResourceRoleProficiency global security privilege, this field may not be accessed. This field may not be included in the where clause or order by clause specified when loading business objects.- Parameters:
enm- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getIsOvertimeAllowed
Gets the flag that indicates whether the resource is allowed to log overtime hours.- Returns:
- the value in the field IsOvertimeAllowed
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getOvertimeFactor
Gets the overtime factor used to compute the overtime price for the resource assignment on this activity. Overtime price = standard price * overtime factor. When the resource is assigned to the activity, the resource's overtime factor is copied to the assignment. The assignment overtime factor is refreshed from the resource value when resource prices are synchronized for the project.- Returns:
- the value in the field OvertimeFactor
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setOvertimeFactor
Sets the overtime factor used to compute the overtime price for the resource assignment on this activity. Overtime price = standard price * overtime factor. When the resource is assigned to the activity, the resource's overtime factor is copied to the assignment. The assignment overtime factor is refreshed from the resource value when resource prices are synchronized for the project.- Parameters:
d- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getPricePerUnit
Gets the price per time for the resource on this activity. This price is used to compute the resource's cost for the activity. When the resource is assigned to the activity, the resource's price is copied to the assignment based on the effective date of the price and the activity start date. The assignment price is refreshed whenever resource prices are synchronized for the project. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field PricePerUnit
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setPricePerUnit
Sets the price per time for the resource on this activity. This price is used to compute the resource's cost for the activity. When the resource is assigned to the activity, the resource's price is copied to the assignment based on the effective date of the price and the activity start date. The assignment price is refreshed whenever resource prices are synchronized for the project. This field may not be included in the where clause or order by clause specified when loading business objects.- Parameters:
c- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getGUID
Gets the globally unique ID generated by the system.- Returns:
- the value in the field GUID
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setGUID
Sets the globally unique ID generated by the system.- Parameters:
s- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getUnitsPercentComplete
Gets the percent complete of units for the resource assignment on the activity. Computed as actual units / at completion units * 100. Always in the range 0 to 100. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field UnitsPercentComplete
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setUnitsPercentComplete
Sets the percent complete of units for the resource assignment on the activity. Computed as actual units / at completion units * 100. Always in the range 0 to 100. This field may not be included in the where clause or order by clause specified when loading business objects.- Parameters:
p- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getActivityType
Gets the type of activity, either 'Task Dependent', 'Resource Dependent', 'Level of Effort', 'Start Milestone', 'Finish Milestone', or 'WBS Summary'. A 'Task Dependent' activity is scheduled using the activity's calendar rather than the calendars of the assigned resources. A 'Resource Dependent' activity is scheduled using the calendars of the assigned resources. This type is used when several resources are assigned to the activity, but they may work separately. A 'Start Milestone' or 'Finish Milestone' is a zero-duration activity without resources, marking a significant project event. A 'Level of Effort' activity has a duration that is determined by its dependent activities. Administration-type activities are typically 'Level of Effort'. A 'WBS Summary' comprises a group of activities that share a common WBS level. For example, all activities whose WBS codes start with A (A.1, A.1.1, A.1.1.2, A.2, A.3 and so forth) can be part of one WBS activity whose WBS code is A.- Returns:
- the value in the field ActivityType
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getRoleId
Gets the short code that uniquely identifies the role.- Returns:
- the value in the field RoleId
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getCostAccountObjectId
Gets the unique ID of the cost account associated with this resource assignment. This field is automatically loaded by default whenever this type of business object is loaded from the database.- Returns:
- the value in the field CostAccountObjectId
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setCostAccountObjectId
Sets the unique ID of the cost account associated with this resource assignment. This field is automatically loaded by default whenever this type of business object is loaded from the database.- Parameters:
o- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getWBSObjectId
Gets the unique ID of the WBS for the activity. This field is automatically loaded by default whenever this type of business object is loaded from the database.- Returns:
- the value in the field WBSObjectId
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getCostAccountName
Gets the name of the associated cost account.- Returns:
- the value in the field CostAccountName
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getCostAccountId
Gets the id of associated cost account.- Returns:
- the value in the field CostAccountId
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getResourceRequest
Gets the resource request used as a search template to search for a qualified resource. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field ResourceRequest
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setResourceRequest
Sets the resource request used as a search template to search for a qualified resource. This field may not be included in the where clause or order by clause specified when loading business objects.- Parameters:
r- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getRateType
Gets the rate type that determines which of the five prices specified for the resource will be used to calculate the cost for the resource assignment. Valid values are 'Price / Unit', 'Price / Unit2', 'Price / Unit3', 'Price / Unit4', 'Price / Unit5', and 'None'.- Returns:
- the value in the field RateType
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setRateType
Sets the rate type that determines which of the five prices specified for the resource will be used to calculate the cost for the resource assignment. Valid values are 'Price / Unit', 'Price / Unit2', 'Price / Unit3', 'Price / Unit4', 'Price / Unit5', and 'None'.- Parameters:
enm- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getRateSource
Gets the value that indicates which price/unit will be used to calculate costs for the assignment, such as 'Resource', 'Role', and 'Override'. When a resource and only a resource is assigned to an activity, the rate source will automatically equal 'Resource'. When a role and only a role is assigned to an activity, the rate source will automatically equal 'Role'. When both a resource and role are assigned to the activity, the rate source can be either 'Resource' or 'Role' determined by the RateSourcePreference. In any case, the 'Override' value allows you to specify any other price/unit.- Returns:
- the value in the field RateSource
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setRateSource
Sets the value that indicates which price/unit will be used to calculate costs for the assignment, such as 'Resource', 'Role', and 'Override'. When a resource and only a resource is assigned to an activity, the rate source will automatically equal 'Resource'. When a role and only a role is assigned to an activity, the rate source will automatically equal 'Role'. When both a resource and role are assigned to the activity, the rate source can be either 'Resource' or 'Role' determined by the RateSourcePreference. In any case, the 'Override' value allows you to specify any other price/unit.- Parameters:
enm- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getActualThisPeriodUnits
Gets the actual this period units (hours) (will be labor or nonlabor).- Returns:
- the value in the field ActualThisPeriodUnits
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setActualThisPeriodUnits
Sets the actual this period units (hours) (will be labor or nonlabor).- Parameters:
u- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getActualThisPeriodCost
Gets the actual this period cost (will be labor or nonlabor).- Returns:
- the value in the field ActualThisPeriodCost
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setActualThisPeriodCost
Sets the actual this period cost (will be labor or nonlabor).- Parameters:
c- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getActivityActualFinish
Gets the date on which the activity is actually finished.- Returns:
- the value in the field ActivityActualFinish
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getResourceAssignmentSpread
Gets the live resource assignment spread data. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field ResourceAssignmentSpread
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setResourceAssignmentSpread
Sets the live resource assignment spread data. This field may not be included in the where clause or order by clause specified when loading business objects.- Parameters:
bs- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getPeriodPerformanceSpread
public com.primavera.common.value.spread.PeriodPerformanceSpread getPeriodPerformanceSpread() throws BusinessObjectExceptionGets the live resource assignment period spread data. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field PeriodPerformanceSpread
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getPendingActualOvertimeUnits
Gets the actual overtime units worked by the resource on this activity. This value is computed from values entered by a user in the Progress Reporter application and is applied to the resource assignment when the Apply Actuals service is invoked.- Returns:
- the value in the field PendingActualOvertimeUnits
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getPendingActualRegularUnits
Gets the actual nonovertime units worked by the resource on this activity. This value is computed from values entered by a user in the Progress Reporter application and is applied to the resource assignment when the Apply Actuals service is invoked.- Returns:
- the value in the field PendingActualRegularUnits
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getPendingPercentComplete
Gets the estimate of the percentage of the resource's units of work completed on this activity. The pending percent complete is entered by each resource using Timesheets. This value is used to compute the resource's remaining units for the activity when project actuals are applied. The project manager specifies whether resources update their percent complete or remaining units for each project.- Returns:
- the value in the field PendingPercentComplete
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setPendingPercentComplete
Sets the estimate of the percentage of the resource's units of work completed on this activity. The pending percent complete is entered by each resource using Timesheets. This value is used to compute the resource's remaining units for the activity when project actuals are applied. The project manager specifies whether resources update their percent complete or remaining units for each project.- Parameters:
p- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getTotalPastPeriodUnits
Gets the total stored period units for each assignment. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field TotalPastPeriodUnits
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setTotalPastPeriodUnits
Sets the total stored period units for each assignment. This field may not be included in the where clause or order by clause specified when loading business objects.- Parameters:
u- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getTotalPastPeriodCost
Gets the total stored period cost for each assignment. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field TotalPastPeriodCost
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setTotalPastPeriodCost
Sets the total stored period cost for each assignment. This field may not be included in the where clause or order by clause specified when loading business objects.- Parameters:
c- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getCreateDate
Gets the date this assignment was created.- Returns:
- the value in the field CreateDate
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getLastUpdateDate
Gets the date this assignment was last updated.- Returns:
- the value in the field LastUpdateDate
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getCreateUser
Gets the name of the user that created this assignment.- Returns:
- the value in the field CreateUser
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getLastUpdateUser
Gets the name of the user that last updated this assignment.- Returns:
- the value in the field LastUpdateUser
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getProjectFlag
Gets indicates if this WBS node a Project/EPS node?.- Returns:
- the value in the field ProjectFlag
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getProjectProjectFlag
Gets indicates if this Project/EPS node a Project or EPS?.- Returns:
- the value in the field ProjectProjectFlag
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getIsBaseline
Gets the boolean value indicating if this business object is related to a Project or Baseline.- Returns:
- the value in the field IsBaseline
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getIsTemplate
Gets the boolean value indicating if this business object is related to a template Project.- Returns:
- the value in the field IsTemplate
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getStatusCode
Gets the project status: 'Planned', 'Active', 'Inactive', 'What-If', 'Requested', or 'Template'.- Returns:
- the value in the field StatusCode
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getHasFutureBucketData
Gets the flag that indicates whether the assignment has future bucket data.- Returns:
- the value in the field HasFutureBucketData
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getPlannedCurve
Gets internal profile data for planned values.- Returns:
- the value in the field PlannedCurve
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setPlannedCurve
Sets internal profile data for planned values.- Parameters:
s- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getActualCurve
Gets internal profile data for actual values.- Returns:
- the value in the field ActualCurve
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setActualCurve
Sets internal profile data for actual values.- Parameters:
s- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getRemainingCurve
Gets internal profile data for remaining values.- Returns:
- the value in the field RemainingCurve
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setRemainingCurve
Sets internal profile data for remaining values.- Parameters:
s- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getPriorActualRegularUnits
Gets the difference between the pending quantity value and the actual quantity value before applying the new actual value.- Returns:
- the value in the field PriorActualRegularUnits
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getPriorActualOvertimeUnits
Gets the difference between the pending quantity value and the actual quantity value for overtime before applying the new actual value.- Returns:
- the value in the field PriorActualOvertimeUnits
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getReviewRequired
Gets the indicator that determines whether the activity status updates made in Team Member applications must be approved before commiting changes.- Returns:
- the value in the field ReviewRequired
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getIsActivityFlagged
Gets the flag that indicates whether the resource who is assigned to the activity assignment has flagged the activity as important to the resource.- Returns:
- the value in the field IsActivityFlagged
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setIsActivityFlagged
Sets the flag that indicates whether the resource who is assigned to the activity assignment has flagged the activity as important to the resource.- Parameters:
b- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getUnreadCommentCount
Gets the total number of unread comments on this activity for a user. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field UnreadCommentCount
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getFinancialPeriodTmplId
Gets financial Period Template Id.- Returns:
- the value in the field FinancialPeriodTmplId
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getBudgetAtCompletionUnits
Gets the total number of unread comments on this activity for a user. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field BudgetAtCompletionUnits
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setBudgetAtCompletionUnits
Sets the total number of unread comments on this activity for a user. This field may not be included in the where clause or order by clause specified when loading business objects.- Parameters:
u- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getBudgetAtCompletionCosts
Gets the total number of unread comments on this activity for a user. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field BudgetAtCompletionCosts
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setBudgetAtCompletionCosts
Sets the total number of unread comments on this activity for a user. This field may not be included in the where clause or order by clause specified when loading business objects.- Parameters:
c- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getEstimateTimeToComplete
Gets displays the projected duration required to complete an activity based on schedule performance to date. Calculated as Original Duration divided by Schedule Performance Index (SPI). This field provides an estimate of the remaining time assuming current performance trends continue. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field EstimateTimeToComplete
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getEstimateTimeToCompleteUnits
Gets displays the projected labor effort needed to complete the remaining scope of work, based on labor efficiency to date. Calculated as Remaining Labor Units divided by SPI (Labor). Provides a forward-looking view of labor resource demand aligned with current productivity levels. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field EstimateTimeToCompleteUnits
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getEstimateToCompletionUnits
Gets the estimated quantity to complete the activity. Computed as either the remaining total units for the activity (remaining total units), or as PF * (BL units - earned value), depending on the earned-value technique selected for the activity's WBS. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field EstimateToCompletionUnits
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getEstimateToCompletionCosts
Gets the estimated cost to complete the activity. Computed as either the remaining total cost for the activity (remaining total cost), or as PF * (BAC - earned value), depending on the earned-value technique selected for the activity's WBS. BAC is computed from the project baseline. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field EstimateToCompletionCosts
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getRequiredCreateFields
Gets all fields that must be set before calling create() on this business object. Generally the array will contain one field in each position, but if this business object requires either one field or another field to be set, both of those fields will appear in an element of the returned array separated by '|'. For example, if this business object requires field A to always be set, and field B or field C to be set, one element in the returned array will contain A, and one element will contain B|C.- Returns:
- String[] an array of required create fields
-
getFilterableFields
Gets all fields that can be filtered.- Returns:
- String[] an array of filterable fields
-
getInternalDefaultLoadFields
An internal method that should not be called directly by client code.- Returns:
- String[] an internal array
-
getAllFields
Gets all fields for this business object.- Returns:
- String[] an array of all fields
-
getInternalAllFields
An internal method that should not be called directly by client code.- Returns:
- String[] an internal array
-
getInternalAllFieldsSet
An internal method that should not be called directly by client code.- Returns:
- String[] an internal array
-
getMainFields
Gets all fields in the main group for this business object.- Returns:
- String[] an array of fields in this group
-
getSpreadFields
Gets all spread fields that can be specified in the spreadFields parameter of loadWithLiveSpread methods for this business object.- Returns:
- String[] an array of all spread fields
-
getBaseSpreadFields
Gets all spread fields that can be specified in the spreadFields parameter of loadWithBaseSpread methods for this business object.- Returns:
- String[] an array of all spread fields
-
getWritableFields
Gets all writable fields for this business object.- Returns:
- String[] an array of writable fields
-
getDefaultXMLExportFields
Deprecated.Gets the fields that are exported by the hierarchical XML exporter when no fields are specified. This method is no longer relevant since the hierarchical XML exporter has been replaced by the flat XML exporter.- Returns:
- String[] an array of field names
-
getMinimumXMLExportFields
Gets all fields that are always exported at a minimum by the new flat XML exporter- Returns:
- String[] an array of exported fields
-
toString
Returns a string representation of the object. The output is in XML. -
create
Creates this ResourceAssignment object in the database.- Returns:
- ObjectId the unique ID of the newly created ResourceAssignment object
- Throws:
ServerException- if a problem occurred on the server-sideNetworkException- if a problem occurred in the network layerBusinessObjectException- if a problem occurred in the client-side business objects
-
create
public static ObjectId[] create(Session session, ResourceAssignment[] resourceassignments) throws ServerException, NetworkException, BusinessObjectException Creates multiple ResourceAssignment objects in the database.- Parameters:
session- the Session objectresourceassignments- array of ResourceAssignment objects to create- Returns:
- ObjectId[] the array of unique IDs of newly created ResourceAssignment objects
- Throws:
ServerException- if a problem occurred on the server-sideNetworkException- if a problem occurred in the network layerBusinessObjectException- if a problem occurred in the client-side business objects
-
load
public static ResourceAssignment load(Session session, String[] fields, ObjectId objId) throws ServerException, NetworkException, BusinessObjectException Loads a single ResourceAssignment object from the database.- Parameters:
session- the Session objectfields- fields to loadobjId- unique ID of the ResourceAssignment object- Returns:
- ResourceAssignment the ResourceAssignment object
- Throws:
ServerException- if a problem occurred on the server-sideNetworkException- if a problem occurred in the network layerBusinessObjectException- if a problem occurred in the client-side business objects
-
load
public static BOIterator<ResourceAssignment> load(Session session, String[] fields, ObjectId[] objIds) throws ServerException, NetworkException, BusinessObjectException Loads multiple ResourceAssignment objects from the database.- Parameters:
session- the Session objectfields- fields to loadobjIds- object ids of the ResourceAssignment objects- Returns:
- BOIterator a business object iterator used to get the results of the load request
- Throws:
ServerException- if a problem occurred on the server-sideNetworkException- if a problem occurred in the network layerBusinessObjectException- if a problem occurred in the client-side business objects
-
loadWithLiveSpread
public static ResourceAssignment loadWithLiveSpread(Session session, String[] nonSpreadFields, ObjectId objId, String[] spreadFields, SpreadPeriodType periodType, Date startDate, Date endDate, boolean bIncludeCumulative) throws ServerException, NetworkException, BusinessObjectException Loads a ResourceAssignment object with summarized spreads from the database.- Parameters:
nonSpreadFields- fields to loadobjId- unique ID of the ResourceAssignment objectspreadFields- the fields to include in the spread objectperiodType- the period of the spread data (hour, day, etc.)startDate- the start date of the spreadendDate- the end date of the spreadbIncludeCumulative- indicates whether to include cumulative spread data- Returns:
- ResourceAssignment the ResourceAssignment object
- Throws:
ServerException- if a problem occurred on the server-sideNetworkException- if a problem occurred in the network layerBusinessObjectException- if a problem occurred in the client-side business objects
-
loadWithLiveSpread
public static BOIterator<ResourceAssignment> loadWithLiveSpread(Session session, String[] nonSpreadFields, ObjectId[] objIds, String[] spreadFields, SpreadPeriodType periodType, Date startDate, Date endDate, boolean bIncludeCumulative) throws ServerException, NetworkException, BusinessObjectException Loads multiple ResourceAssignment objects with summarized spreads from the database.- Parameters:
nonSpreadFields- fields to loadobjIds- object ids of the ResourceAssignment objectsspreadFields- the fields to include in the spread objectperiodType- the period of the spread data (hour, day, etc.)startDate- the start date of the spreadendDate- the end date of the spreadbIncludeCumulative- indicates whether to include cumulative spread data- Returns:
- BOIterator a business object iterator used to get the results of the load request
- Throws:
ServerException- if a problem occurred on the server-sideNetworkException- if a problem occurred in the network layerBusinessObjectException- if a problem occurred in the client-side business objects
-
loadWithLiveSpreadActivityOrAssignment
public static BOIterator<ResourceAssignment> loadWithLiveSpreadActivityOrAssignment(Session session, String[] nonSpreadFields, ObjectId[] objIds, String[] spreadFields, SpreadPeriodType periodType, Date startDate, Date endDate, boolean bIncludeCumulative) throws ServerException, NetworkException, BusinessObjectException Loads multiple ResourceAssignment objects with summarized spreads from the database.- Parameters:
nonSpreadFields- fields to loadobjIds- object ids of the ResourceAssignment objectsspreadFields- the fields to include in the spread objectperiodType- the period of the spread data (hour, day, etc.)startDate- the start date of the spreadendDate- the end date of the spreadbIncludeCumulative- indicates whether to include cumulative spread data- Returns:
- BOIterator a business object iterator used to get the results of the load request
- Throws:
ServerException- if a problem occurred on the server-sideNetworkException- if a problem occurred in the network layerBusinessObjectException- if a problem occurred in the client-side business objects
-
loadWithPeriodPerformanceSpread
public static ResourceAssignment loadWithPeriodPerformanceSpread(Session session, String[] nonSpreadFields, ObjectId objId, String[] spreadFields, SpreadPeriodType periodType, Date startDate, Date endDate, boolean bIncludeCumulative) throws ServerException, NetworkException, BusinessObjectException Loads a ResourceAssignment object with summarized spreads from the database.- Parameters:
nonSpreadFields- fields to loadobjId- unique ID of the ResourceAssignment objectspreadFields- the fields to include in the spread objectperiodType- the period of the spread data (hour, day, etc.)startDate- the start date of the spreadendDate- the end date of the spreadbIncludeCumulative- indicates whether to include cumulative spread data- Returns:
- ResourceAssignment the ResourceAssignment object
- Throws:
ServerException- if a problem occurred on the server-sideNetworkException- if a problem occurred in the network layerBusinessObjectException- if a problem occurred in the client-side business objects
-
loadWithPeriodPerformanceSpread
public static BOIterator<ResourceAssignment> loadWithPeriodPerformanceSpread(Session session, String[] nonSpreadFields, ObjectId[] objIds, String[] spreadFields, SpreadPeriodType periodType, Date startDate, Date endDate, boolean bIncludeCumulative) throws ServerException, NetworkException, BusinessObjectException Loads multiple ResourceAssignment objects with summarized spreads from the database.- Parameters:
nonSpreadFields- fields to loadobjIds- object ids of the ResourceAssignment objectsspreadFields- the fields to include in the spread objectperiodType- the period of the spread data (hour, day, etc.)startDate- the start date of the spreadendDate- the end date of the spreadbIncludeCumulative- indicates whether to include cumulative spread data- Returns:
- BOIterator a business object iterator used to get the results of the load request
- Throws:
ServerException- if a problem occurred on the server-sideNetworkException- if a problem occurred in the network layerBusinessObjectException- if a problem occurred in the client-side business objects
-
loadWithPeriodPerformanceSpreadActivityOrAssignment
public static BOIterator<ResourceAssignment> loadWithPeriodPerformanceSpreadActivityOrAssignment(Session session, String[] nonSpreadFields, ObjectId[] objIds, String[] spreadFields, SpreadPeriodType periodType, Date startDate, Date endDate, boolean bIncludeCumulative) throws ServerException, NetworkException, BusinessObjectException Loads multiple ResourceAssignment objects with summarized spreads from the database.- Parameters:
nonSpreadFields- fields to loadobjIds- object ids of the ResourceAssignment objectsspreadFields- the fields to include in the spread objectperiodType- the period of the spread data (hour, day, etc.)startDate- the start date of the spreadendDate- the end date of the spreadbIncludeCumulative- indicates whether to include cumulative spread data- Returns:
- BOIterator a business object iterator used to get the results of the load request
- Throws:
ServerException- if a problem occurred on the server-sideNetworkException- if a problem occurred in the network layerBusinessObjectException- if a problem occurred in the client-side business objects
-
update
Updates this ResourceAssignment object in the database.- Throws:
ServerException- if a problem occurred on the server-sideNetworkException- if a problem occurred in the network layerBusinessObjectException- if a problem occurred in the client-side business objects
-
update
public static void update(Session session, ResourceAssignment[] resourceassignments) throws ServerException, NetworkException, BusinessObjectException Updates multiple ResourceAssignment objects in the database.- Parameters:
session- the Session objectresourceassignments- array of ResourceAssignment objects to update- Throws:
ServerException- if a problem occurred on the server-sideNetworkException- if a problem occurred in the network layerBusinessObjectException- if a problem occurred in the client-side business objects
-
delete
Deletes this ResourceAssignment object from the database.- Throws:
ServerException- if a problem occurred on the server-sideNetworkException- if a problem occurred in the network layerBusinessObjectException- if a problem occurred in the client-side business objects
-
delete
public static void delete(Session session, ResourceAssignment[] resourceassignments) throws ServerException, NetworkException, BusinessObjectException Deletes multiple ResourceAssignment objects from the database.- Parameters:
session- the Session objectresourceassignments- array of ResourceAssignment objects to delete- Throws:
ServerException- if a problem occurred on the server-sideNetworkException- if a problem occurred in the network layerBusinessObjectException- if a problem occurred in the client-side business objects
-