|
Primavera Integration API 7.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.primavera.integration.client.BOBase
com.primavera.integration.client.bo.BusinessObject
com.primavera.integration.client.bo.base.ActivityStepBase
com.primavera.integration.client.bo.object.ActivityStep
public class ActivityStep
Activity steps provide a way to break activities down into smaller units and track the completion of those units. For example, the activity Prepare for System Integration and Testing might contain the following steps:
You can add as many steps to an activity as you need: some activities will require more steps to complete than others and some activities may require no additional steps at all. If progress occurs on the step, enter a percent complete or set the IsCompleted flag if the step is 100% complete. You can also assign additional information to steps, such as cost, start and finish dates, and text.
Weighted steps
Weighted steps enable you to track the progress of an activity based on the number of steps completed. When activity percent complete is specified to be based on activity steps, and physical is chosen as the activity's percent complete type, activity percent complete is updated based on the weight you assign to each activity step.
For example, in the activity Prepare for System Integration and Testing mentioned above, the steps are assigned weights of 3.0, 2.0, and 1.0 respectively. When you specify the step Establish Test Cases and Test Procedures to be complete, the activity's physical percent complete is updated to 50 percent (because the total weight for the steps in this activity is 6.0 and the weight for this step is 3.0; therefore, half the work on this activity, according to the weight of the steps, has been completed).
This business object supports user defined fields (UDFs). Use the UDFValue business object to assign UDFs.
See Also: Quick reference of ActivityStep fields
Constructor Summary | |
---|---|
ActivityStep(Session session)
Class constructor specifying the Session. |
|
ActivityStep(Session session,
ObjectId objId)
Class constructor specifying the Session and ObjectId of the object. |
|
ActivityStep(Session session,
com.primavera.infr.db.PrmRowSet rowSet,
int iIndex)
Class constructor called internally after objects are retrieved from the server. |
Method Summary | |
---|---|
ObjectId |
create()
Creates this ActivityStep object in the database. |
static ObjectId[] |
create(Session session,
ActivityStep[] activitysteps)
Creates multiple ActivityStep objects in the database. |
void |
delete()
Deletes this ActivityStep object from the database. |
static void |
delete(Session session,
ActivityStep[] activitysteps)
Deletes multiple ActivityStep objects from the database. |
java.lang.String |
getActivityId()
Gets the short ID that uniquely identifies the activity within the project. |
java.lang.String |
getActivityName()
Gets the name of the activity. |
ObjectId |
getActivityObjectId()
Gets the unique ID of the activity to which the steps are assigned. |
static java.lang.String[] |
getAllFields()
Gets all fields for this business object. |
java.util.Date |
getCreateDate()
Gets the date this activity step was created. |
java.lang.String |
getCreateUser()
Gets the name of the user that created this activity step. |
static java.lang.String[] |
getDefaultXMLExportFields()
Gets the fields that are exported by the XML exporter when no fields are specified. |
java.lang.String |
getDescription()
Gets the description of the activity step. |
static java.lang.String[] |
getFilterableFields()
Gets all fields that can be filtered. |
static java.lang.String[] |
getInternalAllFields()
An internal method that should not be called directly by client code. |
static java.util.Set<java.lang.String> |
getInternalAllFieldsSet()
An internal method that should not be called directly by client code. |
static java.lang.String[] |
getInternalDefaultLoadFields()
An internal method that should not be called directly by client code. |
boolean |
getIsBaseline()
Gets the boolean value indicating if this business object is related to a Project or Baseline. |
boolean |
getIsCompleted()
Gets the flag that indicates whether the step has been completed. |
java.util.Date |
getLastUpdateDate()
Gets the date this activity step was last updated. |
java.lang.String |
getLastUpdateUser()
Gets the name of the user that last updated this activity step. |
static java.lang.String[] |
getMainFields()
Gets all fields in the main group for this business object. |
static java.lang.String[] |
getMinimumXMLExportFields()
Gets all fields that are always exported at a minimum by the new flat XML exporter |
java.lang.String |
getName()
Gets the name of the activity step. |
ObjectId |
getObjectId()
Gets the unique ID generated by the system. |
Percent |
getPercentComplete()
Gets the percent complete for the step. |
java.lang.String |
getProjectId()
Gets the short code that uniquely identifies the project. |
ObjectId |
getProjectObjectId()
Gets the unique ID of the associated project. |
static java.lang.String[] |
getRequiredCreateFields()
Gets all fields that must be set before calling create() on this business object. |
int |
getSequenceNumber()
Gets the sequence number for sorting. |
Cost |
getUDFCost(ObjectId objId)
Deprecated. As of release 5.0 SP3, UDFValue objects should be used for user defined field assignments. |
java.lang.Double |
getUDFDouble(ObjectId objId)
Deprecated. As of release 5.0 SP3, UDFValue objects should be used for user defined field assignments. |
EndDate |
getUDFFinishDate(ObjectId objId)
Deprecated. As of release 5.0 SP3, UDFValue objects should be used for user defined field assignments. |
UDFIndicator |
getUDFIndicator(ObjectId objId)
Deprecated. As of release 5.0 SP3, UDFValue objects should be used for user defined field assignments. |
java.lang.Integer |
getUDFInteger(ObjectId objId)
Deprecated. As of release 5.0 SP3, UDFValue objects should be used for user defined field assignments. |
BeginDate |
getUDFStartDate(ObjectId objId)
Deprecated. As of release 5.0 SP3, UDFValue objects should be used for user defined field assignments. |
java.lang.String |
getUDFText(ObjectId objId)
Deprecated. As of release 5.0 SP3, UDFValue objects should be used for user defined field assignments. |
ObjectId[] |
getUDFTypesAssigned()
Deprecated. As of release 5.0 SP3, determine the UDF assignments using the UDFValue object. |
ObjectId |
getWBSObjectId()
Gets the unique ID of the WBS for the activity. |
double |
getWeight()
Gets the weight that is assigned to the step. |
Percent |
getWeightPercent()
Gets the non-editable field that displays the percentage amount that corresponds to the step. |
static java.lang.String[] |
getWritableFields()
Gets all writable fields for this business object. |
static ActivityStep |
load(Session session,
java.lang.String[] fields,
ObjectId objId)
Loads a single ActivityStep object from the database. |
static BOIterator<ActivityStep> |
load(Session session,
java.lang.String[] fields,
ObjectId[] objIds)
Loads multiple ActivityStep objects from the database. |
Activity |
loadActivity(java.lang.String[] fields)
Loads an associated Activity object from the database. |
Project |
loadProject(java.lang.String[] fields)
Loads an associated Project object from the database. |
BOIterator<UDFValue> |
loadUDFValues(java.lang.String[] fields,
java.lang.String sWhereClause,
java.lang.String sOrderBy)
Loads multiple associated UDFValue objects from the database. |
void |
setActivityObjectId(ObjectId o)
Sets the unique ID of the activity to which the steps are assigned. |
void |
setDescription(java.lang.String s)
Sets the description of the activity step. |
void |
setIsCompleted(boolean b)
Sets the flag that indicates whether the step has been completed. |
void |
setName(java.lang.String s)
Sets the name of the activity step. |
void |
setObjectId(ObjectId o)
Sets the unique ID generated by the system. |
void |
setPercentComplete(Percent p)
Sets the percent complete for the step. |
void |
setSequenceNumber(int i)
Sets the sequence number for sorting. |
void |
setUDFCost(ObjectId objId,
Cost cost)
Deprecated. As of release 5.0 SP3, UDFValue objects should be used for user defined field assignments. |
void |
setUDFDouble(ObjectId objId,
java.lang.Double n)
Deprecated. As of release 5.0 SP3, UDFValue objects should be used for user defined field assignments. |
void |
setUDFFinishDate(ObjectId objId,
EndDate date)
Deprecated. As of release 5.0 SP3, UDFValue objects should be used for user defined field assignments. |
void |
setUDFIndicator(ObjectId objId,
UDFIndicator ind)
Deprecated. As of release 5.0 SP3, UDFValue objects should be used for user defined field assignments. |
void |
setUDFInteger(ObjectId objId,
java.lang.Integer i)
Deprecated. As of release 5.0 SP3, UDFValue objects should be used for user defined field assignments. |
void |
setUDFStartDate(ObjectId objId,
BeginDate date)
Deprecated. As of release 5.0 SP3, UDFValue objects should be used for user defined field assignments. |
void |
setUDFText(ObjectId objId,
java.lang.String s)
Deprecated. As of release 5.0 SP3, UDFValue objects should be used for user defined field assignments. |
void |
setWeight(double d)
Sets the weight that is assigned to the step. |
java.lang.String |
toString()
Returns a string representation of the object. |
void |
update()
Updates this ActivityStep object in the database. |
static void |
update(Session session,
ActivityStep[] activitysteps)
Updates multiple ActivityStep objects in the database. |
Methods inherited from class com.primavera.integration.client.bo.BusinessObject |
---|
equals, hashCode, isNull, setNull |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ActivityStep(Session session)
session
- the Sessionpublic ActivityStep(Session session, ObjectId objId) throws BusinessObjectException
session
- the SessionobjId
- the ObjectId
BusinessObjectException
- if a problem occurred in the client-side business objectspublic ActivityStep(Session session, com.primavera.infr.db.PrmRowSet rowSet, int iIndex) throws BusinessObjectException
session
- the SessionrowSet
- the PrmRowSet retrieved from the serveriIndex
- the row index in the PrmRowSet associated with this business object
BusinessObjectException
- if a problem occurred in the client-side business objectsMethod Detail |
---|
public ObjectId create() throws ServerException, NetworkException, BusinessObjectException
ServerException
- if a problem occurred on the server-side
NetworkException
- if a problem occurred in the network layer
BusinessObjectException
- if a problem occurred in the client-side business objectspublic static ObjectId[] create(Session session, ActivityStep[] activitysteps) throws ServerException, NetworkException, BusinessObjectException
session
- the Session objectactivitysteps
- array of ActivityStep objects to create
ServerException
- if a problem occurred on the server-side
NetworkException
- if a problem occurred in the network layer
BusinessObjectException
- if a problem occurred in the client-side business objectspublic static ActivityStep load(Session session, java.lang.String[] fields, ObjectId objId) throws ServerException, NetworkException, BusinessObjectException
session
- the Session objectfields
- fields to loadobjId
- unique ID of the ActivityStep object
ServerException
- if a problem occurred on the server-side
NetworkException
- if a problem occurred in the network layer
BusinessObjectException
- if a problem occurred in the client-side business objectspublic static BOIterator<ActivityStep> load(Session session, java.lang.String[] fields, ObjectId[] objIds) throws ServerException, NetworkException, BusinessObjectException
session
- the Session objectfields
- fields to loadobjIds
- object ids of the ActivityStep objects
ServerException
- if a problem occurred on the server-side
NetworkException
- if a problem occurred in the network layer
BusinessObjectException
- if a problem occurred in the client-side business objectspublic void update() throws ServerException, NetworkException, BusinessObjectException
update
in class BOBase
ServerException
- if a problem occurred on the server-side
NetworkException
- if a problem occurred in the network layer
BusinessObjectException
- if a problem occurred in the client-side business objectspublic static void update(Session session, ActivityStep[] activitysteps) throws ServerException, NetworkException, BusinessObjectException
session
- the Session objectactivitysteps
- array of ActivityStep objects to update
ServerException
- if a problem occurred on the server-side
NetworkException
- if a problem occurred in the network layer
BusinessObjectException
- if a problem occurred in the client-side business objectspublic void delete() throws ServerException, NetworkException, BusinessObjectException
delete
in class BOBase
ServerException
- if a problem occurred on the server-side
NetworkException
- if a problem occurred in the network layer
BusinessObjectException
- if a problem occurred in the client-side business objectspublic static void delete(Session session, ActivityStep[] activitysteps) throws ServerException, NetworkException, BusinessObjectException
session
- the Session objectactivitysteps
- array of ActivityStep objects to delete
ServerException
- if a problem occurred on the server-side
NetworkException
- if a problem occurred in the network layer
BusinessObjectException
- if a problem occurred in the client-side business objectspublic Activity loadActivity(java.lang.String[] fields) throws ServerException, NetworkException, BusinessObjectException
fields
- fields to load
ServerException
- if a problem occurred on the server-side
NetworkException
- if a problem occurred in the network layer
BusinessObjectException
- if a problem occurred in the client-side business objectspublic Project loadProject(java.lang.String[] fields) throws ServerException, NetworkException, BusinessObjectException
fields
- fields to load
ServerException
- if a problem occurred on the server-side
NetworkException
- if a problem occurred in the network layer
BusinessObjectException
- if a problem occurred in the client-side business objectspublic BOIterator<UDFValue> loadUDFValues(java.lang.String[] fields, java.lang.String sWhereClause, java.lang.String sOrderBy) throws ServerException, NetworkException, BusinessObjectException
fields
- fields to loadsWhereClause
- where clausesOrderBy
- order-by clause
ServerException
- if a problem occurred on the server-side
NetworkException
- if a problem occurred in the network layer
BusinessObjectException
- if a problem occurred in the client-side business objects@Deprecated public ObjectId[] getUDFTypesAssigned() throws BusinessObjectException
getUDFTypesAssigned
in class com.primavera.integration.client.bo.base.ActivityStepBase
BusinessObjectException
public ObjectId getObjectId() throws BusinessObjectException
getObjectId
in class BusinessObject
BusinessObjectException
- if a problem occurred in the client-side business objectspublic void setObjectId(ObjectId o) throws BusinessObjectException
setObjectId
in class BusinessObject
o
- the value to set this field to
BusinessObjectException
- if a problem occurred in the client-side business objectspublic ObjectId getActivityObjectId() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic void setActivityObjectId(ObjectId o) throws BusinessObjectException
o
- the value to set this field to
BusinessObjectException
- if a problem occurred in the client-side business objectspublic java.lang.String getActivityId() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic ObjectId getProjectObjectId() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic java.lang.String getProjectId() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic java.lang.String getName() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic void setName(java.lang.String s) throws BusinessObjectException
s
- the value to set this field to
BusinessObjectException
- if a problem occurred in the client-side business objectspublic boolean getIsCompleted() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic void setIsCompleted(boolean b) throws BusinessObjectException
b
- the value to set this field to
BusinessObjectException
- if a problem occurred in the client-side business objectspublic double getWeight() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic void setWeight(double d) throws BusinessObjectException
d
- the value to set this field to
BusinessObjectException
- if a problem occurred in the client-side business objectspublic java.lang.String getDescription() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic void setDescription(java.lang.String s) throws BusinessObjectException
s
- the value to set this field to
BusinessObjectException
- if a problem occurred in the client-side business objectspublic int getSequenceNumber() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic void setSequenceNumber(int i) throws BusinessObjectException
i
- the value to set this field to
BusinessObjectException
- if a problem occurred in the client-side business objectspublic Percent getPercentComplete() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic void setPercentComplete(Percent p) throws BusinessObjectException
p
- the value to set this field to
BusinessObjectException
- if a problem occurred in the client-side business objectspublic java.lang.String getActivityName() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic ObjectId getWBSObjectId() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic Percent getWeightPercent() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic java.util.Date getCreateDate() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic java.util.Date getLastUpdateDate() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic java.lang.String getCreateUser() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic java.lang.String getLastUpdateUser() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic boolean getIsBaseline() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objects@Deprecated public Cost getUDFCost(ObjectId objId) throws BusinessObjectException
objId
- the ObjectId of the UDFType business object
BusinessObjectException
- if a problem occurred in the client-side business objects@Deprecated public void setUDFCost(ObjectId objId, Cost cost) throws BusinessObjectException
objId
- the ObjectId of the UDFType business objectcost
- the Cost value to set
BusinessObjectException
- if a problem occurred in the client-side business objects@Deprecated public java.lang.Double getUDFDouble(ObjectId objId) throws BusinessObjectException
objId
- the ObjectId of the UDFType business object
BusinessObjectException
- if a problem occurred in the client-side business objects@Deprecated public void setUDFDouble(ObjectId objId, java.lang.Double n) throws BusinessObjectException
objId
- the ObjectId of the UDFType business objectn
- the Double value to set
BusinessObjectException
- if a problem occurred in the client-side business objects@Deprecated public EndDate getUDFFinishDate(ObjectId objId) throws BusinessObjectException
objId
- the ObjectId of the UDFType business object
BusinessObjectException
- if a problem occurred in the client-side business objects@Deprecated public void setUDFFinishDate(ObjectId objId, EndDate date) throws BusinessObjectException
objId
- the ObjectId of the UDFType business objectdate
- the FinishDate value to set
BusinessObjectException
- if a problem occurred in the client-side business objects@Deprecated public UDFIndicator getUDFIndicator(ObjectId objId) throws BusinessObjectException
objId
- the ObjectId of the UDFType business object
BusinessObjectException
- if a problem occurred in the client-side business objects@Deprecated public void setUDFIndicator(ObjectId objId, UDFIndicator ind) throws BusinessObjectException
objId
- the ObjectId of the UDFType business objectind
- the Indicator value to set
BusinessObjectException
- if a problem occurred in the client-side business objects@Deprecated public java.lang.Integer getUDFInteger(ObjectId objId) throws BusinessObjectException
objId
- the ObjectId of the UDFType business object
BusinessObjectException
- if a problem occurred in the client-side business objects@Deprecated public void setUDFInteger(ObjectId objId, java.lang.Integer i) throws BusinessObjectException
objId
- the ObjectId of the UDFType business objecti
- the Integer value to set
BusinessObjectException
- if a problem occurred in the client-side business objects@Deprecated public BeginDate getUDFStartDate(ObjectId objId) throws BusinessObjectException
objId
- the ObjectId of the UDFType business object
BusinessObjectException
- if a problem occurred in the client-side business objects@Deprecated public void setUDFStartDate(ObjectId objId, BeginDate date) throws BusinessObjectException
objId
- the ObjectId of the UDFType business objectdate
- the StartDate value to set
BusinessObjectException
- if a problem occurred in the client-side business objects@Deprecated public java.lang.String getUDFText(ObjectId objId) throws BusinessObjectException
objId
- the ObjectId of the UDFType business object
BusinessObjectException
- if a problem occurred in the client-side business objects@Deprecated public void setUDFText(ObjectId objId, java.lang.String s) throws BusinessObjectException
objId
- the ObjectId of the UDFType business objects
- the Text value to set
BusinessObjectException
- if a problem occurred in the client-side business objectspublic static java.lang.String[] getRequiredCreateFields()
public static java.lang.String[] getFilterableFields()
public static java.lang.String[] getInternalDefaultLoadFields()
public static java.lang.String[] getAllFields()
public static java.lang.String[] getInternalAllFields()
public static java.util.Set<java.lang.String> getInternalAllFieldsSet()
public static java.lang.String[] getMainFields()
public static java.lang.String[] getWritableFields()
public static java.lang.String[] getDefaultXMLExportFields()
public static java.lang.String[] getMinimumXMLExportFields()
public java.lang.String toString()
toString
in class java.lang.Object
|
Primavera Integration API 7.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |