Class BTDashboardMaterialsPredictionLoad
java.lang.Object
overit.geocall.bl.BusinessTask<DashboardMaterialsPredictionLoadEvent>
overit.geocallapp.wfm.ai.ux.predictivepartsmanagement.dashboard.task.BTDashboardMaterialsPredictionLoad
- All Implemented Interfaces:
Serializable,Tool
@Event(DashboardMaterialsPredictionLoadEvent.class)
public class BTDashboardMaterialsPredictionLoad
extends BusinessTask<DashboardMaterialsPredictionLoadEvent>
- Since:
- 11.0
- See Also:
- GCApi:
- task
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(DashboardMaterialsPredictionLoadEvent event, PoolKit pk) Implements this method to write the specific task logic to handle the input parameter.protected voidcalculateOperativeFields(DBView dbRecords, Long groupingType) protected voidchangeTimesToHours(DBView dbRecords) protected DBViewgetDBRecord(HashGetter filters, Long group, LongSet seriesToCompute, PoolKit pk) protected DBViewgetGroupedData(DBView dbRecords, Long chartGroup, Long groupingType) protected HashGettermergeRecords(DBView originalDbv, Long groupingType) Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Field Details
-
OPERATION_PLANNED_MATERIALS
- See Also:
-
OPERATION_ACCOUNTED_MATERIALS
- See Also:
-
OPERATION_PREDICTED_MATERIALS_LOW
- See Also:
-
OPERATION_PREDICTED_MATERIALS_UPPER
- See Also:
-
CUMUL_PLANNED
- See Also:
-
CUMUL_PREDICTED
- See Also:
-
TOTAL_ACCOUNTED
- See Also:
-
NUMBER_OF_ROWS
- See Also:
-
-
Constructor Details
-
BTDashboardMaterialsPredictionLoad
public BTDashboardMaterialsPredictionLoad()
-
-
Method Details
-
body
protected void body(DashboardMaterialsPredictionLoadEvent 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<DashboardMaterialsPredictionLoadEvent>- 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
-
getDBRecord
protected DBView getDBRecord(HashGetter filters, Long group, LongSet seriesToCompute, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
getGroupedData
- Parameters:
dbRecords- is the raw db datachartGroup- is the chart groupinggroupingType- is the type of data showed (absolute, delta, average)- Returns:
-
calculateOperativeFields
-
mergeRecords
-
changeTimesToHours
-