Class BTTrainingTeamSuggestion
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
- All Implemented Interfaces:
Serializable,Tool
- Direct Known Subclasses:
BTTestTrainingTeamSuggestion,BTTrainingAgendaAffinity
This class has the methods for training task for algorithm Team Suggestion.
- Since:
- 9.2
- 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 TypeMethodDescriptionbuildExperienceCsv(Date extractionStartDate, PoolKit pk) Build the csv with the teams experiences from the first wo date to now.protected FilebuildResourcesCsv(Date extractionStartDate, PoolKit pk) 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 workorders data.protected voidDelete all the experience records for the current elaboration with data < yesterday.protected StringgetPathFromAgorithm(Long algorithm) getWorkOrders(Date initialExtractionDate, PoolKit pk) Get the list of workOrders to elaborate.protected voidDelete all the experience records for the current configuration if exists.protected voidupdateExperience(Date startDate, PoolKit pk) Methods 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
-
oc
-
-
Constructor Details
-
BTTrainingTeamSuggestion
public BTTrainingTeamSuggestion()
-
-
Method Details
-
buildFileToTransfer
- Specified by:
buildFileToTransferin classBTBasicTraining- Throws:
DAExceptionDAValidateException
-
updateExperience
- Throws:
DAValidateExceptionDAException
-
getWorkOrders
public DBView getWorkOrders(Date initialExtractionDate, PoolKit pk) throws DAValidateException, DAException Get the list of workOrders to elaborate.- Parameters:
initialExtractionDate- the initial extraction datepk- the pk- Returns:
- the work orders
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
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.- 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 workorders data.- Parameters:
workOrders- the work ordersextractionStartDate- the extraction start date- Returns:
- the file
- Throws:
DAException- the DA exception
-
buildResourcesCsv
public File buildResourcesCsv(Date extractionStartDate, PoolKit pk) throws DAException, DAValidateException Build the csv with the (single) resource data.- Parameters:
extractionStartDate- the extraction start datepk- the pk- Returns:
- the file
- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
buildTeamsCsv
public File buildTeamsCsv(Date extractionStartDate, PoolKit pk) throws DAException, DAValidateException Build the csv with the workorder teams data.- Parameters:
extractionStartDate- the extraction start datepk- the pk- Returns:
- the file
- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
getPathFromAgorithm
- Specified by:
getPathFromAgorithmin classBTBasicTraining
-
cleanUselessExperiences
Delete all the experience records for the current elaboration with data < yesterday.- Parameters:
pk- the pk- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
resetExperiencesTable
Delete all the experience records for the current configuration if exists.- Parameters:
pk- the pk- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-