Class BTMaterialSearch
java.lang.Object
overit.geocall.bl.BusinessTask<MaterialSearchEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<MaterialSearchEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<MaterialSearchEvent>
overit.geocallapp.wfm.core.bl.material.task.BTMaterialSearch
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(MaterialSearchEvent.class)
public class BTMaterialSearch
extends ValidPermissionBusinessTask<MaterialSearchEvent>
Business task in order to search a
When the
BOMaterial. When the
MaterialSearchEvent is launched
the BT notices the call and searches the BOMaterial basing on the event's input. - Since:
- 13.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(MaterialSearchEvent event, PoolKit pk) Starting from the givenMaterialSearchFilter, it searches the corresponding list ofBOMaterialand presents them as aPageResponsewhich is then written 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
-
BTMaterialSearch
public BTMaterialSearch()
-
-
Method Details
-
execute
protected void execute(MaterialSearchEvent event, PoolKit pk) throws DAException, DAValidateException Starting from the givenMaterialSearchFilter, it searches the corresponding list ofBOMaterialand presents them as aPageResponsewhich is then written into the event journal.- Specified by:
executein classValidExecutionBusinessTask<MaterialSearchEvent>- Parameters:
event- theMaterialSearchEventpk- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
isValidExecution
public boolean isValidExecution()Checks if the execution is valid.- Returns:
- true, if successful
-