Class BTDataCollectionSheetInsertFromWOOperation
java.lang.Object
overit.geocall.bl.BusinessTask<DataCollectionTemplateInsertSheetFromWOOperationEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<DataCollectionTemplateInsertSheetFromWOOperationEvent>
overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollection<DataCollectionTemplateInsertSheetFromWOOperationEvent>
overit.geocallapp.wfm.mobileforms.bl.template.task.BTDataCollectionSheetInsertFromWOOperation
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(DataCollectionTemplateInsertSheetFromWOOperationEvent.class)
public class BTDataCollectionSheetInsertFromWOOperation
extends BTDataCollection<DataCollectionTemplateInsertSheetFromWOOperationEvent>
Business task in order to insert a new
When the
BODataCollectionSheet starting from a workorder operation. When the
DataCollectionTemplateInsertSheetFromWOOperationEvent is launched
the BT notices the call and inserts the BODataCollectionSheet basing on the event's input. Visibility:
- templates that belong to the same current user's operation center
- work order operations 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 voidassociateToWOOperation(Long woOperation, Long sheetId, PoolKit poolKit) Associates a WO operation to aBODataCollectionSheet.protected voidexecute(DataCollectionTemplateInsertSheetFromWOOperationEvent event, PoolKit poolKit) Inserts the givenBODataCollectionSheetand it associates a work order operation and writes the newly generated id into the event journal.protected LonginsertSheet(BODataCollectionSheet sheet, BODataCollectionTemplateHeader templateHeader, PoolKit poolKit) Inserts a sheet into a template.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
-
BTDataCollectionSheetInsertFromWOOperation
public BTDataCollectionSheetInsertFromWOOperation()
-
-
Method Details
-
execute
protected void execute(DataCollectionTemplateInsertSheetFromWOOperationEvent event, PoolKit poolKit) throws DAException, DAValidateException Inserts the givenBODataCollectionSheetand it associates a work order operation and writes the newly generated id into the event journal.- Specified by:
executein classValidExecutionBusinessTask<DataCollectionTemplateInsertSheetFromWOOperationEvent>- Parameters:
event- theDataCollectionTemplateInsertSheetFromWOOperationEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
insertSheet
protected Long insertSheet(BODataCollectionSheet sheet, BODataCollectionTemplateHeader templateHeader, PoolKit poolKit) throws DAValidateException, DAException Inserts a sheet into a template.- Parameters:
sheet- theBODataCollectionSheettemplateHeader- theBODataCollectionTemplateHeaderpoolKit- thePoolKit- Returns:
- the long
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
associateToWOOperation
protected void associateToWOOperation(Long woOperation, Long sheetId, PoolKit poolKit) throws DAValidateException, DAException Associates a WO operation to aBODataCollectionSheet.- Parameters:
woOperation- the wo operation idsheetId- the sheet idBODataCollectionSheetpoolKit- the pool kit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-