Class BTActivitySkillConfigurationInsert
java.lang.Object
overit.geocall.bl.BusinessTask<ActivitySkillConfigurationInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<ActivitySkillConfigurationInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<ActivitySkillConfigurationInsertEvent>
overit.geocallapp.wfm.orchestrator.workorders.bl.activity.skillconfiguration.task.BTActivitySkillConfigurationInsert
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(ActivitySkillConfigurationInsertEvent.class)
public class BTActivitySkillConfigurationInsert
extends ValidPermissionBusinessTask<ActivitySkillConfigurationInsertEvent>
Business task in order to insert a
When the
BOActivitySkillConfiguration. When the
ActivitySkillConfigurationInsertEvent is launched
the BT notices the call and inserts 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, PoolKit poolKit) protected voidexecute(ActivitySkillConfigurationInsertEvent event, PoolKit poolKit) Inserts the givenBOActivitySkillConfigurationand writes the newly generated id into the event journal.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
-
BTActivitySkillConfigurationInsert
public BTActivitySkillConfigurationInsert()
-
-
Method Details
-
execute
protected void execute(ActivitySkillConfigurationInsertEvent event, PoolKit poolKit) throws DAException, DAValidateException Inserts the givenBOActivitySkillConfigurationand writes the newly generated id into the event journal.- Specified by:
executein classValidExecutionBusinessTask<ActivitySkillConfigurationInsertEvent>- Parameters:
event- theActivitySkillConfigurationInsertEventpoolKit- thePoolKit- 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, 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
-