pse.TopMatchAllocatorCallableglobal without sharing class TopMatchAllocatorCallable implements Callable asist-ignore-begin:[ApexClassWithoutSharing] This class is invoked via the Async API Framework. Currently, the framework does not allow this to be a USER_MODE job, as it is dependent on other async jobs completing before it is invoked. Since it is a SYSTEM_MODE job, it does not necessarily run as the user who kicked off the process. We therefore can't check sharing/permissions/FLS as we are not guaranteed to have context of the relevant user. Regardless, this isn't a persona driven callable as it is mainly concerned with selecting a single matching resource on Resource_Match_Result__c records, which are generated in a sharing context (ResourceMatcherCallable). So with the above in mind, this callable should not enforce sharing as a system process. Methods
TopMatchAllocatorCallableglobal TopMatchAllocatorCallable() callglobal Object call(String asyncJobRecordId, Map<String, Object> args) pse.TopMatchAllocatorCallable.FinalizeCallableglobal with sharing class FinalizeCallable implements Callable MethodsFinalizeCallableglobal FinalizeCallable() callglobal Object call(String asyncJobRecordId, Map<String, Object> params) |