Class BTRoughPlanningInsert
java.lang.Object
overit.geocall.bl.BusinessTask<RoughPlanningInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<RoughPlanningInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<RoughPlanningInsertEvent>
overit.geocallapp.wfm.roughplanning.bl.task.BTRoughPlanningManagement<RoughPlanningInsertEvent>
overit.geocallapp.wfm.roughplanning.bl.task.BTRoughPlanningInsert
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(RoughPlanningInsertEvent.class)
public class BTRoughPlanningInsert
extends BTRoughPlanningManagement<RoughPlanningInsertEvent>
Business task in order to insert a
When the
BORoughPlanning. When the
RoughPlanningInsertEvent is launched the BT notices the
call and inserts the BORoughPlanning basing on the event's input. Required fields:
- Code
- Description
Permission:
Error Code:
- Since:
- 18.0
- See Also:
-
Field Summary
Fields inherited from class overit.geocallapp.wfm.roughplanning.bl.task.BTRoughPlanningManagement
CODE_LENGTH, DESCRIPTION_LENGTH, OVERSIZED_LIMIT, TIME_SIZE_LOWER_LIMITFields inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(RoughPlanningInsertEvent event, PoolKit pk) Inserts the givenBORoughPlanningand writes the newly generated id into the event journal.protected voidvalidateAndCompleteInput(BORoughPlanning input, PoolKit pk) Validates the data before the insertion.Methods inherited from class overit.geocallapp.wfm.roughplanning.bl.task.BTRoughPlanningManagement
isValidExecution, searchRoughPlanningByCode, validateCodeDuplication, validateDateSpan, validateFieldsLength, validateOversizedLimit, validateTimeSize, validateTimeUnitMethods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
checkValidExecution, getException, throwExceptionIfInvalidMethods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask
body, getEventMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTRoughPlanningInsert
public BTRoughPlanningInsert()
-
-
Method Details
-
execute
protected void execute(RoughPlanningInsertEvent event, PoolKit pk) throws DAException, DAValidateException Inserts the givenBORoughPlanningand writes the newly generated id into the event journal.- Specified by:
executein classValidExecutionBusinessTask<RoughPlanningInsertEvent>- Parameters:
event- theRoughPlanningInsertEventpk- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validateAndCompleteInput
protected void validateAndCompleteInput(BORoughPlanning input, PoolKit pk) throws DAValidateException, DAException Validates the data before the insertion.- Parameters:
input- theBORoughPlanningto insertpk- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException
-