Class BTMobileWarehouseSchedulingResourceAssociation
java.lang.Object
overit.geocall.bl.BusinessTask<MobileWarehouseSchedulingResourceAssociationEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<MobileWarehouseSchedulingResourceAssociationEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<MobileWarehouseSchedulingResourceAssociationEvent>
overit.geocallapp.wfm.inventory.bl.task.BTInventoryManagement<MobileWarehouseSchedulingResourceAssociationEvent>
overit.geocallapp.wfm.inventory.bl.warehouse.mobile.task.BTMobileWarehouseSchedulingResourceAssociation
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(MobileWarehouseSchedulingResourceAssociationEvent.class)
public class BTMobileWarehouseSchedulingResourceAssociation
extends BTInventoryManagement<MobileWarehouseSchedulingResourceAssociationEvent>
Business task in order to associate a
BOSchedulingUser to a BOMobileWarehouse.
When the MobileWarehouseSchedulingResourceAssociationEvent is launched
the BT notices the call and create the association basing on the event's input. Required fields:
- Scheduling user id
Permission:
Error Code:
Codes.Inventory.SCHEDULING_RESOURCE_ALREADY_ASSOCIATED: Selected scheduling resource already associated.
- 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 voidAssociates theBOSchedulingUserto theBOMobileWarehouse.booleanChecks if is valid execution.protected voidvalidateUser(BOSchedulingUser schedulingUser, PoolKit pk) Checks if the currentBOSchedulingUseris already associated to aBOMobileWarehouse.Methods inherited from class overit.geocallapp.wfm.inventory.bl.task.BTInventoryManagement
checkValidExecutionMethods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
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
-
BTMobileWarehouseSchedulingResourceAssociation
public BTMobileWarehouseSchedulingResourceAssociation()
-
-
Method Details
-
execute
protected void execute(MobileWarehouseSchedulingResourceAssociationEvent event, PoolKit pk) throws DAException, DAValidateException Associates theBOSchedulingUserto theBOMobileWarehouse.- Specified by:
executein classValidExecutionBusinessTask<MobileWarehouseSchedulingResourceAssociationEvent>- Parameters:
event- theMobileWarehouseSchedulingResourceAssociationEventpk- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validateUser
protected void validateUser(BOSchedulingUser schedulingUser, PoolKit pk) throws DAValidateException, DAException Checks if the currentBOSchedulingUseris already associated to aBOMobileWarehouse.- Parameters:
schedulingUser- theBOSchedulingUserpk- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
isValidExecution
public boolean isValidExecution()Checks if is valid execution.- Returns:
- true, if successful
-