Class BTDataCollectionSheetInstanceClose
java.lang.Object
overit.geocall.bl.BusinessTask<DataCollectionSheetInstanceCloseEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<DataCollectionSheetInstanceCloseEvent>
overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollection<DataCollectionSheetInstanceCloseEvent>
overit.geocallapp.wfm.mobileforms.bl.instance.task.BTDataCollectionSheetInstanceClose
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(DataCollectionSheetInstanceCloseEvent.class)
public class BTDataCollectionSheetInstanceClose
extends BTDataCollection<DataCollectionSheetInstanceCloseEvent>
Business task in order to close a
When the
DataCollectionSheetInstance. When the
DataCollectionSheetInstanceCloseEvent is launched
the BT notices the call and closes the DataCollectionSheetInstance basing on the event's input. Errors:
- Since:
- 12.0
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckSheet(BODataCollectionSheet sheet) Checks the sheet.protected voidexecute(DataCollectionSheetInstanceCloseEvent event, PoolKit poolKit) Closes the data collection sheet instance.protected BODataCollectionSheetLoads the sheet.protected voidupdateSheet(BODataCollectionSheet sheet, PoolKit poolKit) Updates the sheet.Methods 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
-
BTDataCollectionSheetInstanceClose
public BTDataCollectionSheetInstanceClose()
-
-
Method Details
-
execute
protected void execute(DataCollectionSheetInstanceCloseEvent event, PoolKit poolKit) throws DAException, DAValidateException Closes the data collection sheet instance.- Specified by:
executein classValidExecutionBusinessTask<DataCollectionSheetInstanceCloseEvent>- Parameters:
event- theDataCollectionSheetInstanceCloseEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
checkSheet
Checks the sheet.- Parameters:
sheet- theBODataCollectionSheet- Throws:
DAValidateException- 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
-
updateSheet
protected void updateSheet(BODataCollectionSheet sheet, PoolKit poolKit) throws DAValidateException, DAException Updates the sheet.- Parameters:
sheet- theBODataCollectionSheetpoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-