Class BTDataCollectionSheetInstanceFixSchedulingResourceSheet
java.lang.Object
overit.geocall.bl.BusinessTask<DataCollectionSheetInstanceFixSchedulingResourceSheetEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<DataCollectionSheetInstanceFixSchedulingResourceSheetEvent>
overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollection<DataCollectionSheetInstanceFixSchedulingResourceSheetEvent>
overit.geocallapp.wfm.mobileforms.bl.instance.task.BTDataCollectionSheetInstanceFixSchedulingResourceSheet
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(DataCollectionSheetInstanceFixSchedulingResourceSheetEvent.class)
public class BTDataCollectionSheetInstanceFixSchedulingResourceSheet
extends BTDataCollection<DataCollectionSheetInstanceFixSchedulingResourceSheetEvent>
Business task in order to fix the scheduling resource sheet of a
When the
DataCollectionSheetInstance. When the
DataCollectionSheetInstanceFixSchedulingResourceSheetEvent is launched
the BT notices the call and fixes the scheduling resource sheet the DataCollectionSheetInstance basing on the event's input. Permission:
Errors:
Codes.DATACOLLECTION_SHEET_MUST_BE_IN_OPEN_STATECodes.DATACOLLECTION_SHEET_MUST_BE_ASSOCIATE_TO_SCHED_USER
Visibility:
- scheduling users 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 voidcheckCanFix(DataCollectionSheetInstance sheetInstance) Checks whether the fix can be made.protected voidexecute(DataCollectionSheetInstanceFixSchedulingResourceSheetEvent event, PoolKit poolKit) Fixes the scheduling resource sheet.booleanChecks whether the view sheet permission is activated or not.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
-
BTDataCollectionSheetInstanceFixSchedulingResourceSheet
public BTDataCollectionSheetInstanceFixSchedulingResourceSheet()
-
-
Method Details
-
isValidExecution
public boolean isValidExecution()Checks whether the view sheet permission is activated or not.- Specified by:
isValidExecutionin interfaceValidExecution- Overrides:
isValidExecutionin classBTDataCollection<DataCollectionSheetInstanceFixSchedulingResourceSheetEvent>- Returns:
- true, if the view sheet permission is active, false otherwise
-
execute
protected void execute(DataCollectionSheetInstanceFixSchedulingResourceSheetEvent event, PoolKit poolKit) throws DAException, DAValidateException Fixes the scheduling resource sheet.- Specified by:
executein classValidExecutionBusinessTask<DataCollectionSheetInstanceFixSchedulingResourceSheetEvent>- Parameters:
event- theDataCollectionSheetInstanceFixSchedulingResourceSheetEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
checkCanFix
protected void checkCanFix(DataCollectionSheetInstance sheetInstance) throws DAValidateException, DAException Checks whether the fix can be made.- Parameters:
sheetInstance- theDataCollectionSheetInstance- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-