Class BTDataCollectionTemplateHeaderInsert
java.lang.Object
overit.geocall.bl.BusinessTask<DataCollectionTemplateHeaderInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<DataCollectionTemplateHeaderInsertEvent>
overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollection<DataCollectionTemplateHeaderInsertEvent>
overit.geocallapp.wfm.mobileforms.bl.template.header.task.BTDataCollectionTemplateHeaderInsert
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(DataCollectionTemplateHeaderInsertEvent.class)
public class BTDataCollectionTemplateHeaderInsert
extends BTDataCollection<DataCollectionTemplateHeaderInsertEvent>
Business task in order to insert a
When the
BODataCollectionTemplateHeader. When the
DataCollectionTemplateHeaderInsertEvent is launched the BT notices the call and inserts the
BODataCollectionTemplateHeader basing on the event's input. - Since:
- 12.0
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCompletes template data.protected voidexecute(DataCollectionTemplateHeaderInsertEvent event, PoolKit poolKit) Inserts the givenBODataCollectionTemplateHeaderand writes the newly generated id into the event journal.protected voidvalidate(BODataCollectionTemplateHeader template) Validates the template header.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
-
BTDataCollectionTemplateHeaderInsert
public BTDataCollectionTemplateHeaderInsert()
-
-
Method Details
-
execute
protected void execute(DataCollectionTemplateHeaderInsertEvent event, PoolKit poolKit) throws DAException, DAValidateException Inserts the givenBODataCollectionTemplateHeaderand writes the newly generated id into the event journal.- Specified by:
executein classValidExecutionBusinessTask<DataCollectionTemplateHeaderInsertEvent>- Parameters:
event- theDataCollectionTemplateHeaderInsertEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validate
Validates the template header.- Parameters:
template- theBODataCollectionTemplateHeader- Throws:
DAValidateException- the DA validate exception
-
completeTemplateData
Completes template data.- Parameters:
template- theBODataCollectionTemplateHeader
-