Class BTMeasureValidate
java.lang.Object
overit.geocall.bl.BusinessTask<MeasureValidateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<MeasureValidateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<MeasureValidateEvent>
overit.geocallapp.wfm.orchestrator.assets.bl.measuringelement.measure.task.MeasureStatusChangeTask<MeasureValidateEvent>
overit.geocallapp.wfm.orchestrator.assets.bl.measuringelement.measure.task.BTMeasureValidate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(MeasureValidateEvent.class)
public class BTMeasureValidate
extends MeasureStatusChangeTask<MeasureValidateEvent>
Business task in order to validate a
When the
Permissions: Error Codes:
BOMeasure. When the
MeasureValidateEvent is launched the BT notices the call and validates the BOMeasure
according to the event's input. 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 LongGets the target status for the measure status change operation.protected booleanisValidationAllowed(BOMeasure measure) Checks if a measure can be validated based on its current status.protected voidvalidateForStatusChange(BOMeasure measure) Validates if the measure can be transitioned to VALIDATED status.Methods inherited from class overit.geocallapp.wfm.orchestrator.assets.bl.measuringelement.measure.task.MeasureStatusChangeTask
execute, getIntegrationService, isValidExecutionMethods 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
-
BTMeasureValidate
public BTMeasureValidate()
-
-
Method Details
-
validateForStatusChange
Validates if the measure can be transitioned to VALIDATED status.The validation checks:
- Current status must be
BOMeasureStatus.Values.TO_VALIDATE
- Specified by:
validateForStatusChangein classMeasureStatusChangeTask<MeasureValidateEvent>- Parameters:
measure- the measure to validate- Throws:
DAValidateException- if validation fails due to invalid status
- Current status must be
-
isValidationAllowed
Checks if a measure can be validated based on its current status.A measure can only be validated if its current status is
BOMeasureStatus.Values.TO_VALIDATE.- Parameters:
measure- the measure to check- Returns:
- true if the measure can be validated, false otherwise
-
getTargetStatus
Description copied from class:MeasureStatusChangeTaskGets the target status for the measure status change operation.- Specified by:
getTargetStatusin classMeasureStatusChangeTask<MeasureValidateEvent>- Returns:
- the target status
-