Class BTDataCollectionSheetInstanceCloseWOOperationSheet
java.lang.Object
overit.geocall.bl.BusinessTask<CheckableEvent<Long,Void>>
overit.geocallapp.utilities.core.bl.common.check.checkable.task.AbstractCheckableBusinessTask<Long,Void>
overit.geocallapp.utilities.core.bl.common.check.checkable.task.ValidExecutionAbstractCheckableBusinessTask<Long,Void>
overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollectionCheckable<Long,Void>
overit.geocallapp.wfm.core.bl.datacollection.instance.task.BTDataCollectionSheetInstanceCloseWOOperationSheet
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(DataCollectionSheetInstanceCloseWOOperationSheetEvent.class)
public class BTDataCollectionSheetInstanceCloseWOOperationSheet
extends BTDataCollectionCheckable<Long,Void>
Business task in order to close the work order operation associated to the
When the
DataCollectionSheetInstance. When the
DataCollectionSheetInstanceCloseWOOperationSheetEvent is launched
the BT notices the call and closes the work order operation associated to the DataCollectionSheetInstance basing on the event's input. Errors:
Codes.DATACOLLECTION_SHEET_MUST_BE_ASSOCIATE_TO_WO_OPERATIONCodes.DATACOLLECTION_SHEET_MUST_BE_IN_FIXED_STATECodes.DATACOLLECTION_CLOSING_SHEET_BEFORE_WO_OPERATION
Visibility:
- workorder operations that belong to the same current user's operation center
- sheets that belong to the same current user'r operation center
- Since:
- 12.0
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckCanClose(BODataCollectionSheet sheet, BOWorkOrderOperation workOrderOperation) Check can close.protected List<CheckerEvent<?>> defineCheckerEvents(Long sheetId, PoolKit poolKit) Defines the checker events.protected VoidexecuteProcess(Long sheetId, PoolKit poolKit) Closes the work order operation associated to the data collection sheet instance.protected BODataCollectionSheetLoads the sheet.protected DataCollectionSheetInstanceloadSheetInstance(Long sheetId, PoolKit poolKit) Loads the sheet instance.protected BOWorkOrderOperationloadWorkOrderOperation(Long woOperationId, PoolKit poolKit) Loads the work order operation.Methods inherited from class overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollectionCheckable
getException, isValidExecution, throwExceptionIfInvalidMethods inherited from class overit.geocallapp.utilities.core.bl.common.check.checkable.task.ValidExecutionAbstractCheckableBusinessTask
body, checkValidExecutionMethods inherited from class overit.geocallapp.utilities.core.bl.common.check.checkable.task.AbstractCheckableBusinessTask
buildOutputCheckResult, launchCheckerEvents, throwExceptionIfNecessary, validateMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTDataCollectionSheetInstanceCloseWOOperationSheet
public BTDataCollectionSheetInstanceCloseWOOperationSheet()
-
-
Method Details
-
executeProcess
protected Void executeProcess(Long sheetId, PoolKit poolKit) throws DAException, DAValidateException Closes the work order operation associated to the data collection sheet instance.- Specified by:
executeProcessin classAbstractCheckableBusinessTask<Long,Void> - Parameters:
sheetId- the sheet idpoolKit- thePoolKit- Returns:
- the void
- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
loadSheet
protected BODataCollectionSheet loadSheet(Long sheetId, PoolKit poolKit) throws DAValidateException, DAException Loads the sheet.- Parameters:
sheetId- the sheet idpoolKit- thePoolKit- Returns:
- the BO data collection sheet
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
loadWorkOrderOperation
protected BOWorkOrderOperation loadWorkOrderOperation(Long woOperationId, PoolKit poolKit) throws DAException, DAValidateException Loads the work order operation.- Parameters:
woOperationId- the wo operation idpoolKit- thePoolKit- Returns:
- the BO work order operation
- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
checkCanClose
protected void checkCanClose(BODataCollectionSheet sheet, BOWorkOrderOperation workOrderOperation) throws DAValidateException Check can close.- Parameters:
sheet- the §[@linkBODataCollectionSheet]workOrderOperation- theBOWorkOrderOperation- Throws:
DAValidateException- the DA validate exception
-
defineCheckerEvents
protected List<CheckerEvent<?>> defineCheckerEvents(Long sheetId, PoolKit poolKit) throws DAException, DAValidateException Defines the checker events.- Specified by:
defineCheckerEventsin classAbstractCheckableBusinessTask<Long,Void> - Parameters:
sheetId- the sheet idpoolKit- thePoolKit- Returns:
- a list of checker event elements of type CheckerEvent
- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception- See Also:
-
loadSheetInstance
protected DataCollectionSheetInstance loadSheetInstance(Long sheetId, PoolKit poolKit) throws DAValidateException, DAException Loads the sheet instance.- Parameters:
sheetId- the sheet idpoolKit- thePoolKit- Returns:
- the data collection sheet instance
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-