Class BTSkillUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<SkillUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<SkillUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<SkillUpdateEvent>
overit.geocallapp.wfm.skills.bl.skill.task.BTSkillUpdate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(SkillUpdateEvent.class)
@Permission("fsm.core.skill.edit")
public class BTSkillUpdate
extends ValidPermissionBusinessTask<SkillUpdateEvent>
Business task in order to update a
When the
Error Codes:
BOSkill. When the
SkillUpdateEvent is launched
the BT notices the call and updates the BOSkill basing on the event's input. Error Codes:
- Since:
- 10.1
- 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 voidafterUpdate(BOSkill skill, PoolKit poolKit) Actions to perform after the update.protected voidexecute(SkillUpdateEvent event, PoolKit poolKit) Updates theBOSkillwith all its needed components.booleanDetermines whether the current state is valid for execution.protected voidValidates the data before the update.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
-
BTSkillUpdate
public BTSkillUpdate()
-
-
Method Details
-
execute
protected void execute(SkillUpdateEvent event, PoolKit poolKit) throws DAException, DAValidateException Updates theBOSkillwith all its needed components.- Specified by:
executein classValidExecutionBusinessTask<SkillUpdateEvent>- Parameters:
event- theSkillUpdateEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validate
Validates the data before the update.- Parameters:
skill- theBOSkillto updatepoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
afterUpdate
Actions to perform after the update.- Parameters:
skill- the skillpoolKit- thePoolKit
-
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
-