Class ExecuteExtractionRunnableHelper

java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.extraction.execution.ExecuteExtractionRunnableHelper
All Implemented Interfaces:
LogEnabled, Component, Serviceable

Helper for Runnable executing an extraction
  • Field Details

    • ROLE

      public static final String ROLE
      Avalon Role
  • Constructor Details

  • Method Details

    • service

      public void service(ServiceManager manager) throws ServiceException
      Specified by:
      service in interface Serviceable
      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 path
      variables - clauses variables and optional columns
      recipient - An email will be sent at this address when the extraction is complete
      pipelineId - The id of the extraction pipeline
      Returns:
      a Map with error if one occurs
    • deleteRunnableJob

      public void deleteRunnableJob(String definitionFilePath)
      Remove the scheduled task of extraction execution of the given file
      Parameters:
      definitionFilePath - The extraction definition file path