Class BTMaterialHistoryLoad
java.lang.Object
overit.geocall.bl.BusinessTask<MaterialHistoryLoadEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<MaterialHistoryLoadEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<MaterialHistoryLoadEvent>
overit.geocallapp.wfm.materials.bl.material.history.task.BTMaterialHistoryLoad
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(MaterialHistoryLoadEvent.class)
public class BTMaterialHistoryLoad
extends ValidPermissionBusinessTask<MaterialHistoryLoadEvent>
Business task in order to load a
When the
BOMaterialHistory. When the
MaterialHistoryLoadEvent is launched the BT notices the call and loads the BOMaterialHistory
basing on the event's input. - Since:
- 17.0
- See Also:
- GCApi:
- task
-
Field Summary
Fields inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(MaterialHistoryLoadEvent event, PoolKit poolKit) Starting from the given id, it loads the correspondingBOMaterialHistoryand writes it into the event journal.booleanChecks if the execution is valid.Methods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
checkValidExecution, getException, throwExceptionIfInvalidMethods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask
body, getEventMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTMaterialHistoryLoad
public BTMaterialHistoryLoad()
-
-
Method Details
-
execute
protected void execute(MaterialHistoryLoadEvent event, PoolKit poolKit) throws DAException, DAValidateException Starting from the given id, it loads the correspondingBOMaterialHistoryand writes it into the event journal.- Specified by:
executein classValidExecutionBusinessTask<MaterialHistoryLoadEvent>- Parameters:
event- theMaterialHistoryLoadEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
isValidExecution
public boolean isValidExecution()Checks if the execution is valid.- Returns:
- true, if successful
-