Class BTDataCollectionSheetInsert
java.lang.Object
overit.geocall.bl.BusinessTask<DataCollectionSheetInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<DataCollectionSheetInsertEvent>
overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollection<DataCollectionSheetInsertEvent>
overit.geocallapp.wfm.mobileforms.bl.sheet.task.BTDataCollectionSheetInsert
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(DataCollectionSheetInsertEvent.class)
public class BTDataCollectionSheetInsert
extends BTDataCollection<DataCollectionSheetInsertEvent>
Business task in order to insert a
When the
BODataCollectionSheet. When the
DataCollectionSheetInsertEvent is launched the BT notices the call and inserts the
BODataCollectionSheet basing on the event's input. - Since:
- 12.0
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcompleteDataCollectionSheetData(BODataCollectionSheet dataCollectionSheet, PoolKit poolKit) Completes the data collection sheet data with the user information and generated code.protected voidexecute(DataCollectionSheetInsertEvent dataCollectionSheetInsertEvent, PoolKit poolKit) Inserts the givenBODataCollectionSheetand writes the newly generated id into the event journal.protected voidvalidate(BODataCollectionSheet dataCollectionSheet) Validates the data collection 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
-
BTDataCollectionSheetInsert
public BTDataCollectionSheetInsert()
-
-
Method Details
-
execute
protected void execute(DataCollectionSheetInsertEvent dataCollectionSheetInsertEvent, PoolKit poolKit) throws DAException, DAValidateException Inserts the givenBODataCollectionSheetand writes the newly generated id into the event journal.- Specified by:
executein classValidExecutionBusinessTask<DataCollectionSheetInsertEvent>- Parameters:
dataCollectionSheetInsertEvent- theDataCollectionSheetInsertEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validate
Validates the data collection sheet.- Parameters:
dataCollectionSheet- theBODataCollectionSheet- Throws:
DAValidateException- the DA validate exception
-
completeDataCollectionSheetData
protected void completeDataCollectionSheetData(BODataCollectionSheet dataCollectionSheet, PoolKit poolKit) throws DAException, DAValidateException Completes the data collection sheet data with the user information and generated code.- Parameters:
dataCollectionSheet- theBODataCollectionSheetpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-