{{shiftType}}" } |
| --- |
## 7- Roster/RpiEngine/
### 7.1 BatchSize
#### Definition
Setting to specify how many days should be batched at a time as the engine runs.
#### Usage
This App setting accepts a numeric value and represents how many days in advance should be batched to cycle through, generating Roster Position Instances to match Pattern and Segment configurations. Limit this value if the environment is seeing significant performance issues and the engine is failing due to timeout, to limit the number of days batched.
#### Default Value
| 50 |
| --- |
### 7.2 OutOfScopeRpiBehaviour
#### Definition
Setting to specify how the RPI Engine handles when RPI's need to be changed based on an event such as the position or allocation changing.
#### Usage
This App setting is used in Power Automate to determine how the RPIs needs to be changed when a position or allocation is updated. Accepted values are Deactivate, Delete, Do Nothing.
Note: This App setting is used in the following Power Automates.
- *Rostering IP - (Child) - RPI Generation Engine*
#### Default Value
| Deactivate |
| --- |
### 7.3 UpdatedPatternRpiBehaviour
#### Definition
Setting to specify how the RPI Engine handles when RPI's need to be updated and it detects if we have manually edited RPI's in the pattern.
#### Usage
This App setting is used in Power Automate to determine how the RPIs are updated when a manual edit is detected in the Pattern. Accepted values are Override, Do Nothing.
Affects: Activity Type, From & To fields.
Note: This App setting is used in the following Power Automates.
- *Rostering IP - (Child) - RPI Generation Engine*
#### Default Value
| Do Nothing |
| --- |
## 8- Roster/SegmentsTimeline/
### 8.1 Config
#### Definition
The Segment Timeline grouping and row data represented as JavaScript Functions. Read by the Segment Timeline PCF Control.
#### Usage
Configure the row and grouping function to have the segment timeline represent the data as desired for the Environment or given Roster via Roster Settings / App Setting Options.
#### Default Value
| { "content": "(segment) => { console.log( segment.vel_startdate.toLocaleDateString('en-AU')); return '
' + segment.vel_resourceid?.RecordName ?? '' + '
' + segment.vel_startdate.toLocaleDateString('en-AU') + (segment.maxDate ? ' - ' + segment.maxDate.toLocaleDateString('en-AU') : '') + '
'}", "groups": [ "(segment) => !segment.vel_resourceid ? { id: 'Unallocated', content: 'Unallocated' } : { id: segment.vel_rosterpositionid.RecordId, content: segment.vel_rosterpositionid.RecordName }", "(segment) => ({ id: (segment.vel_resourceid?.RecordId ?? '') + segment.vel_rosterpositionallocationid.RecordId, content: segment.vel_rosterpositionallocationid.RecordName })" ], "groupOrder": [ "(a, b) => a.content === 'Unallocated' ? -1 : b.content === 'Unallocated' ? 1 : (a.content).localeCompare(b.content)" ], "name": "Unallocated at the top" } |
| --- |
### 8.2 CustomCss
#### Definition
Configure the style of the Segment Timeline Control by updating the Custom CSS App Setting.
#### Usage
Update the App Setting to have a unique CSS Rule set to change the style of the Segment Timeline, to suit the environments look, feel, and branding.
#### Default Value
Note: The default value is a complete CSS File, not included in this documentation.
## 9- Roster/WorkHoursCalendar/
### 9.1 AllocationRowCount
#### Definition
Technical setting to change the batch size to be used to update Work Hours Calendar when roster is published.
#### Usage
This setting is used in Custom Action for WorkHoursCalendar when a roster calendar is published.
Accepts number.
#### Default Value
| 100 |
| --- |
### 9.2 ExtentCode
#### Definition
Technical setting to handle overlaps in work hour calendar for a resource when roster is published.
#### Usage
This setting is used in Custom Action for WorkHoursCalendar when a roster calendar is published.
Accepted values 0,1,2.
- 0 - No shadowing of calendar rules. All rules are displayed even if they are shadowed or preceded by other rules.
- 1 - The recurrence duration determines the shadowing of that rule. Use this value to indicate working hours and a full day 24-hour shadow
- 2 - Only the rule duration is shadowed. Use this value to indicate time off. For example, 4 hours of time off allow working hours to appear before and after
#### Default Value
| 0 |
| --- |
### 9.3 RPIPriorityOffset
#### Definition
Technical setting to identify the offset of how many days to prioritize updates to be sent to workhours calendar when roster is published.
#### Usage
This setting is used in Custom Action for Generating RPIs to identify the offset of how many days to be prioritized. Accepts Numbers
#### Default Value
| -1 |
| --- |
## 10- Appendix A
### Roster Position Instance object
The following object keys can be used to input values relating to the given Roster Position Instance.
Note that the below values do not work for External Roster Position Instances.
| **Key** | **Value** | **Sample Output** |
| --- | --- | --- |
| Id | GUID of the RPI record | 6e95d94f-3154-ed11-9562-0022489334d5 |
| From | From Date/Time of the RPI Record | 2021-11-16T01:00:00.000Z |
| To | From Date/Time of the RPI Record | 2021-11-16T09:00:00.000Z |
| Activity | Numerical value of the Activity Type | 285930001 |
| Name | Name of the RPI record | Contact 002 - DayShift |
| RosterPositionIndex | Numerical Value of the Position Order Index | 1 |
| fromDateTimeString | String value of time only for From field | 0900 |
| toDateTimeString | String value of time only for To field | 1700 |
| shift | Activity Type name value | Day |
| shiftType | Name of the Shift Type assigned | Day Shift |
| isRDOActivity | boolean 'true' if Activity == RDO | false |
| isDayActivity | boolean 'true' if Activity == Day | true |
| isNightActivity | boolean 'true' if Activity == Night | false |
| isResourceAllocated | boolean 'true' if Resource is not null | true |
### Related Objects
The below are objects relating to the Roster Position Instance, such as the Position or Resource.
These keys cannot be used with External Roster Position Instances
**RosterPosition**
| **Key** | **Value** | **Sample Output** |
| --- | --- | --- |
| RosterPosition.Id | Guid of the Roster Position | 5bbd72cd-aa25-ec11-b6e6-00224811991a |
| RosterPosition.DaysInAdvance | Numberical Value for days in advance | 45 |
| RosterPosition.Name | Name of the Position | Position 002 |
| RosterPosition.Quantity | Numerical Value for Quantity | 1 |
| RosterPosition.PositionStartDate | Start Date of the Position | 2021-10-01T00:00:00Z |
| RosterPosition.PositionEndDate | End Date of the Position | 2021-11-28T00:00:00Z |
| RosterPosition.DefaultResource.name | Name of the Default Resource | Contact 002 |
| RosterPosition.DefaultResource.bookeableresourceid | GUID of the Default Resource | b791326b-a925-ec11-b6e6-000d3a6ab617 |
| RosterPosition.Pattern.name | Name of the Roster Pattern | RosterValidation: Single Day Only |
| RosterPosition.Pattern.vel_rosterpatternid | GUID of the Roster Pattern | 5684b928-aa25-ec11-b6e6-002248112348 |
**Resource**
| **Key** | **Value** | **Sample Output** |
| --- | --- | --- |
| name | Name of the Resource | Contact 002 |
| bookableresourceid | GUID of the Resource | b791326b-a925-ec11-b6e6-000d3a6ab617 |
| resourcetype | Numerical value representing Resource Type | 2 |
| resourcetypename | Label value representing Resource Type | Contact |
| timezone | Numerical value for Time Zone Code | 225 |
| PositionId | GUID of the Roster Position | 5bbd72cd-aa25-ec11-b6e6-00224811991a |
| PositionAllocationId | GUID of the Roster Allocation | b2026bd3-aa25-ec11-b6e6-00224811991a |
**PositionAllocation**
| **Key** | **Value** | **Sample Output** |
| --- | --- | --- |
| Id | GUID of the Position Allocation | b2026bd3-aa25-ec11-b6e6-00224811991a |
| Index | Numeric value for Order Index | 1 |
| Name | Name of the Roster Allocation | Position 002 1 |
| PositionId | GUID of the Postion | 5bbd72cd-aa25-ec11-b6e6-00224811991a |
| ResourceId | GUID or the Resource | b791326b-a925-ec11-b6e6-000d3a6ab617 |
| RosterId | GUID of the Roster | 851baecf-a925-ec11-b6e6-002248112348 |
| Resource.name | Name of the Resource | Contact 002 |
| Resource.bookableresourceid | GUID of the Resource | b791326b-a925-ec11-b6e6-000d3a6ab617 |
| Resource.resourcetype | Numerical Value of the Resource Type | 2 |
| Resource.resourcetypename | String Value of the Resource Type | Contact |
| Resource.timezone | Numerical Value of the Resources Time Zone Code | 225 |
| Resource.PositionId | GUID of the Position | 5bbd72cd-aa25-ec11-b6e6-00224811991a |
| Resource.PositionAllocationId | GUID of the Position Allocation | b2026bd3-aa25-ec11-b6e6-00224811991a |
| Resource.CustomFields | Specific to the Custom Field used | |