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