Class BTDataCollectionSheetInstanceCancel
java.lang.Object
overit.geocall.bl.BusinessTask<DataCollectionSheetInstanceCancelEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<DataCollectionSheetInstanceCancelEvent>
overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollection<DataCollectionSheetInstanceCancelEvent>
overit.geocallapp.wfm.core.bl.datacollection.instance.task.BTDataCollectionSheetInstanceCancel
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(DataCollectionSheetInstanceCancelEvent.class)
public class BTDataCollectionSheetInstanceCancel
extends BTDataCollection<DataCollectionSheetInstanceCancelEvent>
Business task in order to cancel a
When the
DataCollectionSheetInstance. When the
DataCollectionSheetInstanceCancelEvent is launched
the BT notices the call and cancels the DataCollectionSheetInstance basing on the event's input. Permission:
WfmPermissions.FSM_DATACOLLECTION_SHEET_EDIT
Errors:
- Since:
- 12.0
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckSheet(BODataCollectionSheet sheet) Checks the sheet.protected voidexecute(DataCollectionSheetInstanceCancelEvent event, PoolKit poolKit) Cancels the sheet.booleanChecks whether the view sheet permission is activated or not.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, 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
-
BTDataCollectionSheetInstanceCancel
public BTDataCollectionSheetInstanceCancel()
-
-
Method Details
-
isValidExecution
public boolean isValidExecution()Checks whether the view sheet permission is activated or not.- Specified by:
isValidExecutionin interfaceValidExecution- Overrides:
isValidExecutionin classBTDataCollection<DataCollectionSheetInstanceCancelEvent>- Returns:
- true, if the view sheet permission is active, false otherwise
-
execute
protected void execute(DataCollectionSheetInstanceCancelEvent event, PoolKit poolKit) throws DAException, DAValidateException Cancels the sheet.- Specified by:
executein classValidExecutionBusinessTask<DataCollectionSheetInstanceCancelEvent>- Parameters:
event- theDataCollectionSheetInstanceCancelEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
checkSheet
Checks the sheet.- Parameters:
sheet- theBODataCollectionSheet- Throws:
DAValidateException- the DA validate exceptionDAException- the DA 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
-