Class BTDataCollectionTemplateReleaseSave
java.lang.Object
overit.geocall.bl.BusinessTask<DataCollectionTemplateReleaseSaveEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<DataCollectionTemplateReleaseSaveEvent>
overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollection<DataCollectionTemplateReleaseSaveEvent>
overit.geocallapp.wfm.mobileforms.bl.template.task.BTDataCollectionTemplateSave<DataCollectionTemplateReleaseSaveEvent>
overit.geocallapp.wfm.mobileforms.bl.template.release.task.BTDataCollectionTemplateReleaseSave
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(DataCollectionTemplateReleaseSaveEvent.class)
public class BTDataCollectionTemplateReleaseSave
extends BTDataCollectionTemplateSave<DataCollectionTemplateReleaseSaveEvent>
Business task in order to save a
When the
DataCollectionTemplateRelease. When the
DataCollectionTemplateReleaseSaveEvent is launched the BT notices the call and saves the
DataCollectionTemplateRelease basing on the event's input. Visibility:
- structures that belong to the same current user's operation center
- templates that belong to the same current user's operation center
- Since:
- 12.0
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(DataCollectionTemplateReleaseSaveEvent event, PoolKit poolKit) Saves the givenDataCollectionTemplateRelease.protected Longupsert(DataCollectionTemplate template, PoolKit poolKit) Updates the data collection template release.Methods inherited from class overit.geocallapp.wfm.mobileforms.bl.template.task.BTDataCollectionTemplateSave
alignExpressionsEvaluationOrder, checkCodeUniqueness, checkNodes, executeSave, isValidExecution, updateNodesIds, upsertStructure, validateGlobalExpressions, validateNodeConstraints, validateTemplateHeader, validateTemplateStructureMethods 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
-
BTDataCollectionTemplateReleaseSave
public BTDataCollectionTemplateReleaseSave()
-
-
Method Details
-
execute
protected void execute(DataCollectionTemplateReleaseSaveEvent event, PoolKit poolKit) throws DAException, DAValidateException Saves the givenDataCollectionTemplateRelease.- Specified by:
executein classValidExecutionBusinessTask<DataCollectionTemplateReleaseSaveEvent>- Parameters:
event- theDataCollectionTemplateReleaseSaveEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
upsert
protected Long upsert(DataCollectionTemplate template, PoolKit poolKit) throws DAValidateException, DAException Updates the data collection template release.- Overrides:
upsertin classBTDataCollectionTemplateSave<DataCollectionTemplateReleaseSaveEvent>- Parameters:
template- theDataCollectionTemplatepoolKit- thePoolKit- Returns:
- the release id
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-