pse.SchedulingStrategyServiceglobal without sharing class SchedulingStrategyService
This class contains a Scheduling API implementation for each type of Scheduling Strategy. There are inner classes for each type of Scheduling Strategy which have a method for the creation of schedules associated with assignments or resource requests. This class contains deprecated items. Methods
prepareScheduleglobal pse.SchedulingStrategyService.ProposedScheduleDetail prepareSchedule(pse.SchedulingStrategyService.ScheduleDetail scheduleDetail) This method calculates a Schedule and ScheduleExceptions for the provided ScheduleDetail parameters. Input Parameters
Return ValueThis service returns ProposedScheduleDetail object. Sample Code
prepareSchedulesglobal List<pse.SchedulingStrategyService.ProposedScheduleDetail> prepareSchedules(List<pse.SchedulingStrategyService.ScheduleDetail> scheduleDetails) This method calculates Schedules and ScheduleExceptions for the provided ScheduleDetails parameter. Input Parameters
Return ValueThis service returns a List of ProposedScheduleDetail objects. Sample Code
rescheduleglobal Boolean reschedule(List<pse.SchedulingStrategyService.RescheduleWrapper> rescheduleWrapperList) A global method to reschedule the provided list of schedules with a new proposed corresponding scheduling strategy in rescheduleWrapper. Input Parameters
Exceptions Thrown
Return ValueThis service returns True if the Schedule updated then completed successfully. Sample Code
splitRescheduleglobal List<pse__Assignment__c> splitReschedule(List<pse.SchedulingStrategyService.SplitRescheduleWrapper> splitRescheduleWrapperList) A global method to split and reschedule the schedules.
Input Parameters
Exceptions Thrown
Return ValueThis service returns a list of newly created assignments. Sample Code
DeprecatedThe following items are deprecated and not supported for use. We recommend that you stop using these items to avoid exceptions. Methods
rescheduleDeprecated: Use reschedule(List global Boolean reschedule(pse.SchedulingStrategyService.RescheduleWrapper request) This global method reschedules a Schedule with a new proposed scheduling strategy in rescheduleWrapper. Input Parameters
Return ValueThis service returns True if the Schedule updated then completed successfully, False otherwise. splitRescheduleDeprecated: Use splitReschedule(List global pse__Assignment__c splitReschedule(pse.SchedulingStrategyService.SplitRescheduleWrapper request) A global method to split and reschedule the Schedule. Input Parameters
Return ValueThis service returns an assignment object. pse.SchedulingStrategyService.ScheduleDetailFieldglobal inherited sharing class ScheduleDetailField The structure for Metadata information related to the ScheduleDetail field. Properties
MethodsScheduleDetailFieldglobal ScheduleDetailField() pse.SchedulingStrategyService.SplitRescheduleWrapperglobal inherited sharing class SplitRescheduleWrapper The structure for Split Reschedule related input values that are common for all strategy types. Properties
pse.SchedulingStrategyService.RescheduleWrapperglobal inherited sharing class RescheduleWrapper The structure for Reschedule related input values that are common for all strategy types. Properties
pse.SchedulingStrategyService.ScheduleDetailglobal abstract inherited sharing class ScheduleDetail The structure for Schedule related input values that are common for all strategy types. Properties
Methods
resolveImplementationglobal abstract Type resolveImplementation() An abstract method to resolve the Schedule class dynamically at runtime. getFieldglobal virtual Object getField() getFieldglobal virtual Object getField(String key) setFieldglobal virtual void setField(String key, Object value) enumerateFieldsglobal virtual Map<String, pse.SchedulingStrategyService.ScheduleDetailField> enumerateFields() pse.SchedulingStrategyService.EndDateLevelScheduleDetailglobal inherited sharing class EndDateLevelScheduleDetail extends ScheduleDetail The structure for Schedule related input values that will be used in the "EndDateLevelSchedule" schedule Strategy. This class extends pse.SchedulingStrategyService.ScheduleDetail Properties
Methods
resolveImplementationglobal override Type resolveImplementation() enumerateFieldsglobal override virtual Map<String, pse.SchedulingStrategyService.ScheduleDetailField> enumerateFields() pse.SchedulingStrategyService.IgnoreAvailabilityScheduleDetailglobal inherited sharing class IgnoreAvailabilityScheduleDetail extends ScheduleDetail The structure for Schedule related input values that will be used in "EndDateIgnoreAvailability" Schedule Strategy types. This class extends pse.SchedulingStrategyService.ScheduleDetail Properties
Methods
resolveImplementationglobal override Type resolveImplementation() enumerateFieldsglobal override virtual Map<String, pse.SchedulingStrategyService.ScheduleDetailField> enumerateFields() pse.SchedulingStrategyService.AdjustHoursScheduleDetailglobal inherited sharing class AdjustHoursScheduleDetail extends ScheduleDetail The structure for Schedule related input values that will be used in "AdjustHours" Strategy types. This class extends pse.SchedulingStrategyService.ScheduleDetail Properties
Methods
resolveImplementationglobal override Type resolveImplementation() enumerateFieldsglobal override virtual Map<String, pse.SchedulingStrategyService.ScheduleDetailField> enumerateFields() pse.SchedulingStrategyService.PercentAllocationScheduleDetailglobal inherited sharing class PercentAllocationScheduleDetail extends ScheduleDetail The structure for Schedule related input values that will be used in "PercentAllocation" Strategy types. This class extends pse.SchedulingStrategyService.ScheduleDetail Properties
Methods
resolveImplementationglobal override Type resolveImplementation() enumerateFieldsglobal override virtual Map<String, pse.SchedulingStrategyService.ScheduleDetailField> enumerateFields() pse.SchedulingStrategyService.CustomScheduleDetailglobal inherited sharing class CustomScheduleDetail extends ScheduleDetail The structure for Schedule related input values that will be used in "Custom" Strategy types. This class extends pse.SchedulingStrategyService.ScheduleDetail Properties
Methods
resolveImplementationglobal override Type resolveImplementation() enumerateFieldsglobal override virtual Map<String, pse.SchedulingStrategyService.ScheduleDetailField> enumerateFields() pse.SchedulingStrategyService.ZeroHourScheduleDetailglobal inherited sharing class ZeroHourScheduleDetail extends ScheduleDetail The structure for Schedule related input values that will be used in "ZeroHour" Strategy types. This class extends pse.SchedulingStrategyService.ScheduleDetail MethodsresolveImplementationglobal override Type resolveImplementation() pse.SchedulingStrategyService.SchedulePatternglobal inherited sharing class SchedulePattern The structure for input variables for Schedule creation using "Custom" strategy types. Properties
pse.SchedulingStrategyService.ProposedScheduleDetailglobal inherited sharing class ProposedScheduleDetail The structure for information returned in the output. It will contain the Schedule and ScheduleExceptions (related to Schedule_Exception__c PSA object) for that Schedule. Properties
pse.SchedulingStrategyService.PercentAllocationRowglobal inherited sharing class PercentAllocationRow The structure for the information (startDate, endDate, percentAllocated) related to each Percent Allocation Row. Properties
pse.SchedulingStrategyService.ISchedulingStrategyglobal interface ISchedulingStrategy Common interface for the different schedule calculations. MethodsprepareScheduleProposedScheduleDetail prepareSchedule(pse.SchedulingStrategyService.ScheduleDetail scheduleDetail) pse.SchedulingStrategyService.IBulkifySchedulingStrategyglobal interface IBulkifySchedulingStrategy Common interface for the different schedule calculations in bulk. This is newly created interface to avoid packaging failure as we cannont add new method in global interface. MethodsprepareSchedulesList<ProposedScheduleDetail> prepareSchedules(List<pse.SchedulingStrategyService.ScheduleDetail> scheduleDetails) |