pse.AsyncMatchJobCleanupCallableglobal without sharing class AsyncMatchJobCleanupCallable implements Callable asist-ignore-begin:[ApexClassWithoutSharing] The pse.AsyncMatchJobCleanupCallable is a callable solely concerned with ensuring the data integrity of the Resource_Match_Process__c and Resource_Match_Result__c objects. Once the wider async resource matching process has run it will create instances of both of these objects which will go stale over time. This callable is run to delete stale instances of these objects to avoid accumulating redundant artifacts. So with the above in mind, the callable is marked as without sharing so it can effectively maintain all Resource_Match_Process__c and Resource_Match_Result__c objects in the org. Methods
AsyncMatchJobCleanupCallableglobal AsyncMatchJobCleanupCallable() callglobal Object call(String asyncJobRecordId, Map<String, Object> args) pse.AsyncMatchJobCleanupCallable.FinalizeCallableglobal with sharing class FinalizeCallable implements Callable MethodsFinalizeCallableglobal FinalizeCallable() callglobal Object call(String asyncJobRecordId, Map<String, Object> params) |