Class BTActivitySkillConfigurationUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<ActivitySkillConfigurationUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<ActivitySkillConfigurationUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<ActivitySkillConfigurationUpdateEvent>
overit.geocallapp.wfm.orchestrator.workorders.bl.activity.skillconfiguration.task.BTActivitySkillConfigurationUpdate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(ActivitySkillConfigurationUpdateEvent.class)
public class BTActivitySkillConfigurationUpdate
extends ValidPermissionBusinessTask<ActivitySkillConfigurationUpdateEvent>
Business task in order to update a
When the
BOActivitySkillConfiguration. When the
ActivitySkillConfigurationUpdateEvent is launched
the BT notices the call and updates the BOActivitySkillConfiguration basing on the event's input. - Since:
- 17.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 voidcheckUniqueTriplet(Long skillConfiguration, Long activity, Long operationCenter, Long activitySkillConfigurationId, PoolKit poolKit) protected voidexecute(ActivitySkillConfigurationUpdateEvent event, PoolKit poolKit) Updates theBOActivitySkillConfigurationwith all its needed components.protected WorkOrdersIntegrationServicegetIntegrationService(PoolKit poolKit) Return theWorkOrdersIntegrationServiceused for access to other domainsbooleanDetermines whether the current state is valid for execution.protected voidvalidate(BOActivitySkillConfiguration activitySkillConfiguration, PoolKit poolKit) 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
-
BTActivitySkillConfigurationUpdate
public BTActivitySkillConfigurationUpdate()
-
-
Method Details
-
execute
protected void execute(ActivitySkillConfigurationUpdateEvent event, PoolKit poolKit) throws DAException, DAValidateException Updates theBOActivitySkillConfigurationwith all its needed components.- Specified by:
executein classValidExecutionBusinessTask<ActivitySkillConfigurationUpdateEvent>- Parameters:
event- theActivitySkillConfigurationUpdateEventpoolKit- thePage- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validate
protected void validate(BOActivitySkillConfiguration activitySkillConfiguration, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
checkUniqueTriplet
protected void checkUniqueTriplet(Long skillConfiguration, Long activity, Long operationCenter, Long activitySkillConfigurationId, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
getIntegrationService
protected WorkOrdersIntegrationService getIntegrationService(PoolKit poolKit) throws DAValidateException Return theWorkOrdersIntegrationServiceused for access to other domains- Parameters:
poolKit- thePoolKit- Returns:
- Throws:
DAValidateException
-
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
-