Class BTDataCollectionTemplateConversionInsertRelease
java.lang.Object
overit.geocall.bl.BusinessTask<DataCollectionTemplateConversionInsertReleaseEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<DataCollectionTemplateConversionInsertReleaseEvent>
overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollection<DataCollectionTemplateConversionInsertReleaseEvent>
overit.geocallapp.wfm.core.bl.datacollection.converter.template.task.BTDataCollectionTemplateConversionInsertRelease
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(DataCollectionTemplateConversionInsertReleaseEvent.class)
public class BTDataCollectionTemplateConversionInsertRelease
extends BTDataCollection<DataCollectionTemplateConversionInsertReleaseEvent>
Business task in order to insert a
When the
DataCollectionTemplateRelease. When the
DataCollectionTemplateConversionInsertReleaseEvent is launched
the BT notices the call and inserts a DataCollectionTemplateRelease basing on the event's input. Permission:
WfmPermissions.FSM_DATACOLLECTION_TEMPLATE_EDIT
- Since:
- 13.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(DataCollectionTemplateConversionInsertReleaseEvent event, PoolKit poolKit) Inserts a new data collection template release starting from the working copy.protected BODataCollectionTemplateStructureReleasegetDataCollectionTemplateRelease(DataCollectionTemplateConversionInsertReleaseEvent event, PoolKit poolKit) Returns 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
-
BTDataCollectionTemplateConversionInsertRelease
public BTDataCollectionTemplateConversionInsertRelease()
-
-
Method Details
-
isValidExecution
public boolean isValidExecution()Checks if is valid execution.- Specified by:
isValidExecutionin interfaceValidExecution- Overrides:
isValidExecutionin classBTDataCollection<DataCollectionTemplateConversionInsertReleaseEvent>- Returns:
- true, if is valid execution
-
execute
protected void execute(DataCollectionTemplateConversionInsertReleaseEvent event, PoolKit poolKit) throws DAException, DAValidateException Inserts a new data collection template release starting from the working copy.- Specified by:
executein classValidExecutionBusinessTask<DataCollectionTemplateConversionInsertReleaseEvent>- Parameters:
event- theDataCollectionTemplateConversionInsertReleaseEventpoolKit- 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(DataCollectionTemplateConversionInsertReleaseEvent 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
-