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