Class BTMeasuringElementLastMeasureUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<MeasureNotificationEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<MeasureNotificationEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<MeasureNotificationEvent>
overit.geocallapp.wfm.measuringelements.bl.measuringelement.task.BTMeasuringElementLastMeasureUpdate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(MeasureNotificationEvent.class)
public class BTMeasuringElementLastMeasureUpdate
extends ValidPermissionBusinessTask<MeasureNotificationEvent>
Business task that reacts to the measure notification event.
When the
Permissions: Error codes:
When the
MeasureNotificationEvent is launched the BT notices the call and updates
the measuring element's last measure with the latest valid measure. Permissions: Error codes:
- Since:
- 20.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(MeasureNotificationEvent event, PoolKit pk) Updates theBOMeasuringElementlast measure with the latest validBOMeasure.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
-
BTMeasuringElementLastMeasureUpdate
public BTMeasuringElementLastMeasureUpdate()
-
-
Method Details
-
execute
protected void execute(MeasureNotificationEvent event, PoolKit pk) throws DAException, DAValidateException Updates theBOMeasuringElementlast measure with the latest validBOMeasure.- Specified by:
executein classValidExecutionBusinessTask<MeasureNotificationEvent>- Parameters:
event- theMeasureNotificationEventpk- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate 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
-