Class BTWorkCyclePermitsSaveRel
java.lang.Object
overit.geocall.bl.BusinessTask<WorkCyclePermitsSaveRelEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<WorkCyclePermitsSaveRelEvent>
overit.geocallapp.wfm.core.bl.permits.task.BTPermit<WorkCyclePermitsSaveRelEvent>
overit.geocallapp.wfm.core.bl.permits.workcycle.task.BTWorkCyclePermitsSaveRel
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(WorkCyclePermitsSaveRelEvent.class)
public class BTWorkCyclePermitsSaveRel
extends BTPermit<WorkCyclePermitsSaveRelEvent>
Business task in order to delete the old relationships and insert the new relationships,
relationships between work cycle and type of permit
BOWorkCyclePermitTypeRel.
When the WorkCyclePermitsSaveRelEvent is launched
the BT notices the call and aligns the BOWorkCyclePermitTypeRel basing on the event's input.
Required fields:
- work cycle id
- list of permit type ids
- Since:
- 14.0
- See Also:
- GCApi:
- task
-
Field Summary
Fields inherited from class overit.geocallapp.wfm.core.bl.permits.task.BTPermit
WORKORDER_NOVALID_STATES, WORKORDER_OPERATION_VALID_STATES, WORKORDER_VALID_STATES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(WorkCyclePermitsSaveRelEvent event, PoolKit poolKit) Deletes all the previously work cycle permit type relations with the specified work cycle id and insert the new associations.Methods inherited from class overit.geocallapp.wfm.core.bl.permits.task.BTPermit
checkWorkCycleId, checkWorkOrderId, getException, insertObtained, insertRequired, isValidExecution, isWOInBundle, throwExceptionIfInvalid, updateObtained, validateObtained, validateRequiredMethods 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
-
BTWorkCyclePermitsSaveRel
public BTWorkCyclePermitsSaveRel()
-
-
Method Details
-
execute
protected void execute(WorkCyclePermitsSaveRelEvent event, PoolKit poolKit) throws DAException, DAValidateException Deletes all the previously work cycle permit type relations with the specified work cycle id and insert the new associations.- Specified by:
executein classValidExecutionBusinessTask<WorkCyclePermitsSaveRelEvent>- Parameters:
event- theWorkCyclePermitsSaveRelEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-