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.

FSL

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

AdvancedGapMatrix contains the following properties.

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.

public Id FSLOperationId {get; set;}

Type: Id

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

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.

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

Type: List<FSL.PartialResultsInfo>

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

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

Type: Map<Id, FSL.ResourceScheduleData>

The service appointment for which the AdvancedGapMatrix was run.

public Service {get; set;}

Type: ServiceAppointment