Class BTSkillOverrideConfigurationSave
java.lang.Object
overit.geocall.bl.BusinessTask<SkillOverrideConfigurationSaveEvent>
overit.geocallapp.wfm.orchestrator.workforce.bl.skilloverride.task.BTSkillOverrideConfigurationSave
- All Implemented Interfaces:
Serializable,Tool
@Event(SkillOverrideConfigurationSaveEvent.class)
public class BTSkillOverrideConfigurationSave
extends BusinessTask<SkillOverrideConfigurationSaveEvent>
Business task in order to save a complete skill override configuration (configuration, associated skills and related operations).
When the
SkillOverrideConfigurationSaveEvent is launched
the BT notices the call and performs the necessary steps for the saving of a skill override configuration,
basing on the event's input.- Since:
- 21.0
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(SkillOverrideConfigurationSaveEvent event, PoolKit pk) Performs the necessary steps for the saving of a complete skill override configuration.protected voidcheckWorkOrderOperationInBundle(Collection<Long> operationIds, PoolKit pk) Check that no activeBundles are related to the operations involved.protected WorkforceIntegrationServicegetIntegrationService(PoolKit poolKit) Return theWorkforceIntegrationServiceused for access to other domainsprotected LonginsertSkillOverrideConfiguration(BOSkillOverrideConfiguration skillOverrideConfiguration, PoolKit pk) Insert a new skill override configuration.protected voidinsertSkillOverrideConfigurationSkill(Long skillOverrideConfigurationId, Collection<BOSkillOverrideConfigurationSkill> associatedSkills, PoolKit pk) Insert the relationships between skills and skill override configuration.protected voidunlockWorkOrderOperation(Collection<Long> operationIds, PoolKit pk) Unlock the operations involved.protected voidupdateWorkOrderOperation(Long skillOverrideConfigurationId, Collection<Long> operationIds, PoolKit pk) Update the skill override configuration reference for the operations involved.protected voidMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTSkillOverrideConfigurationSave
public BTSkillOverrideConfigurationSave()
-
-
Method Details
-
body
protected void body(SkillOverrideConfigurationSaveEvent event, PoolKit pk) throws DAException, DAValidateException Performs the necessary steps for the saving of a complete skill override configuration.- Specified by:
bodyin classBusinessTask<SkillOverrideConfigurationSaveEvent>- Parameters:
event- theSkillOverrideConfigurationSaveEventpk- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validateInput
protected void validateInput(SkillOverrideConfigurationSaveEventInput input, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
checkWorkOrderOperationInBundle
protected void checkWorkOrderOperationInBundle(Collection<Long> operationIds, PoolKit pk) throws DAException, DAValidateException Check that no activeBundles are related to the operations involved.- Parameters:
operationIds- the collection containing operation ids- Throws:
DAExceptionDAValidateException
-
insertSkillOverrideConfiguration
protected Long insertSkillOverrideConfiguration(BOSkillOverrideConfiguration skillOverrideConfiguration, PoolKit pk) throws DAException, DAValidateException Insert a new skill override configuration.- Parameters:
skillOverrideConfiguration- theBOSkillOverrideConfiguration- Returns:
- id of the new skill override configuration
- Throws:
DAExceptionDAValidateException
-
insertSkillOverrideConfigurationSkill
protected void insertSkillOverrideConfigurationSkill(Long skillOverrideConfigurationId, Collection<BOSkillOverrideConfigurationSkill> associatedSkills, PoolKit pk) throws DAException, DAValidateException Insert the relationships between skills and skill override configuration.- Parameters:
skillOverrideConfigurationId- the skill override configuration idassociatedSkills- the collection containing skills data- Throws:
DAExceptionDAValidateException
-
updateWorkOrderOperation
protected void updateWorkOrderOperation(Long skillOverrideConfigurationId, Collection<Long> operationIds, PoolKit pk) throws DAException, DAValidateException Update the skill override configuration reference for the operations involved.- Parameters:
skillOverrideConfigurationId- the skill override configuration idoperationIds- the collection containing operation ids- Throws:
DAExceptionDAValidateException
-
unlockWorkOrderOperation
protected void unlockWorkOrderOperation(Collection<Long> operationIds, PoolKit pk) throws DAException, DAValidateException Unlock the operations involved.- Parameters:
operationIds- the collection containing operation ids- Throws:
DAExceptionDAValidateException
-
getIntegrationService
protected WorkforceIntegrationService getIntegrationService(PoolKit poolKit) throws DAValidateException Return theWorkforceIntegrationServiceused for access to other domains- Parameters:
poolKit- thePoolKit- Returns:
- Throws:
DAValidateException
-