Class ActivityType

java.lang.Object
com.primavera.integration.client.bo.enm.EnumType
com.primavera.integration.client.bo.enm.ActivityType

public class ActivityType extends EnumType
Activity type enumerations are used with activities. They are also used with projects and baseline projects for specifying the activity default activity type. The type can be 'Task Dependent', 'Resource Dependent', 'Level of Effort', '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 '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' activity provides rollup for a group of activities that share a common WBS level (determined by the WBS code). The duration of the activity is determined by the earliest start of all the activities within the group and latest finish of all the activities in the group. These dates are not live rollups, they are calculated during schedule time. Constraints and expected finish dates are not allowed on WBS Summary activities.

To use an enumeration in a where clause, make sure you use the internal database value. This can be retrieved from a particular enum instance by calling getValue().

  • Field Details

    • NULL

      public static final ActivityType NULL
    • TASK_DEPENDENT

      public static final ActivityType TASK_DEPENDENT
    • RESOURCE_DEPENDENT

      public static final ActivityType RESOURCE_DEPENDENT
    • LEVEL_OF_EFFORT

      public static final ActivityType LEVEL_OF_EFFORT
    • MILESTONE

      public static final ActivityType MILESTONE
    • FINISH_MILESTONE

      public static final ActivityType FINISH_MILESTONE
    • WBS_SUMMARY

      public static final ActivityType WBS_SUMMARY
  • Method Details

    • toString

      public String toString()
      Returns a string representation of the object, which is the same as the description returned by the getDescription() method
      Overrides:
      toString in class Object
      Returns:
      String a string representation of the object
    • getValue

      public String getValue()
      Gets the internal value of this ActivityType instance
      Specified by:
      getValue in class EnumType
      Returns:
      String the internal value
    • getDescription

      public String getDescription()
      Gets the description of this ActivityType instance
      Specified by:
      getDescription in class EnumType
      Returns:
      String the description
    • getActivityType

      public static ActivityType getActivityType(String sActivityType)
      Gets an instance of ActivityType based on the String value specified.
      Parameters:
      sActivityType - the internal value or description
      Returns:
      ActivityType the unique ActivityType instance
    • getActivityType

      public static ActivityType getActivityType(int iActivityType)
      Gets an instance of ActivityType based on the integer value specified.
      Parameters:
      iActivityType - an integer representing a particular value of this class. This value is also used when exporting to XML.
      Returns:
      ActivityType the unique ActivityType instance
    • getEnumValues

      public static String[] getEnumValues()
      Gets an array of all internal values for this enumeration
      Returns:
      String[] an array of all internal values
    • getEnumDescriptions

      public static String[] getEnumDescriptions()
      Gets an array of all descriptions for this enumeration
      Returns:
      String[] an array of all descriptions