Class BTActivityForecastHeaderCancel
java.lang.Object
overit.geocall.bl.BusinessTask<ActivityForecastHeaderCancelEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<ActivityForecastHeaderCancelEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<ActivityForecastHeaderCancelEvent>
overit.geocallapp.wfm.forecastcapacity.bl.forecast.activity.task.BTActivityForecastHeaderCancel
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(ActivityForecastHeaderCancelEvent.class)
public class BTActivityForecastHeaderCancel
extends ValidPermissionBusinessTask<ActivityForecastHeaderCancelEvent>
Business task in order to cancel a
When the
BOActivityForecastHeader. When the
ActivityForecastHeaderCancelEvent is launched
the BT notices the call and cancels the BOActivityForecastHeader basing on the event's input. - Since:
- 15.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 voidcancelActivityForecastHeader(Long activityForecastHeaderId, PoolKit poolKit) Cancels the activity forecast header.protected voidexecute(ActivityForecastHeaderCancelEvent event, PoolKit poolKit) Cancels the givenBOActivityForecastHeader.booleanDetermines whether the current state is valid for 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
-
BTActivityForecastHeaderCancel
public BTActivityForecastHeaderCancel()
-
-
Method Details
-
execute
protected void execute(ActivityForecastHeaderCancelEvent event, PoolKit poolKit) throws DAException, DAValidateException Cancels the givenBOActivityForecastHeader.- Specified by:
executein classValidExecutionBusinessTask<ActivityForecastHeaderCancelEvent>- Parameters:
event- theActivityForecastHeaderCancelEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
cancelActivityForecastHeader
protected void cancelActivityForecastHeader(Long activityForecastHeaderId, PoolKit poolKit) throws DAValidateException, DAException Cancels the activity forecast header. The cancellation is logical, i.e. the status is set to CANCELLED- Parameters:
activityForecastHeaderId- theBOActivityForecastHeaderidpoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
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
-