Class BTDataCollectionSheetCodeGeneration
java.lang.Object
overit.geocall.bl.BusinessTask<DataCollectionSheetCodeGenerationEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<DataCollectionSheetCodeGenerationEvent>
overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollection<DataCollectionSheetCodeGenerationEvent>
overit.geocallapp.wfm.core.bl.datacollection.sheet.task.BTDataCollectionSheetCodeGeneration
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(DataCollectionSheetCodeGenerationEvent.class)
public class BTDataCollectionSheetCodeGeneration
extends BTDataCollection<DataCollectionSheetCodeGenerationEvent>
Business task to generate a unique code for a
When the
BODataCollectionSheet. When the
DataCollectionSheetCodeGenerationEvent is launched, the BT notices the call
and generates a unique code based on:
- Operation Center code
- Current timestamp (yyMMddHHmmssSSS)
- A random number (0-9)
- Since:
- 22.0
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(DataCollectionSheetCodeGenerationEvent event, PoolKit poolKit) Generates a unique code for the givenBODataCollectionSheetand writes it into the event journal.protected voidvalidate(BODataCollectionSheet dataCollectionSheet) Validates the data collection sheet input.Methods inherited from class overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollection
getException, isValidExecution, 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
-
BTDataCollectionSheetCodeGeneration
public BTDataCollectionSheetCodeGeneration()
-
-
Method Details
-
execute
protected void execute(DataCollectionSheetCodeGenerationEvent event, PoolKit poolKit) throws DAException, DAValidateException Generates a unique code for the givenBODataCollectionSheetand writes it into the event journal.- Specified by:
executein classValidExecutionBusinessTask<DataCollectionSheetCodeGenerationEvent>- Parameters:
event- theDataCollectionSheetCodeGenerationEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validate
Validates the data collection sheet input. The operation center must be defined.- Parameters:
dataCollectionSheet- theBODataCollectionSheet- Throws:
DAValidateException- if the operation center is not defined
-