Class BTDataCollectionSheetInstanceAssociateToWOOperation
java.lang.Object
overit.geocall.bl.BusinessTask<DataCollectionSheetInstanceAssociateToWOOperationEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<DataCollectionSheetInstanceAssociateToWOOperationEvent>
overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollection<DataCollectionSheetInstanceAssociateToWOOperationEvent>
overit.geocallapp.wfm.core.bl.datacollection.instance.task.BTDataCollectionSheetInstanceAssociate<DataCollectionSheetInstanceAssociateToWOOperationEvent>
overit.geocallapp.wfm.core.bl.datacollection.instance.task.BTDataCollectionSheetInstanceAssociateToWOOperation
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(DataCollectionSheetInstanceAssociateToWOOperationEvent.class)
public class BTDataCollectionSheetInstanceAssociateToWOOperation
extends BTDataCollectionSheetInstanceAssociate<DataCollectionSheetInstanceAssociateToWOOperationEvent>
Business task in order to associate a work order operation to a
When the
DataCollectionSheetInstance. When the
DataCollectionSheetInstanceAssociateToWOOperationEvent is launched
the BT notices the call and operations the DataCollectionSheetInstance basing on the event's input. Errors:
Codes.DATACOLLECTION_WO_OPERATION_NOT_SPECIFIEDCodes.DATACOLLECTION_WO_OPERATION_MUST_NOT_BE_IN_CANCELED_STATE
Visibility:
- 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 voidcheckWoOperation(BOWorkOrderOperation woOperation) Check wo operation.protected voidexecute(DataCollectionSheetInstanceAssociateToWOOperationEvent event, PoolKit poolKit) Associate the work order operation to the sheet.Returns the valid sheet scopes.protected BOWorkOrderOperationloadWOOperation(Long woOperationId, PoolKit poolKit) Load WO operation.protected BOWorkOrderHeaderloadWorkOrderHeader(Long workOrder, PoolKit poolKit) Load work order header.protected voidupdateSheetState(Long sheetId, BOWorkOrderOperation woOperation, PoolKit poolKit) Update sheet state.protected voidValidates the input.Methods inherited from class overit.geocallapp.wfm.core.bl.datacollection.instance.task.BTDataCollectionSheetInstanceAssociate
checkSheet, isValidExecution, loadSheetInstance, saveSheetInstance, saveSheetInstanceMethods 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
-
BTDataCollectionSheetInstanceAssociateToWOOperation
public BTDataCollectionSheetInstanceAssociateToWOOperation()
-
-
Method Details
-
getValidSheetScopes
Returns the valid sheet scopes.- Specified by:
getValidSheetScopesin classBTDataCollectionSheetInstanceAssociate<DataCollectionSheetInstanceAssociateToWOOperationEvent>- Returns:
- the valid sheet scopes
-
execute
protected void execute(DataCollectionSheetInstanceAssociateToWOOperationEvent event, PoolKit poolKit) throws DAException, DAValidateException Associate the work order operation to the sheet.- Specified by:
executein classValidExecutionBusinessTask<DataCollectionSheetInstanceAssociateToWOOperationEvent>- Parameters:
event- theDataCollectionSheetInstanceAssociateToWOOperationEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validate
protected void validate(DataCollectionSheetInstanceAssociateToWOOperationInput input) throws DAValidateException Validates the input.- Parameters:
input- theDataCollectionSheetInstanceAssociateToWOOperationInput- Throws:
DAValidateException- the DA validate exception
-
loadWOOperation
protected BOWorkOrderOperation loadWOOperation(Long woOperationId, PoolKit poolKit) throws DAException, DAValidateException Load WO operation.- Parameters:
woOperationId- the wo operation idpoolKit- the pool kit- Returns:
- the BO work order operation
- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
checkWoOperation
Check wo operation.- Parameters:
woOperation- the wo operation- Throws:
DAValidateException- the DA validate exception
-
loadWorkOrderHeader
protected BOWorkOrderHeader loadWorkOrderHeader(Long workOrder, PoolKit poolKit) throws DAValidateException, DAException Load work order header.- Parameters:
workOrder- the work orderpoolKit- the pool kit- Returns:
- the BO work order header
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
updateSheetState
protected void updateSheetState(Long sheetId, BOWorkOrderOperation woOperation, PoolKit poolKit) throws DAValidateException, DAException Update sheet state.- Parameters:
sheetId- the sheet idwoOperation- the wo operationpoolKit- the pool kit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-