Class ExecuteExtractionRunnableHelper
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.extraction.execution.ExecuteExtractionRunnableHelper
- All Implemented Interfaces:
LogEnabled,Component,Serviceable
public class ExecuteExtractionRunnableHelper
extends AbstractLogEnabled
implements Component, Serviceable
Helper for
Runnable executing an extraction-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteRunnableJob(String definitionFilePath) Remove the scheduled task of extraction execution of the given fileexecuteExtraction(String definitionFilePath, Map<String, Object> variables, String recipient, String pipelineId) Execute the extractionvoidservice(ServiceManager manager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
Avalon Role
-
-
Constructor Details
-
ExecuteExtractionRunnableHelper
public ExecuteExtractionRunnableHelper()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
executeExtraction
public Map<String,Object> executeExtraction(String definitionFilePath, Map<String, Object> variables, String recipient, String pipelineId) Execute the extraction- Parameters:
definitionFilePath- The extraction definition file pathvariables- clauses variables and optional columnsrecipient- An email will be sent at this address when the extraction is completepipelineId- The id of the extraction pipeline- Returns:
- a Map with error if one occurs
-
deleteRunnableJob
Remove the scheduled task of extraction execution of the given file- Parameters:
definitionFilePath- The extraction definition file path
-