Class BTSkillConfigurationInsert
java.lang.Object
overit.geocall.bl.BusinessTask<SkillConfigurationInsertEvent>
overit.geocallapp.wfm.skills.bl.configuration.task.BTSkillConfigurationInsert
- All Implemented Interfaces:
Serializable,Tool
@Event(SkillConfigurationInsertEvent.class)
@Permission("fsm.core.skill.edit")
public class BTSkillConfigurationInsert
extends BusinessTask<SkillConfigurationInsertEvent>
Business task in order to insert a
When the
BOSkillConfiguration. When the
SkillConfigurationInsertEvent is launched
the BT notices the call and inserts the BOSkillConfiguration basing on the event's input. - Since:
- 10.1
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidafterInsert(BOSkillConfiguration skillConfiguration, PoolKit poolKit) Actions to perform after the insert.protected voidbody(SkillConfigurationInsertEvent event, PoolKit poolKit) Inserts the givenBOSkillConfigurationand writes the newly generated id into the event journal.protected Longinsert(BOSkillConfiguration skillConfiguration, PoolKit poolKit) Inserts the given skill configuration and the related history.protected voidvalidate(BOSkillConfiguration skillConfiguration, PoolKit poolKit) Validates the data before the insert.Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTSkillConfigurationInsert
public BTSkillConfigurationInsert()
-
-
Method Details
-
body
protected void body(SkillConfigurationInsertEvent event, PoolKit poolKit) throws DAException, DAValidateException Inserts the givenBOSkillConfigurationand writes the newly generated id into the event journal.- Specified by:
bodyin classBusinessTask<SkillConfigurationInsertEvent>- Parameters:
event- theSkillConfigurationInsertEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validate
protected void validate(BOSkillConfiguration skillConfiguration, PoolKit poolKit) throws DAValidateException Validates the data before the insert.- Parameters:
skillConfiguration- theBOSkillConfigurationto insertpoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exception
-
insert
protected Long insert(BOSkillConfiguration skillConfiguration, PoolKit poolKit) throws DAValidateException, DAException Inserts the given skill configuration and the related history.- Parameters:
skillConfiguration- theBOSkillConfigurationpoolKit- thePoolKit- Returns:
- the id of the inserted
BOSkillConfiguration - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
afterInsert
Actions to perform after the insert.- Parameters:
skillConfiguration- the skill configurationpoolKit- thePoolKit
-