Class BTTrainingAgendaAffinity
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.teamsuggestion.task.BTTrainingTeamSuggestion
overit.geocallapp.wfm.ai.bl.agendaaffinity.task.BTTrainingAgendaAffinity
- All Implemented Interfaces:
Serializable,Tool
- Direct Known Subclasses:
BTTestTrainingAA
Task to call a training configuration algorithm for agenda affinity.
- Since:
- 9.3
- See Also:
- GCApi:
- task
-
Field Summary
FieldsFields inherited from class overit.geocallapp.wfm.ai.bl.teamsuggestion.task.BTTrainingTeamSuggestion
ocFields 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 TypeMethodDescriptionbuildExperienceCsv(Date extractionStartDate, PoolKit pk) Build the csv with the teams experiences from the first wo date to now.protected FilebuildFileToTransfer(PoolKit poolKit) buildResourcesCsv(Date extractionStartDate, PoolKit poolKit) Build the csv with the (single) resource data.buildTeamsCsv(Date extractionStartDate, PoolKit pk) Build the csv with the workorder teams data.buildWorkOrdersCsv(DBView workOrders, Date extractionStartDate) Build the csv with the work orders data.tech.tablesaw.api.ColumnType[]getColumnTypes(String xmlPath) This method create an array of column types given a xml format file.protected StringgetPathFromAgorithm(Long algorithm) getWorkOrders(Date initialExtractionDate, PoolKit poolKit) Get the list of workOrders to elaborate.protected voidupdateExperience(Date startDate, PoolKit poolKit) Methods inherited from class overit.geocallapp.wfm.ai.bl.teamsuggestion.task.BTTrainingTeamSuggestion
cleanUselessExperiences, resetExperiencesTableMethods inherited from class overit.geocallapp.wfm.ai.bl.processing.task.BTBasicTraining
checkConfiguration, elaborateTask, getAwsUploadPath, getLogValidityDays, getMatchingFilePath, getReports, 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
-
AGENDA_LENGTH_MULTIPLIER
protected static final int AGENDA_LENGTH_MULTIPLIER- See Also:
-
LOG
-
-
Constructor Details
-
BTTrainingAgendaAffinity
public BTTrainingAgendaAffinity()
-
-
Method Details
-
buildFileToTransfer
- Overrides:
buildFileToTransferin classBTTrainingTeamSuggestion- Throws:
DAExceptionDAValidateException
-
getColumnTypes
This method create an array of column types given a xml format file.- Parameters:
xmlPath- the xml path- Returns:
- the column types
-
buildExperienceCsv
public File buildExperienceCsv(Date extractionStartDate, PoolKit pk) throws DAException, DAValidateException Build the csv with the teams experiences from the first wo date to now.- Overrides:
buildExperienceCsvin classBTTrainingTeamSuggestion- Parameters:
extractionStartDate- the extraction start datepk- the pk- Returns:
- the file
- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
buildWorkOrdersCsv
Build the csv with the work orders data.- Overrides:
buildWorkOrdersCsvin classBTTrainingTeamSuggestion- Parameters:
workOrders- the work ordersextractionStartDate- the extraction start date- Returns:
- the file
- Throws:
DAException- the DA exception
-
buildTeamsCsv
public File buildTeamsCsv(Date extractionStartDate, PoolKit pk) throws DAException, DAValidateException Build the csv with the workorder teams data.- Overrides:
buildTeamsCsvin classBTTrainingTeamSuggestion- Parameters:
extractionStartDate- the extraction start datepk- the pk- Returns:
- the file
- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
buildResourcesCsv
public File buildResourcesCsv(Date extractionStartDate, PoolKit poolKit) throws DAException, DAValidateException Build the csv with the (single) resource data.- Overrides:
buildResourcesCsvin classBTTrainingTeamSuggestion- Parameters:
extractionStartDate- the extraction start datepoolKit- the pool kit- Returns:
- the file
- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
updateExperience
protected void updateExperience(Date startDate, PoolKit poolKit) throws DAValidateException, DAException - Overrides:
updateExperiencein classBTTrainingTeamSuggestion- Throws:
DAValidateExceptionDAException
-
getWorkOrders
public DBView getWorkOrders(Date initialExtractionDate, PoolKit poolKit) throws DAValidateException, DAException Get the list of workOrders to elaborate.- Overrides:
getWorkOrdersin classBTTrainingTeamSuggestion- Parameters:
initialExtractionDate- the initial extraction datepoolKit- the pool kit- Returns:
- the work orders
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
getPathFromAgorithm
- Overrides:
getPathFromAgorithmin classBTTrainingTeamSuggestion
-