Class BTDataCollectionTemplateInsertRelease
java.lang.Object
overit.geocall.bl.BusinessTask<DataCollectionTemplateInsertReleaseEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<DataCollectionTemplateInsertReleaseEvent>
overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollection<DataCollectionTemplateInsertReleaseEvent>
overit.geocallapp.wfm.mobileforms.bl.template.task.BTDataCollectionTemplateInsertRelease
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(DataCollectionTemplateInsertReleaseEvent.class)
public class BTDataCollectionTemplateInsertRelease
extends BTDataCollection<DataCollectionTemplateInsertReleaseEvent>
Business task in order to insert a
When the
DataCollectionTemplateRelease. When the
DataCollectionTemplateInsertReleaseEvent is launched the BT notices the call and inserts a
DataCollectionTemplateRelease basing on the event's input. Error Code:
Permission:
- Since:
- 12.0
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcopyOutcomeRules(Long structureReleaseId, DataCollectionTemplateWorkingCopy workingCopy, PoolKit poolKit) Copies the outcome rules.protected voidexecute(DataCollectionTemplateInsertReleaseEvent event, PoolKit poolKit) Inserts a new data collection template release starting from the working copy.protected BODataCollectionTemplateStructureReleaseReturns the data collection template release.protected BODataCollectionTemplateStructureReturns the data collection template structure.booleanChecks if is valid execution.Methods 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
-
BTDataCollectionTemplateInsertRelease
public BTDataCollectionTemplateInsertRelease()
-
-
Method Details
-
isValidExecution
public boolean isValidExecution()Checks if is valid execution.- Specified by:
isValidExecutionin interfaceValidExecution- Overrides:
isValidExecutionin classBTDataCollection<DataCollectionTemplateInsertReleaseEvent>- Returns:
- true, if is valid execution
-
execute
protected void execute(DataCollectionTemplateInsertReleaseEvent event, PoolKit poolKit) throws DAException, DAValidateException Inserts a new data collection template release starting from the working copy.- Specified by:
executein classValidExecutionBusinessTask<DataCollectionTemplateInsertReleaseEvent>- Parameters:
event- theDataCollectionTemplateInsertReleaseEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
getDataCollectionTemplateStructure
protected BODataCollectionTemplateStructure getDataCollectionTemplateStructure(DataCollectionTemplateWorkingCopy workingCopy) Returns the data collection template structure.- Parameters:
workingCopy- theDataCollectionTemplateWorkingCopy- Returns:
- the data collection template structure
-
getDataCollectionTemplateRelease
protected BODataCollectionTemplateStructureRelease getDataCollectionTemplateRelease(DataCollectionTemplateInsertReleaseEvent event, PoolKit poolKit) throws DAException, DAValidateException Returns the data collection template release.- Parameters:
event- theDataCollectionTemplateInsertReleaseEventpoolKit- thePoolKit- Returns:
- the data collection template release
- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
copyOutcomeRules
protected void copyOutcomeRules(Long structureReleaseId, DataCollectionTemplateWorkingCopy workingCopy, PoolKit poolKit) throws DAException, DAValidateException Copies the outcome rules.- Parameters:
structureReleaseId- the structure release idworkingCopy- theDataCollectionTemplateWorkingCopypoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-