Class BTDataCollectionTemplateImportModel
java.lang.Object
overit.geocall.bl.BusinessTask<CheckableEvent<DataCollectionTemplateImportModelInput,Void>>
overit.geocallapp.utilities.core.bl.common.check.checkable.task.AbstractCheckableBusinessTask<DataCollectionTemplateImportModelInput,Void>
overit.geocallapp.utilities.core.bl.common.check.checkable.task.ValidExecutionAbstractCheckableBusinessTask<DataCollectionTemplateImportModelInput,Void>
overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollectionCheckable<DataCollectionTemplateImportModelInput,Void>
overit.geocallapp.wfm.mobileforms.bl.template.task.BTDataCollectionTemplateImportModel
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(DataCollectionTemplateImportModelEvent.class)
public class BTDataCollectionTemplateImportModel
extends BTDataCollectionCheckable<DataCollectionTemplateImportModelInput,Void>
Business task in order to import the model to a
When the
DataCollectionTemplate. When the
DataCollectionTemplateImportModelEvent is launched the BT
notices the call and imports the model to a DataCollectionTemplate
basing on the event's input. Error Code:
Visibility:
- working copies 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 List<CheckerEvent<?>> defineCheckerEvents(DataCollectionTemplateImportModelInput input, PoolKit poolKit) Defines the checker events.protected VoidexecuteProcess(DataCollectionTemplateImportModelInput input, PoolKit poolKit) Starting from the uploaded file, it imports the model into the template.protected TreeModel<DataCollectionNode> extractModel(String templateModel) Extracts the model.Methods inherited from class overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollectionCheckable
getException, isValidExecution, throwExceptionIfInvalidMethods inherited from class overit.geocallapp.utilities.core.bl.common.check.checkable.task.ValidExecutionAbstractCheckableBusinessTask
body, checkValidExecutionMethods inherited from class overit.geocallapp.utilities.core.bl.common.check.checkable.task.AbstractCheckableBusinessTask
buildOutputCheckResult, launchCheckerEvents, throwExceptionIfNecessary, validateMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTDataCollectionTemplateImportModel
public BTDataCollectionTemplateImportModel()
-
-
Method Details
-
executeProcess
protected Void executeProcess(DataCollectionTemplateImportModelInput input, PoolKit poolKit) throws DAException, DAValidateException Starting from the uploaded file, it imports the model into the template.- Specified by:
executeProcessin classAbstractCheckableBusinessTask<DataCollectionTemplateImportModelInput,Void> - Parameters:
input- theDataCollectionTemplateImportModelInputpoolKit- thePoolKit- Returns:
- the void
- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
defineCheckerEvents
protected List<CheckerEvent<?>> defineCheckerEvents(DataCollectionTemplateImportModelInput input, PoolKit poolKit) throws DAException, DAValidateException Defines the checker events.- Specified by:
defineCheckerEventsin classAbstractCheckableBusinessTask<DataCollectionTemplateImportModelInput,Void> - Parameters:
input- theDataCollectionTemplateImportModelInputpoolKit- thePoolKit- Returns:
- a list of checker event elements of type CheckerEvent
- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception- See Also:
-
extractModel
Extracts the model.- Parameters:
templateModel- the template model- Returns:
- the tree model
-