Class BTActivityInsert
java.lang.Object
overit.geocall.bl.BusinessTask<ActivityInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<ActivityInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<ActivityInsertEvent>
overit.geocallapp.wfm.workorders.bl.activity.task.BTActivityInsert
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(ActivityInsertEvent.class)
public class BTActivityInsert
extends ValidPermissionBusinessTask<ActivityInsertEvent>
Business task in order to insert a scheduling
BOActivity. Required fields:
- code
- description
- intervention group
- scheduling mode
Permission:
Error code:
- Since:
- 16.0
- See Also:
- GCApi:
- task
-
Field Summary
Fields inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(ActivityInsertEvent event, PoolKit poolKit) Inserts the givenBOActivityand writes the newly generated id into the event journal.booleanDetermines whether the current state is valid for execution.protected voidvalidate(BOActivity activity, PoolKit poolKit) Validates the data before the insertion.Methods 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
-
BTActivityInsert
public BTActivityInsert()
-
-
Method Details
-
execute
protected void execute(ActivityInsertEvent event, PoolKit poolKit) throws DAException, DAValidateException Inserts the givenBOActivityand writes the newly generated id into the event journal.- Specified by:
executein classValidExecutionBusinessTask<ActivityInsertEvent>- Parameters:
event- theActivityInsertEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validate
protected void validate(BOActivity activity, PoolKit poolKit) throws DAValidateException, DAException Validates the data before the insertion.- Parameters:
activity- theBOActivitycontaining the new values- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
isValidExecution
public boolean isValidExecution()Description copied from interface:ValidExecutionDetermines whether the current state is valid for execution.- Returns:
- true if execution is valid, false otherwise
-