Class BTTrainingPPartsManagement
java.lang.Object
overit.geocall.bl.BusinessTask<Void>
overit.geocallapp.wfm.ai.bl.processing.task.BTBasicAIProcess
overit.geocallapp.wfm.ai.bl.processing.task.BTBasicTraining
overit.geocallapp.wfm.ai.bl.predictivepartsmanagement.task.BTTrainingPPartsManagement
- All Implemented Interfaces:
Serializable,Tool
- Direct Known Subclasses:
BTTestTrainingPPM
Task to call a training configuration algorithm for Predictive
Parts Management.
- Since:
- 11.0
- See Also:
- GCApi:
- task
-
Field Summary
FieldsFields inherited from class overit.geocallapp.wfm.ai.bl.processing.task.BTBasicTraining
api, MAX_WAITING_TIME, modelClob, reportClob, reportFolder, sdf, WAITING_TIMEFields inherited from class overit.geocallapp.wfm.ai.bl.processing.task.BTBasicAIProcess
algorithmName, asyncQueueMode, configurationParamsHistory, elaborationHistory, factory, filesToDelete, headers, instanceType, modelName, resourcesFolder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddCsvToZip(File[] documents, ZipOutputStream zout, String folder) protected FilebuildInterventionsCsv(DBView interventions, Date extractionStartDate) Build the csv with the workorders data.buildSkillsCsv(PoolKit pk, Date extractionStartDate) Build the csv with the teams experiences from the first wo date to now.getInterventions(Date initialExtractionDate, PoolKit pk) Get the list of interventions to elaborate.protected StringgetPathFromAgorithm(Long algorithm) protected TrainingReportsgetReports(File dir) Methods inherited from class overit.geocallapp.wfm.ai.bl.processing.task.BTBasicTraining
checkConfiguration, elaborateTask, getAwsUploadPath, getLogValidityDays, getMatchingFilePath, instantiateModelsApi, manageTrainingResults, promoteModelMethods inherited from class overit.geocallapp.wfm.ai.bl.processing.task.BTBasicAIProcess
body, buildHeaders, clearOldLogs, deleteFileS3, deleteTemporaryFiles, getAiConfiguration, getConfigurationParamsHistory, getElaborationHistory, getError, getJobName, getResourcesFolder, getTrainingType, isAsyncQueueMode, prepareDataForApi, setAiConfiguration, setAsyncQueueMode, setJobName, setResourcesFolder, setTrainingType, uploadFileS3, writeLogTableMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Field Details
-
oc
-
BOUND
-
-
Constructor Details
-
BTTrainingPPartsManagement
public BTTrainingPPartsManagement()
-
-
Method Details
-
buildFileToTransfer
- Specified by:
buildFileToTransferin classBTBasicTraining- Throws:
DAExceptionDAValidateException
-
getInterventions
public DBView getInterventions(Date initialExtractionDate, PoolKit pk) throws DAValidateException, DAException Get the list of interventions to elaborate.- Parameters:
initialExtractionDate- the initial extraction datepk- the pk- Returns:
- the interventions
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
buildInterventionsCsv
public File buildInterventionsCsv(DBView interventions, Date extractionStartDate) throws DAException Build the csv with the workorders data.- Parameters:
interventions- the interventionsextractionStartDate- the extraction start date- Returns:
- the file
- Throws:
DAException- the DA exception
-
buildSkillsCsv
public File buildSkillsCsv(PoolKit pk, Date extractionStartDate) throws DAException, DAValidateException Build the csv with the teams experiences from the first wo date to now.- Parameters:
pk- the pkextractionStartDate- the extraction start date- Returns:
- the file
- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
addCsvToZip
protected void addCsvToZip(File[] documents, ZipOutputStream zout, String folder) throws DAException - Throws:
DAException
-
getPathFromAgorithm
- Specified by:
getPathFromAgorithmin classBTBasicTraining
-
getReports
- Overrides:
getReportsin classBTBasicTraining- Throws:
IOExceptionDAValidateException
-