public class ExecuteExtractionSchedulable extends AbstractStaticSchedulable
Schedulable job which execute an extractionAbstractStaticSchedulable.SchedulableParameterParser| Modifier and Type | Field and Description |
|---|---|
private I18nUtils |
_i18nUtils |
private JSONUtils |
_jsonUtils |
private String |
_mailFrom |
private SourceResolver |
_sourceResolver |
static String |
DEFINITION_FILE_PATH_KEY
The key for the extraction definition file
|
private static String |
EXTRACTION_DIR_NAME |
static String |
FORMAT_KEY
The key for the format
|
private static String |
PDF_FORMAT_PARAM_VALUE |
private static String |
PDF_FORMAT_SUFFIX |
static String |
RECIPIENT_KEY
The key for the recipient
|
private static DateTimeFormatter |
RESULT_FILE_NAME_DATE_TIME_FORMATTER |
static String |
VARIABLES_KEY
The key for the variables values
|
private static String |
XML_FORMAT_SUFFIX |
static String |
XSLT_FILE_PATH_KEY
The key for the stylesheet
|
_acceptConcurrentExecution, _context, _description, _iconGlyph, _iconLarge, _iconMedium, _iconSmall, _id, _label, _parameters, _pluginName, _private, _smanager| Constructor and Description |
|---|
ExecuteExtractionSchedulable() |
| Modifier and Type | Method and Description |
|---|---|
private String |
_getExtractionParameters(JobDataMap jobDataMap,
String definitionFilePath) |
private String |
_getFailureMailBody(String definitionFileName,
String errorMessage) |
private String |
_getMailSubject() |
private String |
_getResultFileName(String definitionFilePath,
String format) |
private String |
_getSuccessMailBody(String definitionFileName) |
private void |
_sendMail(String recipient,
String body) |
void |
execute(JobExecutionContext context)
The action to perform when a trigger is fired.
|
void |
service(ServiceManager manager) |
acceptConcurrentExecution, configure, contextualize, getDescription, getIconGlyph, getIconLarge, getIconMedium, getIconSmall, getId, getLabel, getParameters, isPrivate, setPluginInfogetLogger, setLoggerpublic static final String DEFINITION_FILE_PATH_KEY
public static final String VARIABLES_KEY
public static final String RECIPIENT_KEY
public static final String FORMAT_KEY
public static final String XSLT_FILE_PATH_KEY
private static final String EXTRACTION_DIR_NAME
private static final String PDF_FORMAT_PARAM_VALUE
private static final String XML_FORMAT_SUFFIX
private static final String PDF_FORMAT_SUFFIX
private static final DateTimeFormatter RESULT_FILE_NAME_DATE_TIME_FORMATTER
private JSONUtils _jsonUtils
private SourceResolver _sourceResolver
private I18nUtils _i18nUtils
public ExecuteExtractionSchedulable()
public void service(ServiceManager manager) throws ServiceException
service in interface Serviceableservice in class AbstractStaticSchedulableServiceExceptionpublic void execute(JobExecutionContext context) throws Exception
Schedulableexecute in interface Schedulableexecute in class AbstractStaticSchedulablecontext - the contextException - if an error occuredprivate String _getExtractionParameters(JobDataMap jobDataMap, String definitionFilePath)
private String _getResultFileName(String definitionFilePath, String format)
private String _getSuccessMailBody(String definitionFileName)
private String _getFailureMailBody(String definitionFileName, String errorMessage)
private String _getMailSubject()