Class BTDataCollectionSheetInstanceInsert
java.lang.Object
overit.geocall.bl.BusinessTask<DataCollectionSheetInstanceInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<DataCollectionSheetInstanceInsertEvent>
overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollection<DataCollectionSheetInstanceInsertEvent>
overit.geocallapp.wfm.mobileforms.bl.instance.task.BTDataCollectionSheetInstanceInsert
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(DataCollectionSheetInstanceInsertEvent.class)
public class BTDataCollectionSheetInstanceInsert
extends BTDataCollection<DataCollectionSheetInstanceInsertEvent>
Business task in order to insert a
When the
DataCollectionSheetInstance. When the
DataCollectionSheetInstanceInsertEvent is launched
the BT notices the call and inserts the DataCollectionSheetInstance basing on the event's input. - Since:
- 12.0
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(DataCollectionSheetInstanceInsertEvent event, PoolKit poolKit) Inserts the new data collection sheet instance.protected LongsaveSheetInstance(DataCollectionSheetInstance sheetInstance, PoolKit poolKit) Saves the sheet instance.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
-
BTDataCollectionSheetInstanceInsert
public BTDataCollectionSheetInstanceInsert()
-
-
Method Details
-
execute
protected void execute(DataCollectionSheetInstanceInsertEvent event, PoolKit poolKit) throws DAException, DAValidateException Inserts the new data collection sheet instance.- Specified by:
executein classValidExecutionBusinessTask<DataCollectionSheetInstanceInsertEvent>- Parameters:
event- theDataCollectionSheetInstanceInsertEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
saveSheetInstance
protected Long saveSheetInstance(DataCollectionSheetInstance sheetInstance, PoolKit poolKit) throws DAException, DAValidateException Saves the sheet instance.- Parameters:
sheetInstance- theDataCollectionSheetInstancepoolKit- thePoolKit- Returns:
- the long
- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-