Class BTForecastResourceDetailImportFromOC
java.lang.Object
overit.geocall.bl.BusinessTask<ForecastResourceDetailImportFromOCEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<ForecastResourceDetailImportFromOCEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<ForecastResourceDetailImportFromOCEvent>
overit.geocallapp.wfm.forecastcapacity.bl.forecast.resource.detail.task.BTForecastResourceDetailImportFromOC
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(ForecastResourceDetailImportFromOCEvent.class)
public class BTForecastResourceDetailImportFromOC
extends ValidPermissionBusinessTask<ForecastResourceDetailImportFromOCEvent>
Business task to import all workshifts of an user (AUSER) in the related forecast resource.
When the
When the
ForecastResourceDetailImportFromOCEvent is launched
the BT notices the call and searches the ForecastResourceDetailImportFromOCEvent basing on the event's input. - Since:
- 15.0
- See Also:
- GCApi:
- task
-
Field Summary
FieldsFields inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(ForecastResourceDetailImportFromOCEvent event, PoolKit poolKit) Import the workshifts from the real userbooleanDetermines 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
-
Field Details
-
shiftExceptionType
-
-
Constructor Details
-
BTForecastResourceDetailImportFromOC
public BTForecastResourceDetailImportFromOC()
-
-
Method Details
-
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
-
execute
protected void execute(ForecastResourceDetailImportFromOCEvent event, PoolKit poolKit) throws DAException, DAValidateException Import the workshifts from the real user- Specified by:
executein classValidExecutionBusinessTask<ForecastResourceDetailImportFromOCEvent>- Parameters:
event- theForecastResourceDetailImportFromOCEventpoolKit- thePoolKit- Throws:
DAExceptionDAValidateException
-