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