Class BTSkillConfigurationDivisionInsert
java.lang.Object
overit.geocall.bl.BusinessTask<SkillConfigurationDivisionInsertEvent>
overit.geocallapp.wfm.skills.bl.configuration.division.task.BTSkillConfigurationDivisionInsert
- All Implemented Interfaces:
Serializable,Tool
@Event(SkillConfigurationDivisionInsertEvent.class)
public class BTSkillConfigurationDivisionInsert
extends BusinessTask<SkillConfigurationDivisionInsertEvent>
Business task in order to insert a
When the
BOSkillConfigurationDivision. When the
SkillConfigurationDivisionInsertEvent is launched
the BT notices the call and inserts the BOSkillConfigurationDivision basing on the event's input. - Since:
- 17.0
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(SkillConfigurationDivisionInsertEvent event, PoolKit poolKit) Inserts the givenBOSkillConfigurationDivisionand writes the newly generated id into the event journal.protected voidcheckAlreadyDefined(BOSkillConfigurationDivision relation, PoolKit poolKit) voidcheckCardinality(BOSkillConfigurationDivision relation, PoolKit poolKit) Checks if the number of skill division skills is less than the skill configuration cardinality.protected voidcheckSkillDivisionValidation(Long skillDivision, PoolKit poolKit) protected BOSkillConfigurationloadSkillConfiguration(Long id, PoolKit poolKit) Loads the skill configuration.protected voidnotifyInsert(BOSkillConfigurationDivision relation, PoolKit poolKit) Notifies the insert.Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTSkillConfigurationDivisionInsert
public BTSkillConfigurationDivisionInsert()
-
-
Method Details
-
body
protected void body(SkillConfigurationDivisionInsertEvent event, PoolKit poolKit) throws DAException, DAValidateException Inserts the givenBOSkillConfigurationDivisionand writes the newly generated id into the event journal.- Specified by:
bodyin classBusinessTask<SkillConfigurationDivisionInsertEvent>- Parameters:
event- theSkillConfigurationDivisionInsertEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
checkAlreadyDefined
protected void checkAlreadyDefined(BOSkillConfigurationDivision relation, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
checkSkillDivisionValidation
protected void checkSkillDivisionValidation(Long skillDivision, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
checkCardinality
public void checkCardinality(BOSkillConfigurationDivision relation, PoolKit poolKit) throws DAValidateException, DAException Checks if the number of skill division skills is less than the skill configuration cardinality.- Parameters:
relation- theBOSkillConfigurationDivisionpoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
loadSkillConfiguration
protected BOSkillConfiguration loadSkillConfiguration(Long id, PoolKit poolKit) throws DAValidateException, DAException Loads the skill configuration.- Parameters:
id- the skill configuration idpoolKit- thePoolKit- Returns:
- the loaded
BOSkillConfiguration - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
notifyInsert
protected void notifyInsert(BOSkillConfigurationDivision relation, PoolKit poolKit) throws DAValidateException, DAException Notifies the insert.- Parameters:
relation- the insertedBOSkillConfigurationDivisionpoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-