Class BTRoughPlanningCancel
java.lang.Object
overit.geocall.bl.BusinessTask<RoughPlanningCancelEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<RoughPlanningCancelEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<RoughPlanningCancelEvent>
overit.geocallapp.wfm.roughplanning.bl.task.BTRoughPlanningManagement<RoughPlanningCancelEvent>
overit.geocallapp.wfm.roughplanning.bl.task.BTRoughPlanningCancel
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(RoughPlanningCancelEvent.class)
public class BTRoughPlanningCancel
extends BTRoughPlanningManagement<RoughPlanningCancelEvent>
Business task in order to cancel a
When the
BORoughPlanning. When the
RoughPlanningCancelEvent is launched
the BT notices the call and cancels the BORoughPlanning basing on the event's input. - Since:
- 18.0
- See Also:
-
Field Summary
Fields inherited from class overit.geocallapp.wfm.roughplanning.bl.task.BTRoughPlanningManagement
CODE_LENGTH, DESCRIPTION_LENGTH, OVERSIZED_LIMIT, TIME_SIZE_LOWER_LIMITFields inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcancelRoughPlanning(Long roughPlanningId, PoolKit pk) Cancels the rough planning.protected voidexecute(RoughPlanningCancelEvent event, PoolKit pk) Cancels the givenBORoughPlanning.Methods inherited from class overit.geocallapp.wfm.roughplanning.bl.task.BTRoughPlanningManagement
isValidExecution, searchRoughPlanningByCode, validateCodeDuplication, validateDateSpan, validateFieldsLength, validateOversizedLimit, validateTimeSize, validateTimeUnitMethods 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
-
BTRoughPlanningCancel
public BTRoughPlanningCancel()
-
-
Method Details
-
execute
protected void execute(RoughPlanningCancelEvent event, PoolKit pk) throws DAException, DAValidateException Cancels the givenBORoughPlanning.- Specified by:
executein classValidExecutionBusinessTask<RoughPlanningCancelEvent>- Parameters:
event- theRoughPlanningCancelEventpk- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
cancelRoughPlanning
protected void cancelRoughPlanning(Long roughPlanningId, PoolKit pk) throws DAValidateException, DAException Cancels the rough planning. The cancellation is logical, i.e. the status is set to CANCELLED- Parameters:
roughPlanningId- theBORoughPlanningidpk- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-