Class BTCoordinatesPathCalculationCheck
java.lang.Object
overit.geocall.bl.BusinessTask<CoordinatesPathCalculationCheckEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<CoordinatesPathCalculationCheckEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<CoordinatesPathCalculationCheckEvent>
overit.geocallapp.wfm.scheduling.bl.scheduling.task.BTCoordinatesPathCalculationCheck
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(CoordinatesPathCalculationCheckEvent.class)
public class BTCoordinatesPathCalculationCheck
extends ValidPermissionBusinessTask<CoordinatesPathCalculationCheckEvent>
Business task in order to check whether the coordinates path calculation is disabled or not.
The task returns
When the
The task returns
true when the check is disabled, false otherwise. When the
CoordinatesPathCalculationCheckEvent is launched
the BT notices the call and checks whether the coordinates path calculation is disabled or not basing on the event's input. - Since:
- 17.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(CoordinatesPathCalculationCheckEvent event, PoolKit poolKit) Check in the system properties and in the operation center configuration if the time-distance calculation is disabled.booleanCheck in the system properties if the time-distance calculation is disabled.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
-
BTCoordinatesPathCalculationCheck
public BTCoordinatesPathCalculationCheck()
-
-
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(CoordinatesPathCalculationCheckEvent event, PoolKit poolKit) throws DAException, DAValidateException Check in the system properties and in the operation center configuration if the time-distance calculation is disabled.- Specified by:
executein classValidExecutionBusinessTask<CoordinatesPathCalculationCheckEvent>- Parameters:
event- theCoordinatesPathCalculationCheckEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
isCoordinatesPathCalculationDisabled
public boolean isCoordinatesPathCalculationDisabled()Check in the system properties if the time-distance calculation is disabled.- Returns:
- true if the time-distance calculation is disabled, false otherwise
-