Class BTDataCollectionSheetInstanceDissociateFromWOOperation
java.lang.Object
overit.geocall.bl.BusinessTask<DataCollectionSheetInstanceDissociateFromWOOperationEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<DataCollectionSheetInstanceDissociateFromWOOperationEvent>
overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollection<DataCollectionSheetInstanceDissociateFromWOOperationEvent>
overit.geocallapp.wfm.core.bl.datacollection.instance.task.BTDataCollectionSheetInstanceDissociateFromWOOperation
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(DataCollectionSheetInstanceDissociateFromWOOperationEvent.class)
public class BTDataCollectionSheetInstanceDissociateFromWOOperation
extends BTDataCollection<DataCollectionSheetInstanceDissociateFromWOOperationEvent>
Business task in order to dissociate from wo operation a
When the
DataCollectionSheetInstance. When the
DataCollectionSheetInstanceDissociateFromWOOperationEvent is launched
the BT notices the call and dissociates from wo operation a DataCollectionSheetInstance basing on the event's input. Permission:
WfmPermissions.FSM_DATACOLLECTION_SHEET_EDIT
Errors:
Codes.DATACOLLECTION_SHEET_NOT_ASSOCIATED_TO_WO_OPERATIONCodes.DATACOLLECTION_SHEET_NOT_IN_OPEN_STATECodes.DATACOLLECTION_WO_OPERATION_MUST_BE_IN_OPENED_STATE
Visibility:
- workorder 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 voidcheckSheet(BODataCollectionSheet sheet) Checks the sheet.protected voidcheckWoOperation(BOWorkOrderOperation woOperation) Checks the wo operation.protected voidexecute(DataCollectionSheetInstanceDissociateFromWOOperationEvent event, PoolKit poolKit) Dissociates the workorder operation from the data collection sheet instance.booleanChecks whether the view sheet permission is activated or not.protected BODataCollectionSheetLoads the sheet.protected BOWorkOrderOperationloadWOOperation(Long woOperationId, PoolKit poolKit) Loads the WO operation.protected voidupdateSheet(BODataCollectionSheet sheet, PoolKit poolKit) Updates the sheet.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
-
BTDataCollectionSheetInstanceDissociateFromWOOperation
public BTDataCollectionSheetInstanceDissociateFromWOOperation()
-
-
Method Details
-
isValidExecution
public boolean isValidExecution()Checks whether the view sheet permission is activated or not.- Specified by:
isValidExecutionin interfaceValidExecution- Overrides:
isValidExecutionin classBTDataCollection<DataCollectionSheetInstanceDissociateFromWOOperationEvent>- Returns:
- true, if the view sheet permission is active, false otherwise
-
execute
protected void execute(DataCollectionSheetInstanceDissociateFromWOOperationEvent event, PoolKit poolKit) throws DAException, DAValidateException Dissociates the workorder operation from the data collection sheet instance.- Specified by:
executein classValidExecutionBusinessTask<DataCollectionSheetInstanceDissociateFromWOOperationEvent>- Parameters:
event- theDataCollectionSheetInstanceDissociateFromWOOperationEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
checkSheet
Checks the sheet.- Parameters:
sheet- theBODataCollectionSheet- Throws:
DAValidateException- the DA validate exception
-
loadWOOperation
protected BOWorkOrderOperation loadWOOperation(Long woOperationId, PoolKit poolKit) throws DAException, DAValidateException Loads the WO operation.- Parameters:
woOperationId- the wo operation idpoolKit- thePoolKit- Returns:
- the BO work order operation
- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
checkWoOperation
Checks the wo operation.- Parameters:
woOperation- theBOWorkOrderOperation- Throws:
DAValidateException- the DA validate exception
-
loadSheet
protected BODataCollectionSheet loadSheet(Long sheetId, PoolKit poolKit) throws DAValidateException, DAException Loads the sheet.- Parameters:
sheetId- the sheet idpoolKit- thePoolKit- Returns:
- the BO data collection sheet
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
updateSheet
protected void updateSheet(BODataCollectionSheet sheet, PoolKit poolKit) throws DAValidateException, DAException Updates the sheet.- Parameters:
sheet- theBODataCollectionSheetpoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-