Class BTWorkOrderOperationCenterDeduction
java.lang.Object
overit.geocall.bl.BusinessTask<WorkOrderOperationCenterDeductionEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<WorkOrderOperationCenterDeductionEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<WorkOrderOperationCenterDeductionEvent>
overit.geocallapp.wfm.orchestrator.workorders.bl.operationcenter.task.BTWorkOrderOperationCenterDeduction
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(WorkOrderOperationCenterDeductionEvent.class)
public class BTWorkOrderOperationCenterDeduction
extends ValidPermissionBusinessTask<WorkOrderOperationCenterDeductionEvent>
Valid Permission Business task in order to deduce an
It calls all the deduction business logic tasks related to the
BOOperationCenter' s id
starting from a WorkOrderOperationCenterDeductionInput that has address id, work order type id and reference date It calls all the deduction business logic tasks related to the
BOWorkOrderTypeOperationCenterAssignmentCriteria- Since:
- 18.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(WorkOrderOperationCenterDeductionEvent event, PoolKit poolKit) Executes the actual business logic after validation has passed.getIntegrationService(PoolKit poolKit) Return theWorkOrdersIntegrationServiceused to access other domainsbooleanDetermines whether the current state is valid for execution.protected voidvalidateInput(WorkOrderOperationCenterDeductionInput input, PoolKit poolKit) Validates the data before performing any action that require the inputMethods 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
-
BTWorkOrderOperationCenterDeduction
public BTWorkOrderOperationCenterDeduction()
-
-
Method Details
-
execute
protected void execute(WorkOrderOperationCenterDeductionEvent event, PoolKit poolKit) throws DAException, DAValidateException Description copied from class:ValidExecutionBusinessTaskExecutes the actual business logic after validation has passed.- Specified by:
executein classValidExecutionBusinessTask<WorkOrderOperationCenterDeductionEvent>- Parameters:
event- the input event to processpoolKit- thePoolKit- Throws:
DAException- if a data access error occurs during executionDAValidateException- if validation fails during execution
-
validateInput
protected void validateInput(WorkOrderOperationCenterDeductionInput input, PoolKit poolKit) throws DAValidateException, DAException Validates the data before performing any action that require the input- Parameters:
input- theWorkOrderOperationCenterDeductionInputobject to be validatedpoolKit- thePoolKit- Throws:
DAValidateException- theDAValidateExceptionthrown if any property id is nullCodes.PROPERTY_REQUIREDor if theBOAddressandBOWorkOrderTyperesource doesn't exist inLoadEventDAException- theDAExceptiongeneric error thrown if there are code related errors inLoadEvent
-
getIntegrationService
public WorkOrdersIntegrationService getIntegrationService(PoolKit poolKit) throws DAValidateException Return theWorkOrdersIntegrationServiceused to access other domains- Parameters:
poolKit- thePoolKit- Returns:
- the
WorkOrdersIntegrationServiceused to access services and events in other domains - Throws:
DAValidateException- thrown if there are data related loading errors
-
isValidExecution
public boolean isValidExecution()Description copied from interface:ValidExecutionDetermines whether the current state is valid for execution.- Returns:
- true if execution is valid, false otherwise
-