Class BTTimePredictionSupportFieldCalculation
java.lang.Object
overit.geocall.bl.BusinessTask<Void>
overit.geocallapp.wfm.ai.bl.duration.prediction.support.task.BTTimePredictionSupportFieldCalculation
- All Implemented Interfaces:
Serializable,Tool
Business task for calculate some duration values useful for time prediction dashboard and monitor
- Since:
- 9.2
- See Also:
- GCApi:
- task
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidImplements this method to write the specific task logic to handle the input parameter.protected voidcalculateInterventionsTotalTime(DBView interventions, PoolKit pk) protected voidcalculateSupportFields(DBView interventions, PoolKit pk) protected voiddeleteOperationCurrentRecords(Long operation, PoolKit pk) protected LonggetFirstPlanningDuration(DBView operationInterventions) protected Date[]getInterventionRangeDates(DBView interventions) protected LonggetOperationPredictedDuration(DBView operationInterventions, int row) protected DBViewprotected voidinsertOperationsInterventions(DBView operationInterventions, PoolKit pk) Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Field Details
-
INTERVENTION_ACCOUNTEDTIME
- See Also:
-
OPERATION_EXPECTEDDURATION
- See Also:
-
OPERATION_PREDICTEDDURATION
- See Also:
-
PLANNED_RESOURCE_PREDICTEDDURATION
- See Also:
-
STD
- See Also:
-
PREDICT_OP
- See Also:
-
PREDICT_RES
- See Also:
-
TOTAL_ACCOUNTED
- See Also:
-
NUMBER_OF_ROWS
- See Also:
-
daoTimePrediction
-
interventionsDurations
-
-
Constructor Details
-
BTTimePredictionSupportFieldCalculation
public BTTimePredictionSupportFieldCalculation()
-
-
Method Details
-
body
Description copied from class:BusinessTaskImplements this method to write the specific task logic to handle the input parameter.- Specified by:
bodyin classBusinessTask<Void>- 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
-
getWorkOrdersInterventions
- Throws:
DAExceptionDAValidateException
-
calculateSupportFields
protected void calculateSupportFields(DBView interventions, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
calculateInterventionsTotalTime
protected void calculateInterventionsTotalTime(DBView interventions, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
getInterventionRangeDates
-
deleteOperationCurrentRecords
protected void deleteOperationCurrentRecords(Long operation, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
insertOperationsInterventions
protected void insertOperationsInterventions(DBView operationInterventions, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
getOperationPredictedDuration
-
getFirstPlanningDuration
-