Class BTResourceSkillConfigurationEvaluation
java.lang.Object
overit.geocall.bl.BusinessTask<ResourceSkillConfigurationEvaluationEvent>
overit.geocallapp.wfm.orchestrator.workforce.bl.skill.task.BTResourceSkillConfigurationEvaluation
- All Implemented Interfaces:
Serializable,Tool
@Event(ResourceSkillConfigurationEvaluationEvent.class)
public class BTResourceSkillConfigurationEvaluation
extends BusinessTask<ResourceSkillConfigurationEvaluationEvent>
Business task for evaluate which skills of an input
SkillConfigurationAggregate are not satisfied by the input resources. - Since:
- 17.0
- See Also:
- GCApi:
- task
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(ResourceSkillConfigurationEvaluationEvent event, PoolKit poolKit) Implements this method to write the specific task logic to handle the input parameter.protected voidCalculate the missing qualifications, skills and skills division for the input set of resourcesprotected voidcheckSkillOverrideConfiguration(SkillConfigurationAggregate skillConfigurationAggregate, BOWorkOrderOperation workOrderOperation, PoolKit poolKit) Checks if a skill override configuration is present and, if so, updates the SkillConfigurationAggregate object's skillsprotected voidCheck if the team size satisfies the minimum and maximum cardinality requirements of the skill configuration (ASCOMINCARDINALITY and ASCOMAXCARDINALITY).protected voidevaluateSkillQualifications(SkillAggregate requiredSkill) Evaluate if there is at least one resource that satisfy the required skill.protected voidChecks for each skill of the skill configuration if the resources has that skill and all the qualifications for it.
If not, the skill is removed from the set of resource's skills.protected voidFind the skills of the skill configuration for which there isn't a valid resources cardinality.protected voidFind the skill divisions of the skill configuration for which that aren't satisfied.protected WorkforceIntegrationServicegetIntegrationService(PoolKit poolKit) Return theWorkforceIntegrationServiceused for access to other domainsprotected SkillConfigurationAggregategetSkillConfiguration(PoolKit poolKit) Loads the skill configuration associated to the work order activity.protected List<SkillAggregate> Build a list with all the skills of the skill configurationprotected voidinitialize(PoolKit poolKit) Initialize all the data necessary for check the resources skills.protected voidloadResourcesSkills(Collection<Long> resources, PoolKit poolKit) Load all the skill of all usersMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Field Details
-
eventInput
-
skillConfiguration
-
referenceDate
-
-
Constructor Details
-
BTResourceSkillConfigurationEvaluation
public BTResourceSkillConfigurationEvaluation()
-
-
Method Details
-
body
protected void body(ResourceSkillConfigurationEvaluationEvent event, PoolKit poolKit) throws DAException, DAValidateException Description copied from class:BusinessTaskImplements this method to write the specific task logic to handle the input parameter.- Specified by:
bodyin classBusinessTask<ResourceSkillConfigurationEvaluationEvent>- Parameters:
event- the object upon which the task will works onpoolKit- the poolkit containing the reference to the database connection that can be used- Throws:
DAException- in case of database errorDAValidateException- in case of database validation error
-
initialize
Initialize all the data necessary for check the resources skills.- Parameters:
poolKit- thePoolKit- Throws:
DAValidateExceptionDAException
-
getSkillConfiguration
protected SkillConfigurationAggregate getSkillConfiguration(PoolKit poolKit) throws DAValidateException, DAException Loads the skill configuration associated to the work order activity.- Parameters:
poolKit- thePoolKit- Throws:
DAValidateExceptionDAException
-
getIntegrationService
protected WorkforceIntegrationService getIntegrationService(PoolKit poolKit) throws DAValidateException Return theWorkforceIntegrationServiceused for access to other domains- Parameters:
poolKit- thePoolKit- Returns:
- Throws:
DAValidateException
-
loadResourcesSkills
protected void loadResourcesSkills(Collection<Long> resources, PoolKit poolKit) throws DAException, DAValidateException Load all the skill of all users- Parameters:
resources- the list of resources to checkpoolKit- thePoolKit- Throws:
DAExceptionDAValidateException
-
calculateMissingSkills
protected void calculateMissingSkills()Calculate the missing qualifications, skills and skills division for the input set of resources -
evaluateSkillsWithQualifications
protected void evaluateSkillsWithQualifications()Checks for each skill of the skill configuration if the resources has that skill and all the qualifications for it.
If not, the skill is removed from the set of resource's skills. -
getSkillConfigurationSkills
Build a list with all the skills of the skill configuration -
evaluateSkillQualifications
Evaluate if there is at least one resource that satisfy the required skill.- Parameters:
requiredSkill-
-
checkTeamCardinality
protected void checkTeamCardinality()Check if the team size satisfies the minimum and maximum cardinality requirements of the skill configuration (ASCOMINCARDINALITY and ASCOMAXCARDINALITY). If the team size is outside the allowed range, sets wrongCardinalityTeam to true. -
findSkillsWithoutCorrectCardinality
protected void findSkillsWithoutCorrectCardinality()Find the skills of the skill configuration for which there isn't a valid resources cardinality. -
findUnsatisfiedSkillDivisions
protected void findUnsatisfiedSkillDivisions()Find the skill divisions of the skill configuration for which that aren't satisfied. -
checkSkillOverrideConfiguration
protected void checkSkillOverrideConfiguration(SkillConfigurationAggregate skillConfigurationAggregate, BOWorkOrderOperation workOrderOperation, PoolKit poolKit) throws DAValidateException, DAException Checks if a skill override configuration is present and, if so, updates the SkillConfigurationAggregate object's skills- Parameters:
skillConfigurationAggregate- theSkillConfigurationAggregateworkOrderOperation- theBOWorkOrderOperationpoolKit- thePoolKit- Throws:
DAExceptionDAValidateException
-