Related Topics
ProjectActivity Class
This object represents a Process Timeline Activity. It is derived from the ProcessTask Class and includes all of its properties, plus the additional properties below.
Properties
PROPERTY NAME |
DATA TYPE |
DESCRIPTION |
||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ACTID |
String |
The ID of the Project activity |
||||||||||||||||||||||||||
ACTINSTID |
String |
The ID of the Activity Instance |
||||||||||||||||||||||||||
ActivityType |
Integer |
The type of activity, defined by the enum: public enum ActivityType Possible Activity Types are as follows:
|
||||||||||||||||||||||||||
ActName |
String |
The name of the Project Activity |
||||||||||||||||||||||||||
PRID |
String |
The ID of the Project Definition |
||||||||||||||||||||||||||
PRINSTID |
String |
The Project Instance ID |
Methods


This API will get a Project/Timeline Activity object from the specified instance ID.
Parameters
BP: The bp environment.
ACTID: The ID of the Project Activity to retrieve.
Returns
ProjectActivity: Will return null if the activity instance isn't found.
Example
// Normally not used directly
var oProjectActivity =
ProjectActivity.GetProjectActivityByACTID (bp, "ACTID");


This API will get a Project/Timeline Activity instance object from the specified instance ID.
Parameters
BP: The bp environment.
ACTINSTID: The ID of the Project Activity instance to retrieve.
Returns
ActivityInstance: Will return null if the activity instance isn't found.
Example
// Normally not used directly
var oProjectActivityInst =
ProjectActivity.GetProjectActivityByACTINSTID (bp, "ACTINSTID");


This API will get a Project/Timeline Activity object from the specified Name.
Parameters
BP: The bp environment.
ActivityName: The string name of the Project Activity to retrieve.
Returns
ProjectActivity: Will return null if the activity instance isn't found.
Example
// Normally not used directly
var oProjectActivity =
ProjectActivity.GetProjectActivityByName (bp, "ActivityName");


This API will restart a Timeline Activity.
Parameters
None.
Returns
Returns 'true" if the operation succeeds.
Example
// Restart the Process Task
bool bRestart = CurrentActivity.Restart();


This method enables the Owner Shared Delegate to be changed on a running activity instance.
Parameters
String pActivityName: The activity name to which to set the Delegation Owner(s).
String pNewOwnerUIDs: A comma-separated list of UIDs to set the new owner(s) of the delegation instance.
Returns
Boolean: True if the operation succeeds.
Example
bool success = SetInstanceOwnerDelegate("Activity Name", "UID1,UID2,UID3");
Documentation Feedback and Questions
If you notice some way that this document can be improved, we're happy to hear your suggestions. Similarly, if you can't find an answer you're looking for, ask it via feedback. Simply click on the button below to provide us with your feedback or ask a question. Please remember, though, that not every issue can be addressed through documentation. So, if you have a specific technical issue with Process Director, please open a support ticket.