Class BTMaterialItemLoad
java.lang.Object
overit.geocall.bl.BusinessTask<MaterialItemLoadEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<MaterialItemLoadEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<MaterialItemLoadEvent>
overit.geocallapp.wfm.materials.bl.item.task.BTMaterialItemLoad
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(MaterialItemLoadEvent.class)
public class BTMaterialItemLoad
extends ValidPermissionBusinessTask<MaterialItemLoadEvent>
Business task in order to load a
When the
BOMaterialItem. When the
MaterialItemLoadEvent is launched
the BT notices the call and loads the BOMaterialItem 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(MaterialItemLoadEvent event, PoolKit pk) Starting from the given id, it loads the correspondingBOMaterialItemand writes it into the event journal.booleanChecks if the execution is execution.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
-
BTMaterialItemLoad
public BTMaterialItemLoad()
-
-
Method Details
-
execute
protected void execute(MaterialItemLoadEvent event, PoolKit pk) throws DAException, DAValidateException Starting from the given id, it loads the correspondingBOMaterialItemand writes it into the event journal.- Specified by:
executein classValidExecutionBusinessTask<MaterialItemLoadEvent>- Parameters:
event- theMaterialItemLoadEventpk- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
isValidExecution
public boolean isValidExecution()Checks if the execution is execution.- Returns:
- true, if successful
-