1
1
## Apex AsyncLinkable ![ Build] ( https://github.com/scolladon/apex-async-linkable/actions/workflows/main.yml/badge.svg ) [ ![ codecov] ( https://codecov.io/gh/scolladon/apex-async-linkable/branch/master/graph/badge.svg?token=DFHDV3OCIS )] ( https://codecov.io/gh/scolladon/apex-async-linkable )
2
2
3
- This library provides all the classes required to chain all kind of Async jobs.
3
+ This library provides all the classes required to chain all kind of async jobs in Apex .
4
4
5
5
## Installation
6
6
@@ -15,11 +15,11 @@ $ sfdx force:source:deploy -p chain/src/lib
15
15
2 . Respect the interface contract and override the ` job ` method.
16
16
_ ` start ` method must also be overridden for the BatchLink and ScheduleBatchLink class_
17
17
18
- The ` job ` method will contains your business logic. It can access the private attributes of your class ( and the protected ones of the base class) .
18
+ The ` job ` method will contain your business logic. It can then access the private attributes of your class and the protected ones of the base class.
19
19
20
- If you need some extra interface to make you're code work, it is up to you to add them (` Database.Stateful ` , ` Database.AllowsCallouts ` , etc).
20
+ If you need some extra interface to make your code work, it is up to you to add them (such as ` Database.Stateful ` , ` Database.AllowsCallouts ` , etc).
21
21
22
- You're ready to chain apex asynchronous process !
22
+ You're ready to chain apex asynchronous processes !
23
23
24
24
Example for Batchable:
25
25
@@ -42,7 +42,7 @@ public class BatchLink_EXAMPLE extends BatchLink {
42
42
}
43
43
```
44
44
45
- Example for Queue :
45
+ Example for Queueable :
46
46
47
47
``` apex
48
48
//Subclass QueueLink for example
@@ -57,7 +57,7 @@ public class QueueLink_EXAMPLE extends QueueLink {
57
57
}
58
58
```
59
59
60
- Example chaining ` BatchLink_EXAMPLE ` and ` QueueLink_EXAMPLE ` ;
60
+ Example chaining of a batch and queeuable instances:
61
61
62
62
``` apex
63
63
// Chain both and execute them
@@ -73,7 +73,7 @@ public class Service {
73
73
74
74
## Improvement
75
75
76
- Implement sub class allowing to handle BatchLink and ScheduleBatchLink with iterable in addition of QueryLocator\
76
+ Implement sub class allowing to handle BatchLink and ScheduleBatchLink with iterable in addition of QueryLocator.
77
77
78
78
## Versioning
79
79
0 commit comments