public interface ERQSJobDescription
As a result, your EOs must implement this interface.
Notice that a ERQSJobDescription object is not considered as an EO if the method isEnterpriseObject
returns false
.
Modifier and Type | Method and Description |
---|---|
String |
classPath()
Object that will be instantiated by the scheduler to make its job.
|
String |
cronExpression()
The cron expression allows you to define a period where the job is triggered.
If the cron expression returns null, the job runs once immediately. |
NSTimestamp |
firstExecutionDate()
A getter that returns the first execution date of the job.
|
String |
group()
If group() return null or an empty string, Scheduler.DEFAULT_GROUP is used instead.
|
boolean |
isEnterpriseObject()
Very important: tells the supervisor and the listener if the current object is a EO.
|
String |
jobDescription()
The description is optional.
|
Map<String,Object> |
jobInfos()
jobInfos is used to pass information when the job will run.
|
NSTimestamp |
lastExecutionDate()
A getter that returns the last execution date of the job.
|
String |
name()
The name and the group are very important because the scheduler retrieve jobs based on the name and group.
|
NSArray<String> |
recipients(boolean executionSucceeded)
If you set up the listener to send email when the job is done, recipient() will be used to send emails.
|
void |
setFirstExecutionDate(NSTimestamp firstExecutionDate) |
void |
setLastExecutionDate(NSTimestamp lastExecutionDate) |
void |
setNextExecutionDate(NSTimestamp nextExecutionDate)
A setter to save the next execution date.
|
String name()
It can't be null.
String group()
String cronExpression()
String jobDescription()
String classPath()
NSArray<String> recipients(boolean executionSucceeded)
Depending on the value of executionSucceeded, you can return a different list of recipients.
executionSucceeded
- true
if the job ran successfully.boolean isEnterpriseObject()
true
if it's an EObuildTriggerForJob
NSTimestamp lastExecutionDate()
void setLastExecutionDate(NSTimestamp lastExecutionDate)
NSTimestamp firstExecutionDate()
void setFirstExecutionDate(NSTimestamp firstExecutionDate)
void setNextExecutionDate(NSTimestamp nextExecutionDate)
Notice that there is no getter because the framework doesn't need it to run. But it's a good idea to code it.
nextExecutionDate
- Copyright © 2002 – 2024 Project Wonder.