EntityType: ResourceScenarioProject (ProjectData service)
In this article
Definition
Parent element
Child elements
Contains the properties that define the reporting data for a resource scenario project in the ProjectData service.
Example
The following REST query uses the ResourceScenarioProjects entity set and the ScenarioId key to get the specified resource scenario. The query is all on one line.
http://<pwa_url>/_api/ProjectData/ResourceScenarioProjects
?$filter=ScenarioId eq guid'da4af49e-4b96-e211-a1ea-00155da01314'
Definition
<EntityType Name="ResourceScenarioProject">
<Key>
<PropertyRef Name="ScenarioId" />
<PropertyRef Name="ProjectId" />
</Key>
<Property Name="ScenarioId" Type="Edm.Guid" Nullable="false" />
. . .
<NavigationProperty Name="Project" Relationship="ReportingData.ResourceScenarioProject_Project" ToRole="Project" FromRole="ResourceScenarioProject" />
. . .
</EntityType>
Parent element
Element |
Description |
---|---|
The schema for the reporting data in the ProjectData service. |
Child elements
Child elements are properties of a resource scenario project and navigation properties of that resource scenario project. Attributes of the Property elements specify the property name and type, and whether the property can be a null value. The NavigationProperty elements specify collections of entities, such as analyses and resource constraint scenarios, that are associated with a resource scenario project. A navigation property uses an Association element in a query for a related entity collection
The Key elements specify the properties that are the primary keys for a resource scenario project query. ScenarioId is the GUID of the scenario and ProjectId is the project GUID.
Property elements
The following table lists the Property elements for the ResourceScenarioProject entity. The Name, Type, and Nullable columns contain attribute values for each property.
Attribute values for the Property elements of ResourceScenarioProject
Name |
Type |
Nullable |
Description |
---|---|---|---|
AbsolutePriority |
Edm.Double |
false |
The non-normalized priority ranking for a project within a portfolio analysis. |
AnalysisId |
Edm.Guid |
false |
The GUID for a portfolio analysis. |
AnalysisName |
Edm.String |
true |
The name of a portfolio analysis. |
CostConstraintScenarioId |
Edm.Guid |
false |
The GUID of a portfolio analysis cost constraint scenario. |
CostConstraintScenarioName |
Edm.String |
true |
The name of a portfolio analysis cost constraint scenario. |
ForceAliasLookupTableId |
Edm.Guid |
true |
The GUID of the lookup table structure value that is used in the analysis. |
ForceAliasLookupTableName |
Edm.String |
true |
The text value of the lookup table structure that is used in the analysis. |
ForceStatus |
Edm.Byte |
false |
A value that indicates whether project status is a forced decision. |
HardConstraintValue |
Edm.Decimal |
false |
A value that represents the sum of the primary constraint custom field values of projects that are selected in the optimizer. |
NewStartDate |
Edm.DateTime |
false |
The new start date and time of a project. |
Priority |
Edm.Double |
false |
The priority level of a resource scenario project. |
ProjectId |
Edm.Guid |
false |
Key |
ProjectName |
Edm.String |
true |
The name of a project. |
ResourceCost |
Edm.Decimal |
false |
The cost of a resource on a project. |
ResourceWork |
Edm.Decimal |
false |
The amount of work that is performed by a resource on a project. |
ScenarioId |
Edm.Guid |
false |
Key |
ScenarioName |
Edm.String |
true |
The name of a portfolio analysis scenario. |
Status |
Edm.Byte |
false |
The status of a resource scenario project. |
NavigationProperty elements
The following table lists attribute values for the NavigationProperty elements of the ResourceScenarioProject entity. The Name and Relationship columns contain attribute values for each navigation property.
There are two types of Relationship attributes. One type contains two pairs of names; each pair of names indicates a navigation direction. The first pair starts with the entity type that has the primary, or starting, role in the navigation. The second pair starts with the entity type that has the secondary, or dependent, role in the navigation. For example, for the ResourceConstraintScenario navigation property, the primary type is ResourceConstraintScenario, and the secondary type is ResourceScenarioProject. For this type of navigation, the FromRole is ResourceConstraintScenario_ResourceScenarioProjects, and the ToRole is ResourceScenarioProject_ResourceConstraintScenari.
The other type of Relationship attribute contains a single pair of names. The first name in the pair is the primary entity type in the navigation. The second name in the pair is the secondary entity type in the navigation. For example, in the Analysis navigation property relationship, ResourceScenarioProject is the primary entity type and Analysis is the secondary entity type.
Attribute values for the NavigationProperty elements
Name |
Relationship |
Description |
---|---|---|
Analysis |
Establishes navigation from a collection of resource scenario projects to an analysis. |
|
CostConstraintScenario |
Establishes navigation from a collection of resource scenario projects to a cost constraint scenario. |
|
Project |
Establishes navigation from a collection of resource scenario projects to a project. |
|
ResourceConstraintScenario |
Establishes navigation from a resource constraint scenario to a collection of resource scenario projects and from a resource scenario project to a resource constraint scenario. |