Class BTCalculateExperience
java.lang.Object
overit.geocall.bl.BusinessTask<CalculateExperienceEvent>
overit.geocallapp.wfm.ai.bl.teamexperience.task.BTCalculateExperience
- All Implemented Interfaces:
Serializable,Tool
- Direct Known Subclasses:
BTCalculateExperienceAA,BTCalculateTeamSuggestionExperience
Task for calculate team experiences from a specified date to today
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BOConfParamsHistoryprotected Dateprotected HashMap<ExperienceKey, ExperienceData> protected HashMap<ExperienceKey, ExperienceData> protected Dateprotected Dateprotected Longstatic final Longstatic final Longprotected Exception -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(CalculateExperienceEvent event, PoolKit pk) Implements this method to write the specific task logic to handle the input parameter.protected voidbuildMapsFromDB(HashGetter experience) protected voidprotected voidprotected voidelaborateExperience(HashGetter experience) protected voidprotected abstract Longprotected abstract Longprotected voidprepareQueryFilters(boolean forFirstDay) protected voidsaveExperienceData(Date refrenceDate, PoolKit pk) protected voidupdateExperienceMaps(String resourceOrTeam, HashGetter experience) protected voidMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Field Details
-
minWorkOrderDate
-
maxDate
-
configuration
-
experienceMap
-
experienceGlobalMap
-
currentDate
-
MODE_COMPLETE
-
MODE_INCREMENTAL
-
mode
-
occurredException
-
-
Constructor Details
-
BTCalculateExperience
public BTCalculateExperience()
-
-
Method Details
-
getSourceAlgorithm
-
getAccountingTrainingPeriod
-
body
protected void body(CalculateExperienceEvent event, PoolKit pk) throws DAException, DAValidateException Description copied from class:BusinessTaskImplements this method to write the specific task logic to handle the input parameter.- Specified by:
bodyin classBusinessTask<CalculateExperienceEvent>- Parameters:
event- the object upon which the task will works onpk- the poolkit containing the reference to the database connection that can be used- Throws:
DAException- in case of database errorDAValidateException- in case of database validation error
-
createDataForFirstDate
- Throws:
DAValidateExceptionDAException
-
prepareQueryFilters
protected HashMap<String,Object> prepareQueryFilters(boolean forFirstDay) throws DAValidateException - Throws:
DAValidateException
-
elaborateExperience
-
updateExperienceMaps
-
createDataUntilNow
- Throws:
DAValidateExceptionDAException
-
loadLastExperienceValues
- Throws:
DAExceptionDAValidateException
-
saveExperienceData
protected void saveExperienceData(Date refrenceDate, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
writeOnDB
protected void writeOnDB(List<Map<String, Object>> list, PoolKit pk) throws DAException, DAValidateException- Throws:
DAExceptionDAValidateException
-
buildMapsFromDB
-
evaluateException
- Throws:
DAExceptionDAValidateException
-