Skip to content

An abstraction for asynchronous Apex implementations in Salesforce

Notifications You must be signed in to change notification settings

redteal/apex-async

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

apex-async

deploy to salesforce Build Status Coverage Status

An abstraction for asynchronous Apex implementations in Salesforce.

architecture uml

Example

public class FooAsyncTask implements RT_IAsyncTask {
	public void execute(AsyncRequest__c asyncRequest, Map<String, Object> params) {
		System.debug(params.get('i'));
	}
}
List<AsyncRequest__c> reqs = new List<AsyncRequest__c>();
for (Integer i = 0; i < 50; i++) {
	Map<String, Object> params = new Map<String, Object> {'i' => i};
	reqs.add(RT_AsyncRequestService.create(FooAsyncTask.class, params));
}
insert reqs;

Insertion of AsyncRequest__c triggers the task to be queued for processing.

About

An abstraction for asynchronous Apex implementations in Salesforce

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages