Class BTDataCollectionSheetInstanceFix
java.lang.Object
overit.geocall.bl.BusinessTask<DataCollectionSheetInstanceFixEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<DataCollectionSheetInstanceFixEvent>
overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollection<DataCollectionSheetInstanceFixEvent>
overit.geocallapp.wfm.mobileforms.bl.instance.task.BTDataCollectionSheetInstanceFix
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(DataCollectionSheetInstanceFixEvent.class)
public class BTDataCollectionSheetInstanceFix
extends BTDataCollection<DataCollectionSheetInstanceFixEvent>
Business task in order to fix a
When the
DataCollectionSheetInstance. When the
DataCollectionSheetInstanceFixEvent is launched the BT notices the call and fixes the
DataCollectionSheetInstance basing on the event's input. - Since:
- 12.0
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(DataCollectionSheetInstanceFixEvent event, PoolKit poolKit) Fixes the data collection sheet instance by setting the new state.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
-
BTDataCollectionSheetInstanceFix
public BTDataCollectionSheetInstanceFix()
-
-
Method Details
-
execute
protected void execute(DataCollectionSheetInstanceFixEvent event, PoolKit poolKit) throws DAException, DAValidateException Fixes the data collection sheet instance by setting the new state.- Specified by:
executein classValidExecutionBusinessTask<DataCollectionSheetInstanceFixEvent>- Parameters:
event- theDataCollectionSheetInstanceFixEventpoolKit- thePoolKit- 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
-
updateSheet
protected void updateSheet(BODataCollectionSheet sheet, PoolKit poolKit) throws DAValidateException, DAException Updates the sheet.- Parameters:
sheet- the sheetpoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-