Class BTDataCollectionSheetInstanceUnlockCheck
java.lang.Object
overit.geocall.bl.BusinessTask<DataCollectionSheetInstanceUnlockCheckEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<DataCollectionSheetInstanceUnlockCheckEvent>
overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollection<DataCollectionSheetInstanceUnlockCheckEvent>
overit.geocallapp.wfm.orchestrator.documents.mobileforms.bl.instance.task.BTDataCollectionSheetInstanceUnlockCheckBase<DataCollectionSheetInstanceUnlockCheckEvent>
overit.geocallapp.wfm.orchestrator.documents.mobileforms.bl.instance.task.BTDataCollectionSheetInstanceUnlockCheck
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(DataCollectionSheetInstanceUnlockCheckEvent.class)
public class BTDataCollectionSheetInstanceUnlockCheck
extends BTDataCollectionSheetInstanceUnlockCheckBase<DataCollectionSheetInstanceUnlockCheckEvent>
Business task for validating if a data collection sheet can be unlocked.
This task processes DataCollectionSheetInstanceUnlockCheckEvent events and
performs comprehensive validation to determine if a sheet meets all requirements for unlocking.
The validation workflow checks:
- Lock/unlock feature is enabled for the sheet
- An unlock request has been submitted
- Sheet is in closed state
- Sheet scope is associated with work order operations
- Sheet is linked to a work order operation
- Associated work order is in an open state (unless superuser override)
Superuser Override: Users with superuser permissions can bypass the work order open state validation, allowing unlocking of sheets associated with closed work orders.
- Since:
- 22.0
- See Also:
-
Field Summary
Fields inherited from class overit.geocallapp.wfm.orchestrator.documents.mobileforms.bl.instance.task.BTDataCollectionSheetInstanceUnlockCheckBase
documentsIntegrationService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidValidates that the sheet has an unlock request pending.protected voidexecute(DataCollectionSheetInstanceUnlockCheckEvent event, PoolKit poolKit) Executes the unlock validation workflow.Methods inherited from class overit.geocallapp.wfm.orchestrator.documents.mobileforms.bl.instance.task.BTDataCollectionSheetInstanceUnlockCheckBase
checkAssociatedToOperation, checkClosed, checkLockUnlockEnabled, checkOperation, checkSheet, checkWorkorderOpen, getIntegrationService, loadSheetMethods inherited from class overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollection
getException, isValidExecution, throwExceptionIfInvalidMethods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask
body, checkValidExecution, getEventMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTDataCollectionSheetInstanceUnlockCheck
public BTDataCollectionSheetInstanceUnlockCheck()
-
-
Method Details
-
execute
protected void execute(DataCollectionSheetInstanceUnlockCheckEvent event, PoolKit poolKit) throws DAException, DAValidateException Executes the unlock validation workflow.- Specified by:
executein classValidExecutionBusinessTask<DataCollectionSheetInstanceUnlockCheckEvent>- Parameters:
event- the unlock check event containing the sheet IDpoolKit- the database connection pool kit for database operations- Throws:
DAException- if a database error occursDAValidateException- if the sheet ID is null or validation fails
-
checkRequestedUnlocking
Validates that the sheet has an unlock request pending.- Parameters:
sheet- the data collection sheet to validate- Throws:
DAValidateException- if the sheet does not have an unlock request (error code: DATACOLLECTION_NOT_REQUESTED_UNLOCKING)
-