AdvancedGapMatrix Class

Represents a matrix of service resource IDs and graded time slots. An instance of this class is used only within the context of the results returned by the GradeSlotsService class.

Namespace

FSL

Example

For an example of how to parse the class results, see GradeSlotsService Class.

AdvancedGapMatrix Properties

AdvancedGapMatrix contains the following properties.

FSLOperationId

This field only applies to scheduling service appointments that don’t use Enhanced Scheduling and Optimization (ESO). Populated when scheduling a chain of two service appointments with scheduling dependencies, also known as complex work. An asynchronous call is made to schedule both service appointments in the chain. This property contains the FSL__FSL_Operation__c ID.

Signature

public Id FSLOperationId {get; set;}

Property Value

Type: Id

Usage

To learn more about the complex work feature, see Create Scheduling Dependencies Between Service Appointments.

partialResults

Relevant only when Limit Apex Operations is enabled in the Field Service Admin app. If the processing time of the ScheduleService is about to exceed the maximum CPU limits, it returns the results that were already calculated and halts the process. This list contains the details of the partial, processed results. All other parameters are the same.

Signature

public List<FSL.PartialResultsInfo> partialResults {get; set;}

Property Value

Type: List<FSL.PartialResultsInfo>

resourceIDToScheduleData

A map that returns service resource IDs and their corresponding available slots stored in the ResourceScheduleData class.

Signature

public Map<Id, FSL.ResourceScheduleData> resourceIDToScheduleData {get; set;}

Property Value

Type: Map<Id, FSL.ResourceScheduleData>

Service

The service appointment for which the AdvancedGapMatrix was run.

Signature

public Service {get; set;}

Property Value

Type: ServiceAppointment