PwsResourceSchedule

Overview


This structure represents a resource's schedule within the specified time period. A resource's schedule takes into account normal working hours (whether inherited from the resource's location or specified explicitly for the resource), holidays and scheduled time off. This structure is also used to represent unnamed resource scheduling information.

Format


PwsResourceSchedule

Elements


Element

Data Type

Description

Sample Data

ActivePeriods

PwsResourceActivePeriod[]

The periods of time within the specified date range in which the resource is active in association with the project role.


CostCenterIdentity

PwsCostCenterRef

The resource's cost center, named or unnamed.


EmailAddress

String

The resource's email address, if named.

matt@revcorp.bb

LocationIdentity

PwsLocationRef

The resource's location, named or unnamed.


ProjectRoleIdentity

PwsProjectRoleRef

The role identity, if unnamed.


ResourceIdentity

PwsResourceRef

The resource identity, if named.


ResourceTypeIdentity

PwsResourceTypeRef

The resource type identity, named or unnamed.


StandardWorkingMinutes

Int32[]

This resource's standard number of working minutes per day. This is presented in an array with 7 entries. The array is indexed relative to the account's first day of week setting. This can come from the resource's location, are can come directly from the resource, depending upon how the resource is configured.


TitleIdentity

PwsTitleRef

This resource's title, named or unnamed.


WorkingMinutes

PwsDailyWorkingMinutes[]

This structure returns data for days that are exceptions from the resource's normal working schedule (e.g. if a resource normally works 8 hrs/day on Monday through Friday, but there is a holiday on Monday, January 20, this array would contain an entry for that date specifying that there is 8 hours of holiday time and 0 working hours). This is intended to return detailed information about the resource's availability in as compact a format as possible.


Usage Example(s)


Example 01
               <b:PwsResourceSchedule>
                  <b:ActivePeriods>
                     <b:PwsResourceActivePeriod>
                        <b:BeginDate>2020-01-06T00:00:00Z</b:BeginDate>
                        <b:EndDate>2020-04-05T00:00:00Z</b:EndDate>
                     </b:PwsResourceActivePeriod>
                  </b:ActivePeriods>
                  <b:CostCenterIdentity>
                     <b:CostCenterId i:nil="true"/>
                     <b:CostCenterName>IT Team (USA)</b:CostCenterName>
                     <b:CostCenterNumber>IT Team (USA)</b:CostCenterNumber>
                     <b:CostCenterUid>1152921504606867365</b:CostCenterUid>
                  </b:CostCenterIdentity>
                  <b:EmailAddress>matt@revcorp.bb</b:EmailAddress>
                  <b:LocationIdentity>
                     <b:LocationId i:nil="true"/>
                     <b:LocationName>USA - Massachusetts</b:LocationName>
                     <b:LocationUid>1152921504606855985</b:LocationUid>
                  </b:LocationIdentity>
                  <b:ProjectRoleIdentity i:nil="true"/>
                  <b:ResourceIdentity>
                     <b:ResourceDisplayName>Matt</b:ResourceDisplayName>
                     <b:ResourceId i:nil="true"/>
                     <b:ResourceReferenceSystemId>IT (USA) - 01</b:ResourceReferenceSystemId>
                     <b:ResourceUid>1152921504607057128</b:ResourceUid>
                  </b:ResourceIdentity>
                  <b:ResourceTypeIdentity>
                     <b:ResourceTypeCode>FTE</b:ResourceTypeCode>
                     <b:ResourceTypeId i:nil="true"/>
                     <b:ResourceTypeName>Full Time Employee</b:ResourceTypeName>
                     <b:ResourceTypeUid>1152921504606847348</b:ResourceTypeUid>
                  </b:ResourceTypeIdentity>
                  <b:StandardWorkingMinutes xmlns:c="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                     <c:int>480</c:int>
                     <c:int>480</c:int>
                     <c:int>480</c:int>
                     <c:int>480</c:int>
                     <c:int>480</c:int>
                     <c:int>0</c:int>
                     <c:int>0</c:int>
                  </b:StandardWorkingMinutes>
                  <b:TitleIdentity>
                     <b:DepartmentIdentity>
                        <b:DepartmentId i:nil="true"/>
                        <b:DepartmentName>IT Team</b:DepartmentName>
                        <b:DepartmentUid>1152921504606854184</b:DepartmentUid>
                     </b:DepartmentIdentity>
                     <b:TitleId i:nil="true"/>
                     <b:TitleName>Level 3</b:TitleName>
                     <b:TitleUid>1152921504606876417</b:TitleUid>
                  </b:TitleIdentity>
                  <b:WorkingMinutes>
                     <b:PwsDailyWorkingMinutes>
                        <b:Date>2020-01-20T00:00:00Z</b:Date>
                        <b:HolidayMinutes>480</b:HolidayMinutes>
                        <b:TimeOffMinutes>0</b:TimeOffMinutes>
                        <b:WorkingMinutes>0</b:WorkingMinutes>
                     </b:PwsDailyWorkingMinutes>
                  </b:WorkingMinutes>
               </b:PwsResourceSchedule>