Class BTDataCollectionTemplateConversionReleaseSave
java.lang.Object
overit.geocall.bl.BusinessTask<DataCollectionTemplateConversionReleaseSaveEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<DataCollectionTemplateConversionReleaseSaveEvent>
overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollection<DataCollectionTemplateConversionReleaseSaveEvent>
overit.geocallapp.wfm.mobileforms.bl.template.task.BTDataCollectionTemplateSave<DataCollectionTemplateConversionReleaseSaveEvent>
overit.geocallapp.wfm.core.bl.datacollection.converter.template.task.BTDataCollectionTemplateConversionReleaseSave
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(DataCollectionTemplateConversionReleaseSaveEvent.class)
public class BTDataCollectionTemplateConversionReleaseSave
extends BTDataCollectionTemplateSave<DataCollectionTemplateConversionReleaseSaveEvent>
Business task in order to save a
When the
DataCollectionTemplateRelease. When the
DataCollectionTemplateConversionReleaseSaveEvent 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:
- 13.0
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(DataCollectionTemplateConversionReleaseSaveEvent 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
-
BTDataCollectionTemplateConversionReleaseSave
public BTDataCollectionTemplateConversionReleaseSave()
-
-
Method Details
-
execute
protected void execute(DataCollectionTemplateConversionReleaseSaveEvent event, PoolKit poolKit) throws DAException, DAValidateException Saves the givenDataCollectionTemplateRelease.- Specified by:
executein classValidExecutionBusinessTask<DataCollectionTemplateConversionReleaseSaveEvent>- Parameters:
event- theDataCollectionTemplateConversionReleaseSaveEventpoolKit- 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<DataCollectionTemplateConversionReleaseSaveEvent>- Parameters:
template- theDataCollectionTemplatepoolKit- thePoolKit- Returns:
- the long
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-