public interface ScheduledExecutionContext
Modifier and Type | Method and Description |
---|---|
void |
addExecutionInformation(String anInformation)
Adds an entry to the execution information report.
|
Repository |
getRepository()
Returns the EBX® repository.
|
Session |
getSession()
Returns the session associated with this execution.
|
Date |
getStartDate()
Returns the start date of the scheduled task execution.
|
String |
getTaskName()
Returns the name of the
ScheduledTask . |
void |
handleExecutionState()
Invoking this method gives the opportunity to intercept pauses, resumes, and interrupts
requested from EBX® administration.
|
void |
setExecutionInformation(String aReport)
Defines the execution information.
|
Repository getRepository()
Session getSession()
String getTaskName()
ScheduledTask
.Date getStartDate()
void handleExecutionState() throws ScheduledTaskInterruption
Pause or interrupt requests are only handled if the task permits such actions using the methods:
ScheduledTaskInterruption
- thrown to interrupt the current task, it should not be caught by the client
code.void addExecutionInformation(String anInformation)
This method must be used sparingly, since each invocation adds a new element to the aggregated list group persisted in the EBX® repository, and commits it.
void setExecutionInformation(String aReport)
First clears the report if it already contains entries.